Skip to content
Skip to Content
DevelopersAPI referenceAI

Read a saved chat

GET
/v1/chat/conversations/{id}

Only served with CHAT_MEMORY=true. 404 when it is not the caller's or has expired.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Path Parameters

id*string

Response Body

The conversation with its messages, oldest first

application/json
  1. response
id*string
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
expires_at*string
Formatdate-time
messages*array<>
Example Request
curl -X GET 'https://example.com/v1/chat/conversations/string'
Example Response
{  "id": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "messages": [    {      "role": "user",      "content": "string",      "sources": [        {          "n": 0,          "id": "string",          "kind": "link",          "title": "string",          "url": "string",          "domain": "string"        }      ],      "created_at": "2019-08-24T14:15:22Z"    }  ]}