The Sessions API lets you launch investigations, send follow-up questions, and fetch results programmatically. Sessions are the same investigation primitive that powers the Traversal web application — anything a member can do in the UI, you can do over the API. All endpoints require authentication — see Authentication to create an API key. For base URL, error envelope, and generic status codes, see the API overview.Documentation Index
Fetch the complete documentation index at: https://docs.traversal.com/llms.txt
Use this file to discover all available pages before exploring further.
The V1 Sessions API must be explicitly enabled for your organization. If your organization does not yet have access, contact your Traversal point of contact or support@traversal.com.
Endpoints
See the Endpoints section in the sidebar for the full API reference, generated from the OpenAPI spec.Session lifecycle
Investigations are asynchronous. Creating a session or sending a follow-up returns immediately while Traversal investigates in the background. To retrieve the result, pollGET /v1/sessions/{session_id} until the session reaches a terminal state.
Status values
| Status | Meaning |
|---|---|
running | A new investigation is in progress. |
idle | Investigation is complete and ready for follow-ups. |
follow_up_running | A follow-up message is being processed. |
failed | The investigation or follow-up errored or timed out. |
idle and failed are terminal-for-polling — once the session reaches one of these states, no further work is in progress.
Status transitions
Recommended polling pattern
After creating a session or sending a follow-up, pollGET /v1/sessions/{session_id} at a steady interval until the session is no longer in running or follow_up_running.
Session-specific errors
In addition to the generic status codes, the Sessions API returns these session-specific responses:| Status code | Meaning | When it occurs |
|---|---|---|
404 | Not Found | Session does not exist or does not belong to your organization. |
409 | Conflict | Session is not idle (e.g., still running or follow_up_running). Includes retry_after. |
429 | Too Many Requests | Organization has reached the limit of 5 concurrent running sessions. Includes retry_after (default 30s). |