List messages
GET https://api.129.212.147.181.sslip.io/v1/sessions/{session}/messages
The conversation, oldest first.
Path parameters
Query parameters
Page size, 1–100.
A message ID from the previous page; returns the messages after it.
Headers
Bearer dg_test_… or Bearer dg_live_…
Your reference for the end user (a user ID, a hash; never an email).
A session is bound to the subject it was created with, and every call
on it must send the same value or it is 404. Set it from your own
login, never from what the browser sent. Required to create and list
sessions unless your organisation has subjects turned off.
Returns
200 OK: a MessageList object. One page of messages.
Errors
| Status | Code | What to do |
|---|---|---|
| 404 | session_not_found | Check the ID, and that Docgen-Subject is the subject the session was created for. |
| 410 | session_deleted | The session was deleted with its conversation and answers. Start a new one. |
Any endpoint can also return the common errors (bad key, rate limit, idempotency).