GET/api/orgs/{org_id}/sessions/{session_id}/spans/{span_id}

Get one span of a session

One span of the session with what it was given (input) and what it returned (output), lifted out of its attributes; the other attributes stay in attributes. Use it to open a tool step from the skeleton. The same rules as the skeleton apply: a member reads only a session wholly theirs, and nothing before the organization's erasure.

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.

  • span_idstringrequired

    The span id, from the skeleton's id.

Responses

  • 200

    The span.

    Response
    • span_idstringrequired
    • namestringrequired
    • kindstringrequired
    • inferredbooleanrequired

      True for a step the platform inferred from the requests (a tool call), false for a span your agent sent.

    • statusstringrequired
    • status_messagestring | null
    • start_timestringrequired
    • end_timestring | null
    • duration_msinteger | null
    • request_idstring | null

      The request the span belongs to, when it has one.

    • inputstring | null

      What the span was given; null when nothing is stored.

    • outputstring | null

      What the span returned; null when nothing is stored.

    • attributesobjectrequired

      The span's other attributes.

  • 400

    The span id is not 1 to 256 printable characters (invalid_span_id).

    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 such session or span in the organization (session_not_found, span_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).

  • 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/spans/t-1' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "span_id": "t-1",
  "name": "lookup_order",
  "kind": "tool",
  "inferred": true,
  "status": "ok",
  "status_message": null,
  "start_time": "2026-11-18T14:20:03.150Z",
  "end_time": "2026-11-18T14:20:03.460Z",
  "duration_ms": 310,
  "request_id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
  "input": "{\"order_id\":\"A-1042\"}",
  "output": "{\"status\":\"shipped\"}",
  "attributes": {}
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/sessions/run-42/spans/t-1