Sends a follow-up question on an existing session. Traversal uses the full conversation history as context.
The session must be in the idle status. If it is running or
follow_up_running, the API returns 409 Conflict with retry_after.
Poll GET /v1/sessions/{session_id} until the session status returns
to idle to retrieve the assistant response.
curl --request POST \
--url https://api.traversal.com/v1/sessions/{session_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "Can you check if the database connection pool was exhausted during the incident?"
}
'{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "running",
"input": "Our checkout service started returning 500 errors at 2024-03-15T14:30:00Z. Error rate jumped from 0.1% to 15%.",
"created_at": "2024-03-15T14:35:00Z",
"user_message_id": "msg-003-uuid",
"assistant_message_id": "msg-004-uuid",
"title": "Elevated error rate in checkout service",
"updated_at": "2024-03-15T14:38:12Z",
"messages": [
{
"id": "msg-001-uuid",
"role": "user",
"markdown_content": "## Investigation Summary\n\nI investigated the elevated error rate...",
"created_at": "2024-03-15T14:38:12Z"
}
]
}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.
Bearer token in the Authorization header — for example,
Authorization: Bearer trv_ak_your_api_key_here. Each key is bound to a
specific user and organization.
The unique identifier of the session.
The follow-up question or instruction.
Follow-up accepted; investigation is running.
Unique session identifier.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
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.running, idle, follow_up_running, failed The original incident description or question.
"Our checkout service started returning 500 errors at 2024-03-15T14:30:00Z. Error rate jumped from 0.1% to 15%."
When the session was created (UTC).
"2024-03-15T14:35:00Z"
ID of the recorded user message.
"msg-003-uuid"
ID of the assistant message that will contain the response.
Poll GET /v1/sessions/{session_id} until the session status
is idle to retrieve the completed response.
"msg-004-uuid"
Human-readable session title.
"Elevated error rate in checkout service"
When the session was last updated (UTC).
"2024-03-15T14:38:12Z"
Conversation history. Only populated on GET /v1/sessions/{session_id}.
Show child attributes
curl --request POST \
--url https://api.traversal.com/v1/sessions/{session_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "Can you check if the database connection pool was exhausted during the incident?"
}
'{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "running",
"input": "Our checkout service started returning 500 errors at 2024-03-15T14:30:00Z. Error rate jumped from 0.1% to 15%.",
"created_at": "2024-03-15T14:35:00Z",
"user_message_id": "msg-003-uuid",
"assistant_message_id": "msg-004-uuid",
"title": "Elevated error rate in checkout service",
"updated_at": "2024-03-15T14:38:12Z",
"messages": [
{
"id": "msg-001-uuid",
"role": "user",
"markdown_content": "## Investigation Summary\n\nI investigated the elevated error rate...",
"created_at": "2024-03-15T14:38:12Z"
}
]
}