Skip to main content
POST
/
v1
/
sessions
/
{session_id}
/
messages
Send a follow-up message
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.

Authorizations

Authorization
string
header
required

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.

Path Parameters

session_id
string<uuid>
required

The unique identifier of the session.

Body

application/json
input
string
required

The follow-up question or instruction.

Response

Follow-up accepted; investigation is running.

id
string<uuid>
required

Unique session identifier.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

status
enum<string>
required
  • 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.
Available options:
running,
idle,
follow_up_running,
failed
input
string
required

The original incident description or question.

Example:

"Our checkout service started returning 500 errors at 2024-03-15T14:30:00Z. Error rate jumped from 0.1% to 15%."

created_at
string<date-time>
required

When the session was created (UTC).

Example:

"2024-03-15T14:35:00Z"

user_message_id
string
required

ID of the recorded user message.

Example:

"msg-003-uuid"

assistant_message_id
string
required

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.

Example:

"msg-004-uuid"

title
string | null

Human-readable session title.

Example:

"Elevated error rate in checkout service"

updated_at
string<date-time> | null

When the session was last updated (UTC).

Example:

"2024-03-15T14:38:12Z"

messages
object[] | null

Conversation history. Only populated on GET /v1/sessions/{session_id}.