DevelopersAPI referenceAI
Read a saved chat
GET
Only served with CHAT_MEMORY=true. 404 when it is not the caller's or has expired.
bearerheader
AuthorizationBearer <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.
id*stringThe conversation with its messages, oldest first
application/json- response
id*stringcreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timeexpires_at*stringFormat
date-timemessages*array<>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" } ]}