---
title: "POST /v1/agents/conversation"
method: POST
path: "/v1/agents/conversation"
---

# POST /v1/agents/conversation

`POST /v1/agents/conversation`

This endpoint is used to query the agent conversation history.Only support slides_glm_agent

## Headers

- `Accept-Language` 'en-US,en' — Config desired response language for HTTP requests.

## Request body

- GlmSlideAgentConversationRequest
  - `agent_id` string — Agent ID
  - `conversation_id` string — Conversation ID
  - `custom_variables` object — Custom variables
    - `include_pdf` boolean — Is export the pdf file
    - `pages` object[] — Slides Pages
      - `position` number — Slide Page Position
      - `width` number — Slide Width, unit: pt
      - `height` number — Slide Height, unit: pt

## Response `200`

Processing successful

- GlmSlideAgentConversationResponse
  - `conversation_id` string — Conversation ID
  - `agent_id` string — Agent ID
  - `choices` object[] — Agent output.
    - `message` object[]
      - `role` string — Role: fixed as `assistant`.
      - `content` object[] — Content metadata
        - `type` string — Response Content type: file_url、image_url
        - `tag_cn` string — CN Tag.
        - `tag_en` string — EN Tag.
        - `file_url` string — Output file_url content when type is file_url
        - `image_url` string — Output image_url content when type is image_url
  - `error` object
    - `code` string — Error code.
    - `message` string — Error message.

## Other responses

- `default` — The request has failed.

---

[API](https://skmtc.net/z/apis/z-ai-api.md) · [All operations](https://skmtc.net/z/apis/z-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/z/z-ai-api/revisions/62622aa47d10/schema)
