> For AI agents: the documentation index is at https://platform.detectif.ai/llms.txt. Every page is also available as Markdown by adding `.md` to its path.

# List call sessions

`GET /v1/detect/sessions`

Lists your calls and file analyses, newest first. Filter with `call_id` to find the session of a provider call (Twilio `callSid`, Plivo `callUuid`, taken from the start message) or of your own call id. Page with `limit` and `cursor`. Requires scope `noesis:read`.

## Authentication

Send your API key as `Authorization: Bearer <your API key>`.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `Authorization` | string | yes | `Bearer <your API key>`. Keys are created in the dashboard; see [Authentication](https://platform.detectif.ai/docs/noesis/authentication/). |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `call_id` | string or null | no | Only sessions of this call id (yours, or Twilio's callSid / Plivo's callUuid). (at most 200 characters) |
| `limit` | integer | no | How many sessions to return (1-100). (1 to 100; default `20`) |
| `cursor` | string or null | no | `next_cursor` from the previous page. (at most 256 characters) |

## Response

`200`: Success.

| Field | Type | Required | Description |
|---|---|---|---|
| `request_id` | string | yes |  |
| `object` | string | yes | (always `"list"`) |
| `data` | array of object | yes |  |
| `data.request_id` | string or null | no |  |
| `data.type` | string | no | (default `"session"`; always `"session"`) |
| `data.object` | string | no | (default `"noesis.session"`; always `"noesis.session"`) |
| `data.session_id` | string | yes |  |
| `data.stream_session_id` | string or null | no | The session id in the socket's ready message (same as session_id or an alias of it; both work for lookups). |
| `data.operation_id` | string or null | no |  |
| `data.status` | string | yes | waiting: the stream token was created but not used yet; active: the call is running; completed / interrupted / failed: the call ended. (one of `waiting`, `expired`, `active`, `completed`, `interrupted`, `failed`) |
| `data.closed` | boolean | yes |  |
| `data.call_id` | string or null | no | Your call id, or the provider's (Twilio callSid, Plivo callUuid). |
| `data.transport` | string or null | no | (one of `websocket`, `file`) |
| `data.orchestration` | string or null | no | binary, json, twilio, plivo or file. |
| `data.encoding` | string or null | no |  |
| `data.sample_rate` | integer or null | no |  |
| `data.channels` | integer or null | no |  |
| `data.record` | boolean | yes |  |
| `data.started_at` | string or null | no |  |
| `data.ready_at` | string or null | no |  |
| `data.ended_at` | string or null | no |  |
| `data.end_reason` | string or null | no |  |
| `data.audio_seconds` | number | yes | Seconds of the called person's audio received so far. |
| `data.billed_seconds` | number or null | no |  |
| `data.credits_charged` | integer or null | no |  |
| `data.latest` | object or null | no | The latest classification event (live during the call). |
| `data.events` | array of object | no | Classification events, oldest first. |
| `data.error` | string or null | no |  |
| `data.label` | string or null | no | The answer: the final one after the call, the latest during it. |
| `data.category` | string or null | no |  |
| `data.confidence` | number or null | no |  |
| `data.decided` | boolean or null | no |  |
| `data.timeline` | array of object or null | no |  |
| `has_more` | boolean | yes |  |
| `next_cursor` | string or null | yes |  |

### Example response

```json
{
  "request_id": "req_8f14e45fceea167a5a36dedd",
  "object": "list",
  "data": [
    {
      "type": "session",
      "object": "noesis.session",
      "session_id": "5b2f0c9e8d7a4b6c9e1f2a3b4c5d6e7f",
      "stream_session_id": "5b2f0c9e8d7a4b6c9e1f2a3b4c5d6e7f",
      "operation_id": "op_6f1ed002ab5595859014ebf0951522d9",
      "status": "completed",
      "closed": true,
      "call_id": "CA0123456789abcdef0123456789abcdef",
      "transport": "websocket",
      "orchestration": "twilio",
      "encoding": "mulaw",
      "sample_rate": 8000,
      "channels": 1,
      "record": true,
      "started_at": "2026-10-19T09:30:00Z",
      "ready_at": "2026-10-19T09:30:00Z",
      "ended_at": "2026-10-19T09:31:12Z",
      "end_reason": "client_end",
      "audio_seconds": 71.4,
      "billed_seconds": 71.4,
      "latest": {
        "type": "classification",
        "seq": 1,
        "version": 1,
        "t": 4.2,
        "label": "human",
        "category": "human",
        "confidence": 0.93,
        "change": "initial",
        "trigger": "speech",
        "reason": "A person answered and greeted the caller."
      },
      "events": [
        {
          "type": "classification",
          "seq": 1,
          "version": 1,
          "t": 4.2,
          "label": "human",
          "category": "human",
          "confidence": 0.93,
          "change": "initial",
          "trigger": "speech",
          "reason": "A person answered and greeted the caller."
        }
      ],
      "label": "human",
      "category": "human",
      "confidence": 0.93
    }
  ],
  "has_more": false
}
```

## Errors

| Status | Meaning |
|---|---|
| `400` | The request is invalid, for example an API key in the URL or an unsupported parameter. |
| `401` | The API key is missing, invalid or revoked. |
| `403` | The key lacks the required scope, the e-mail address is not verified, or the account is suspended. |
| `429` | Too many requests, or too many calls and file analyses at the same time. Wait for Retry-After seconds. |
| `500` | Something went wrong on our side. |

Error bodies use the shape described in [Errors](https://platform.detectif.ai/docs/noesis/errors/), with a stable `error.code`.

## Code samples

```bash
curl "https://api.noesis.detectif.ai/v1/detect/sessions" \
  -H "Authorization: Bearer $DETECTIF_API_KEY"
```

```python
import os

import requests

resp = requests.get(
    "https://api.noesis.detectif.ai/v1/detect/sessions",
    headers={"Authorization": f"Bearer {os.environ['DETECTIF_API_KEY']}"},
    timeout=30,
)
print(resp.status_code, resp.json())
```

```javascript
const res = await fetch("https://api.noesis.detectif.ai/v1/detect/sessions", {
  headers: {
    Authorization: `Bearer ${process.env.DETECTIF_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```
