Create a conversation
Create a conversation first. You can attach metadata to keep your own session or routing context.X-On-Behalf-Of.
See the authentication guide for the full pattern.
Add items to the conversation
Add one or more items withPOST /api/v1/llm/conversations/{conversation_id}/items.
Continue the flow with the Responses resource
Pass the conversation ID in your next Responses request. This lets the MKA1 API use the saved conversation state.Read, update, or clean up a conversation
Use the Conversations endpoints to:- List conversations for the current account or end user (
GET /api/v1/llm/conversations). - Filter lists with
after,limit,order,metadata, andsearch. - Fetch one conversation by ID (
GET /api/v1/llm/conversations/{conversation_id}). - Update conversation metadata (
POST /api/v1/llm/conversations/{conversation_id}). - List items in a conversation (
GET /api/v1/llm/conversations/{conversation_id}/items). - Fetch a single item (
GET /api/v1/llm/conversations/{conversation_id}/items/{item_id}). - Delete items (single or many) via:
DELETE /api/v1/llm/conversations/{conversation_id}/items/{item_id}DELETE /api/v1/llm/conversations/{conversation_id}/itemswith{ "item_ids": ["item_..."] }
- Delete the conversation (
DELETE /api/v1/llm/conversations/{conversation_id}).
When to use conversations vs previous_response_id
Use a conversation when:
- You want a reusable container for many turns.
- You need to list or manage saved items later.
- You want to attach metadata to the ongoing thread.
previous_response_id when:
- You only need to continue from one earlier response.
- You do not need a separate stored conversation resource.