Sessions

List a session's forks

Returns the sessions forked directly from this one. One level of lineage: a fork of a fork is listed under its own parent.

get/v1/projects/{project_id}/sessions/{session_id}/forks

Request

  • Base URL: https://api.naturali.ai
  • URL: https://api.naturali.ai/v1/projects/{project_id}/sessions/{session_id}/forks
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)

Path parameters

session_idstring required
Example:sess_V1StGXR8Z5jdHi6B

Session public ID

Query parameters

limitinteger

Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is 400.

offsetinteger

Results to skip. Negative or not an integer it is 400.

Response

Paginated list of forks

totalinteger
limitinteger
offsetinteger

Example response

{
  "data": [
    {
      "id": "sess_V1StGXR8Z5jdHi6B",
      "agent_id": "agent_V1StGXR8Z5jdHi6B",
      "conversation_id": "conv_V1StGXR8Z5jdHi6B",
      "status": "open",
      "name": "Support chat",
      "actor_id": "actor_V1StGXR8Z5jdHi6B",
      "tags": {
        "team": "finance",
        "env": "prod"
      },
      "inactivity_ttl_seconds": 300,
      "message_delay_seconds": 3,
      "max_context_messages": 20,
      "forked_from_session_id": "sess_V1StGXR8Z5jdHi6B",
      "forked_from_position": 7
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.