🚀 GLM Coding Plan — built for devs: 3× usage, 1/7 cost • Limited-Time Offer ➞
cURL
curl --request POST \ --url https://api.z.ai/api/v1/agents/conversation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "agent_id": "<string>", "conversation_id": "<string>", "custom_variables": { "include_pdf": true, "pages": [ { "position": 123, "width": 123, "height": 123 } ] } } '
{ "conversation_id": "<string>", "agent_id": "<string>", "choices": [ { "message": [ { "role": "<string>", "content": [ { "type": "<string>", "tag_cn": "<string>", "tag_en": "<string>", "file_url": "<string>", "image_url": "<string>" } ] } ] } ], "error": { "code": "<string>", "message": "<string>" } }
This endpoint is used to query the agent conversation history.Only support slides_glm_agent
Use the following format for authentication: Bearer
Config desired response language for HTTP requests.
en-US,en
"en-US,en"
Agent ID
Conversation ID
Custom variables
Hide child attributes
Is export the pdf file
Slides Pages
Slide Page Position
Slide Width, unit: pt
Slide Height, unit: pt
Processing successful
Agent output.
Role: fixed as assistant.
assistant
Content metadata
Response Content type: file_url、image_url
CN Tag.
EN Tag.
Output file_url content when type is file_url
Output image_url content when type is image_url
Error code.
Error message.
Was this page helpful?