curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "zai",
"path": "/api/v1/agents/conversation",
"method": "POST",
"body": {
"agent_id": "",
"conversation_id": "",
"custom_variables": {
"include_pdf":
}
}
}'
{
"success": true,
"data": {
"status": "success",
"choices": [ 1 item ],
"agent_id": "slides_glm_agent",
"conversation_id": "test-conversation-000000"
}
}
A real response, recorded when Orthogonal checked this endpoint.
Free
Calls cost nothing.
About this endpoint
This endpoint is used to query the agent conversation history.Only support slides_glm_agent
Body parameters
agent_idstringAgent IDconversation_idstringConversation IDcustom_variablesobjectCustom variablesResponse types
conversation_idConversation IDstringagent_idAgent IDstringMore from Z.ai
- Web page readerPOST/api/paas/v4/reader$0.0109 per callFixed
- Agent taskPOST/api/v1/agentsFrom $0.763 per 1M tokens · varies by agentResponse-based · up to $1.09
- Chat completionPOST/api/paas/v4/chat/completionsFrom $0.0327 per 1M tokens · varies by modelResponse-based · up to $2.228749
- Async image generationPOST/api/paas/v4/async/images/generations$0.01635 per callFixed
- Web searchPOST/api/paas/v4/web_search$0.0109 per callFixed
- Image/video job resultGET/api/paas/v4/async-result/{id}Free
- Token countPOST/api/paas/v4/tokenizer$0.000109 per callFixed
- Video generationPOST/api/paas/v4/videos/generations$0.218 per callFixed
- Agent job resultPOST/api/v1/agents/async-resultFree
- Speech to textPOST/api/paas/v4/audio/transcriptions$0.001308 per callFixed
- Document OCR parsingPOST/api/paas/v4/layout_parsing$0.0327 per 1M tokensResponse-based · up to $0.00981
- Image generationPOST/api/paas/v4/images/generations$0.01635 per callFixed