GET/api/orgs/{org_id}/sessions/{session_id}/turns

Read a session as a conversation

Each request's new messages and its response, in start order, with resent history folded into repeated_messages. A request with no stored body reads captured: false. At most 50 turns a page.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

  • session_idstringrequired

    The session id: the id your agent sent, else the conversation the gateway recognized, else the trace id.

Query parameters

  • limitinteger

    Turns per page, 1 to 50.

    Default: 20
  • cursorstring

    The next_cursor of the previous page, sent with the same filters and sort. Another query answers 400 cursor_mismatch.

Responses

  • 200

    One page of turns.

    Response
    • turnsarray<object>required
      turns
      • request_idstring
      • created_atstring
      • modelstring
      • statusstring
      • pathstring | null
      • repeated_messagesinteger

        Messages resent from earlier turns, folded into a count.

      • new_messagesarray | null

        The messages this request added; null when not stored.

        new_messages
        • rolestring | null
        • contentany
        • tool_callsany
        • tool_call_idstring | null
        • namestring | null
      • responseobject | null

        What the request got back: role, content, tool_calls.

        response
        • rolestring
        • contentany
        • tool_callsany
      • capturedboolean

        False when the request's body is not stored.

      • tag_scoresobject

        Each check's newest score (0 to 1) by check id; empty when no check scored the request.

      • tag_labelsobject

        The label a Tag check chose, by check id. A Multi-tag check's labels are joined by the unit separator (U+001F).

    • next_cursorstring | nullrequired
  • 400

    An unknown parameter or value, a parameter or value this API no longer takes, a repeated tag key, a bad range, an edited cursor, or a cursor sent with a different query. code names it (unknown_parameter, parameter_removed, invalid_filter, invalid_cursor, cursor_mismatch, range_too_wide, invalid_limit). A parameter_removed message names what to send instead.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    No session with this id in the organization (session_not_found).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 422

    Too broad to read in time (query_too_broad). Narrow the window or add a filter.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 429

    Too many reads. rate_limited: this organization's API-key reads of the request log are over about 10 per second (burst 30) or 4 in flight on one server (sessions are not limited). build_capacity: the shared analytics read slots are busy. Retry after Retry-After.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 503

    This deployment has no observability store (observability_unavailable), or the store could not answer (trace_store_error). Retry shortly.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/sessions/run-42/turns?limit=20&cursor=eyJ2IjoxLCJrIjoicmVxdWVzdHMi...' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "turns": [
    {
      "request_id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
      "created_at": "2026-11-18T14:32:07.481Z",
      "model": "gpt-6-luna",
      "status": "completed",
      "path": "/plan",
      "repeated_messages": 6,
      "new_messages": [
        {
          "role": "user",
          "content": "Where is order 4471?"
        }
      ],
      "response": {
        "role": "assistant",
        "content": "Order 4471 shipped on Monday."
      },
      "captured": true,
      "tag_scores": {},
      "tag_labels": {}
    }
  ],
  "next_cursor": null
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/sessions/run-42/turns?limit=20&cursor=eyJ2IjoxLCJrIjoicmVxdWVzdHMi...