Repository Public
1> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.23## Retrieve a conversation45**get** `/conversations/{conversation_id}`67Get a conversation89### Path Parameters1011- `conversation_id: string`1213### Returns1415- `Conversation object { id, created_at, metadata, object }`1617 - `id: string`1819 The unique ID of the conversation.2021 - `created_at: number`2223 The time at which the conversation was created, measured in seconds since the Unix epoch.2425 - `metadata: unknown`2627 Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.28 Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.2930 - `object: "conversation"`3132 The object type, which is always `conversation`.3334 - `"conversation"`3536### Example3738```http39curl https://api.openai.com/v1/conversations/$CONVERSATION_ID \40 -H "Authorization: Bearer $OPENAI_API_KEY"41```4243#### Response4445```json46{47 "id": "id",48 "created_at": 0,49 "metadata": {},50 "object": "conversation"51}52```5354### Example5556```http57curl https://api.openai.com/v1/conversations/conv_123 \58 -H "Authorization: Bearer $OPENAI_API_KEY"59```6061#### Response6263```json64{65 "id": "conv_123",66 "object": "conversation",67 "created_at": 1741900000,68 "metadata": {"topic": "demo"}69}70```71