Retrieve the answers
GET https://api.129.212.147.181.sslip.io/v1/sessions/{session}/answers
The answers collected so far, keyed by question ID — what a document will be drafted from. A skipped question is null.
Path parameters
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 SessionAnswers object. The answers.
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).