---
search:
  tags:
    - Ask Iven
    - GET
seo:
  description: >-
    Read back a chat this key created, a page of messages at a time. Reference
    for the GET /v1/chat/{chatId} endpoint in the Aiventic Public API.
sidebar:
  label: Get a chat
  badge: GET
title: Get a chat
type: openapi-operation
---
Read back a chat this key created, a page of messages at a time.

Messages oldest first, at most `limit` of them. While `nextCursor` is not null, pass it as `cursor` for the next page; a page can hold fewer than `limit` messages before the last.

Scope: `chat`

`GET /v1/chat/{chatId}`

**Responses**

- `200` — OK
- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal Server Error

Response example, 200:

```json
{
  "chatId": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "brand": null,
  "model": null,
  "messages": [
    {
      "id": "string",
      "role": "user",
      "text": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "citations": [
        {
          "type": "manual",
          "title": "string",
          "url": null,
          "page": null
        }
      ],
      "items": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "kind": "choice",
          "status": "pending",
          "choice": {},
          "quickReply": {},
          "partCard": {},
          "resolution": {}
        }
      ]
    }
  ],
  "nextCursor": null
}
```
