Delete a session
DEL https://api.129.212.147.181.sslip.io/v1/sessions/{session}
Deletes the conversation, the answers and any documents made from the session, now. Otherwise the session is deleted at its expires_at. Usage metadata (IDs, timings) stays.
Path parameters
Headers
Bearer dg_test_… or Bearer dg_live_…
The session_secret returned when the session started. For a
document, the secret of the session it was made from. Send it from
your server only.
Returns
204 No Content: Deleted.
Errors
| Status | Code | What to do |
|---|---|---|
| 401 | session_secret_missing | Send Docgen-Session-Secret: the session_secret returned when the session started. |
| 404 | session_not_found | Check the ID, and that Docgen-Session-Secret is the secret returned when the session started. |
Any endpoint can also return the common errors (bad key, rate limit, idempotency).