Create a conversation
Create a conversation to store and retrieve conversation state across Response API calls.
Authorizations
Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.
Headers
Optional external end-user identifier forwarded by the API gateway.
Body
Initial items to include in the conversation context. Max 20 items at a time.
20Input message item: A message with role and content. Use this for user, assistant, system, or developer turns in structured inputs.
- Input message item
- Output message item
- Output audio item
- File search call item
- Computer call item
- Computer call output item
- Web search call item
- Function call item
- Function call output item
- Reasoning item
- Image generation call item
- Code interpreter call item
- Local shell call item
- Local shell call output item
- Shell call item
- Shell call output item
- MCP list tools item
- MCP approval request item
- MCP approval response item
- Tool approval request item
- Tool approval response item
- MCP call item
- Custom tool call item
- Custom tool call output item
- Item reference item
- Compaction item
Set of 16 key-value pairs for storing additional information.
Response
OK
The unique ID of the conversation
The object type, always 'conversation'
Unix timestamp of when the conversation was created
Unix timestamp of when the conversation was soft-deleted, or null if not deleted.
Set of 16 key-value pairs. Keys max 64 chars, values max 512 chars.
Identity of the conversation owner. Either a SHA256 hash or raw userId:externalUserId depending on IDENTITY_MODE.