GET/api/orgs/{org_id}/sessions

List sessions

Sessions in the window with totals computed from every request. A session matches when any of its requests match the request filters and its totals match the requests_*, errors_*, duration_* and session_cost_* ranges.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

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

Query parameters

  • windowenum

    24h (default), 7d or 30d, ending now.

    "24h""7d""30d"
    Default: "24h"
  • startstring

    An exact range start instead of window (RFC 3339 with a zone), inclusive. Lists span at most 400 days; search at most 30.

  • endstring

    The exact range end, exclusive. Pass with start.

  • modelstring

    Model slugs. Comma-separated values match any of them (at most 50).

  • providerstring

    Providers that served the request. Comma-separated values match any of them (at most 50).

  • api_key_idstring

    API key ids (uuids). Comma-separated values match any of them (at most 50).

  • end_userstring

    End-user labels your requests sent. Comma-separated values match any of them (at most 50).

  • statusstring

    completed, failed, refused, incomplete or cancelled. Comma-separated values match any of them (at most 50).

  • failure_classstring

    Error classes, such as throttled. Comma-separated values match any of them (at most 50).

  • sessionstring

    One session id.

  • trace_idstring

    One trace id: 32 lower-case hex characters.

  • pathstring

    A step path prefix: /plan/research matches /plan/research/search-1.

  • laneenum

    platform (platform credits) or byok (your own provider key).

    "platform""byok"
  • cacheenum

    1: only requests with cached input tokens.

    "1"
  • cost_mininteger

    All-in cost at least this value, in nano-USD (1,000,000,000 is one dollar).

  • cost_maxinteger

    All-in cost at most this value, in nano-USD (1,000,000,000 is one dollar).

  • latency_mininteger

    Total latency at least this value, in milliseconds.

  • latency_maxinteger

    Total latency at most this value, in milliseconds.

  • ttft_mininteger

    Time to first token at least this value, in milliseconds.

  • ttft_maxinteger

    Time to first token at most this value, in milliseconds.

  • tokens_mininteger

    Input plus output tokens at least this value.

  • tokens_maxinteger

    Input plus output tokens at most this value.

  • tagstring

    A request tag as key:value, or key:* for any value. Repeatable, one per key, at most 16.

  • tag_scorestring

    A trace tag score range as tag_id:min:max (0 to 1; leave a bound empty to keep it open). Repeatable, at most 16.

  • tag_firedstring

    Only requests this check (trace tag, its uuid) flagged.

  • toolstring

    Only requests that used one of these paid tools, by tool key (comma separated, e.g. web_search).

  • feedbackenum

    Only requests someone rated with the drawer's thumbs: up (any rater's thumb is up), down, or any rating.

    "up""down""any"
  • tag_labelstring

    Only requests a Tag or Multi-tag check labeled with this label, as <check id>:<label> (a label of 1 to 64 characters).

  • prompt_groupstring

    Prompt groups (12 hex characters, as a request shows them). Comma-separated values match any of them (at most 50).

  • conversation_groupstring

    Conversation handles (12 hex characters). Comma-separated values match any of them (at most 50).

  • countrystring

    Where the request came from: ISO country codes. Comma-separated values match any of them (at most 50).

  • regionstring

    Continents: AF, AN, AS, EU, NA, OC, SA. A request matches any listed country or any country of a listed region.

  • excludestring

    Leave rows out: field:value with field one of model, provider, api_key_id, end_user, status, failure_class, lane, country. Repeatable.

  • requests_mininteger

    Sessions with at least this many requests.

  • requests_maxinteger

    Sessions with at most this many requests.

  • errors_mininteger

    Sessions with at least this many errors.

  • errors_maxinteger

    Sessions with at most this many errors.

  • duration_mininteger

    Sessions lasting at least this many milliseconds.

  • duration_maxinteger

    Sessions lasting at most this many milliseconds.

  • session_cost_mininteger

    Sessions costing at least this many nano-USD in total.

  • session_cost_maxinteger

    Sessions costing at most this many nano-USD in total.

  • agentarray<string>

    Sessions with a span that names one of these agents (gen_ai.agent.name, or the resource service.name). Repeat it for more than one, at most 20.

  • sortenum

    activity (default), cost, duration, requests or errors.

    "activity""cost""duration""requests""errors"
    Default: "activity"
  • direnum

    desc (default) or asc.

    "desc""asc"
    Default: "desc"
  • limitinteger

    Rows per page, 1 to 200.

    Default: 50
  • cursorstring

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

  • previewenum

    1 adds preview (the first user message, one line, at most 80 characters) and content_state to each session.

    "1""0""true""false"

Responses

  • 200

    One page of sessions.

    Response
    • sessionsarray<object>required
      sessions
      • session_idstring
      • namestring | null
      • first_atstring
      • last_atstring
      • duration_msinteger
      • request_countinteger
      • error_countinteger
      • trace_countinteger
      • input_tokensinteger
      • output_tokensinteger
      • cached_input_tokensinteger
      • cost_nano_usdinteger

        Charged, nano-USD.

      • estimated_cost_nano_usdinteger

        Your own provider key's estimate, nano-USD.

      • free_nano_usdinteger

        List value of free usage, nano-USD.

      • creditsnumber

        Credits drawn from the balance (1 credit = 1 cent).

      • modelsarray<string>
      • api_key_idsarray<string>
      • end_usersarray<string>
      • root_pathstring | null
      • tool_chargesarray<object>

        The session's paid tool charges, summed per tool over its requests. Parts of its cost, never added to it.

        tool_charges
        • tool_keystring

          The tool's key, for example web_search.

        • namestring

          Its display name, for example Exa search.

        • providerstring | null
        • unitenum
          "call""result""per_1000"
        • unitsinteger
        • cost_nano_usdinteger

          What the units cost, integer nano-USD (1,000,000,000 = $1); 0 on your own key.

        • cost_usdnumber
      • previewobject | null

        Only with preview=1. The session's first user message on one line, at most 80 characters (cut is true when the message is longer). Null when none is stored.

        preview
        • textstring
        • cutboolean
      • content_stateenum

        Only with preview=1. Whether the session's text is stored: not_stored when storage is off or nothing of its opening was stored, processing for a session a few minutes old whose text is still being loaded, stored otherwise.

        "stored""not_stored""processing"null
      • kindenum

        session for a session you declared (a session id or client session header); trace for one trace sent without a session id that has more than one step, listed as its own session. A single call sent without a session id is never listed.

        "session""trace"
      • agentstring | null

        Who ran the session, from its earliest spans' gen_ai.agent.name, else their resource service.name. Null when no span names one.

      • trace_namestring | null

        The name of the session's first root span (a trace row's label when it has no agent).

    • next_cursorstring | nullrequired
    • totalinteger | null

      The exact count when it can be counted in time, else null.

    • declared_sessionsinteger | null

      Sessions your requests declared in the range (a session id or a client session header), counted up to 5. First page only, for an organization-wide reader; null on later pages and for a member.

    • previewsenum

      With preview=1, whether rows carry previews (withheld when your access does not include stored prompts).

      "shown""withheld"null
  • 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

    Unknown organization, or not the key's own organization.

    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?window=7d&start=2026-11-18T00%3A00%3A00Z&end=2026-11-19T00%3A00%3A00Z&model=gpt-6-luna&provider=experiential_cloud&api_key_id=6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33&end_user=user_48121&status=failed&failure_class=throttled&session=run-42&trace_id=4bf92f3577b34da6a3ce929d0e0e4736&path=%2Fplan%2Fresearch&lane=byok&cache=1&cost_min=1000000&cost_max=1000000&latency_min=5000&latency_max=5000&ttft_min=2000&ttft_max=2000&tokens_min=100000&tokens_max=100000&tag=team%3Asupport&tag_score=0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90%3A0.5%3A&tag_fired=0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90&tool=web_search&feedback=up&tag_label=0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90%3ARefund&prompt_group=9c41e07ab2d3&conversation_group=f02a6b19c4e8&country=US%2CFR&region=EU&exclude=model%3Agpt-6-luna&requests_min=10&requests_max=10&errors_min=10&errors_max=10&duration_min=10&duration_max=10&session_cost_min=10&session_cost_max=10&agent=travel-planner&sort=cost&dir=desc&limit=50&cursor=eyJ2IjoxLCJrIjoicmVxdWVzdHMi...&preview=1' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "sessions": [
    {
      "session_id": "run-42",
      "name": "Support run",
      "first_at": "2026-11-18T14:20:01Z",
      "last_at": "2026-11-18T14:32:07Z",
      "duration_ms": 726000,
      "request_count": 41,
      "error_count": 1,
      "trace_count": 3,
      "input_tokens": 182300,
      "output_tokens": 9120,
      "cached_input_tokens": 150400,
      "cost_nano_usd": 61200000,
      "estimated_cost_nano_usd": 0,
      "free_nano_usd": 0,
      "credits": 6.12,
      "models": [
        "gpt-6-luna"
      ],
      "api_key_ids": [
        "6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33"
      ],
      "end_users": [
        "user_48121"
      ],
      "root_path": "/plan"
    }
  ],
  "next_cursor": null,
  "total": 1
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/sessions?window=7d&start=2026-11-18T00%3A00%3A00Z&end=2026-11-19T00%3A00%3A00Z&model=gpt-6-luna&provider=experiential_cloud&api_key_id=6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33&end_user=user_48121&status=failed&failure_class=throttled&session=run-42&trace_id=4bf92f3577b34da6a3ce929d0e0e4736&path=%2Fplan%2Fresearch&lane=byok&cache=1&cost_min=1000000&cost_max=1000000&latency_min=5000&latency_max=5000&ttft_min=2000&ttft_max=2000&tokens_min=100000&tokens_max=100000&tag=team%3Asupport&tag_score=0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90%3A0.5%3A&tag_fired=0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90&tool=web_search&feedback=up&tag_label=0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90%3ARefund&prompt_group=9c41e07ab2d3&conversation_group=f02a6b19c4e8&country=US%2CFR&region=EU&exclude=model%3Agpt-6-luna&requests_min=10&requests_max=10&errors_min=10&errors_max=10&duration_min=10&duration_max=10&session_cost_min=10&session_cost_max=10&agent=travel-planner&sort=cost&dir=desc&limit=50&cursor=eyJ2IjoxLCJrIjoicmVxdWVzdHMi...&preview=1