# List activity

Lists every batch job and live session of your workspace, the open ones first, with a summary of the last 24 hours.

`GET /v1/activity` on `https://api.eu.vatis.tech`

## Headers

| header | values | default | meaning |
|---|---|---|---|
| `Authorization` | `Bearer <api key>` | required | Your API key ([Authentication and API keys](https://platform.vatis.tech/docs/authentication)). An Admin key sees every key's rows, a Member key its own. |

## Query parameters

| parameter | values | default | meaning |
|---|---|---|---|
| `limit` | 1 to 100 | `25` | Rows per page. |
| `offset` | a whole number, 0 or more | `0` | Rows to skip. Past `total`: an empty page. |
| `type` | `batch`, `realtime`, or both, comma-separated | all | Only rows of these kinds. Example: `batch,realtime`. |
| `status` | `queued`, `running`, `completed`, `failed` | all | Only rows in this state. |
| `key_id` | a key's id | all | Only one API key's rows, a revoked key's too. A Member key can name only itself. |
| `id` | the start of an id, 3 to 64 letters, digits or `_` |  | Only the rows whose id starts so, for example `tr_3b4`. |

## Response fields

| field | when | meaning |
|---|---|---|
| `activity` |  | The rows: `running` and `queued` first, newest first, then the rest, newest first. Every row has every field, `null` where it does not apply ([A row](https://platform.vatis.tech/docs/usage#a-row)). |
| `total` |  | The rows that match the filters. |
| `offset` |  | As applied, with `limit`. |
| `summary` |  | The whole workspace (a Member key: its own), not filtered: `running`, `queued`, `last_24h`, `failed_24h`, `batch_speed_24h`, and `types`: the same four counts for `batch` and `realtime` ([The page and its summary](https://platform.vatis.tech/docs/usage#the-page-and-its-summary)). |
| `keys` |  | The keys that appear in the record, `id` and `name`, by name. |
| `retention_days` |  | How long finished rows are kept, in days: 7, as transcripts are. |

## Responses

`200`: A page of rows, here trimmed to two.

```json
{
  "activity": [
    {
      "seq": 4186,
      "id": "sess_51d0c8e2f4a74b9e8c1d03a6f2b7e590",
      "type": "realtime",
      "status": "running",
      "kept": true,
      "created_at": "2026-11-12T09:21:40Z",
      "started_at": "2026-11-12T09:21:40Z",
      "ended_at": null,
      "deleted_at": null,
      "queued_s": null,
      "processing_s": null,
      "first_text_ms": null,
      "audio_s": null,
      "model_id": "vatis_ro_v9_realtime",
      "speakers": true,
      "channels": 1,
      "translation": null,
      "key": {
        "id": "key_3f9c1a2b7d4e",
        "name": "crm-backend"
      },
      "error": null,
      "end": null
    },
    {
      "seq": 4182,
      "id": "tr_3b41a7db9aba52c0",
      "type": "batch",
      "status": "completed",
      "kept": true,
      "created_at": "2026-11-12T09:14:03Z",
      "started_at": "2026-11-12T09:14:04Z",
      "ended_at": "2026-11-12T09:14:36Z",
      "deleted_at": null,
      "queued_s": 0.842,
      "processing_s": 31.604,
      "first_text_ms": null,
      "audio_s": 741.2,
      "model_id": "vatis_ro_v9",
      "speakers": true,
      "channels": 1,
      "translation": null,
      "key": {
        "id": "key_3f9c1a2b7d4e",
        "name": "crm-backend"
      },
      "error": null,
      "end": null
    }
  ],
  "total": 132,
  "offset": 0,
  "limit": 25,
  "summary": {
    "running": 1,
    "queued": 0,
    "last_24h": 87,
    "failed_24h": 3,
    "batch_speed_24h": 23.4,
    "types": {
      "batch": {
        "running": 0,
        "queued": 0,
        "last_24h": 40,
        "failed_24h": 2
      },
      "realtime": {
        "running": 1,
        "queued": 0,
        "last_24h": 35,
        "failed_24h": 1
      }
    }
  },
  "keys": [
    {
      "id": "key_3f9c1a2b7d4e",
      "name": "crm-backend"
    }
  ],
  "retention_days": 7
}
```

`400` `invalid_parameter`: A `limit` outside 1 to 100, another `type` or `status`, an unknown `key_id`, an `id` shorter than 3 characters, or another query parameter. The `param` names it.

```json
{
  "error": {
    "code": "invalid_parameter",
    "message": "'limit' must be between 1 and 100.",
    "param": "limit",
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`401` `unauthorized`: No key, or a wrong, revoked or expired one.

```json
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid, revoked or expired key.",
    "param": null,
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`403` `admin_only`: A Member key asked for another key's rows (`key_id`).

```json
{
  "error": {
    "code": "admin_only",
    "message": "This key sees only its own activity.",
    "param": "key_id",
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`503` `unavailable`: The service is busy for a moment. Send the request again after the seconds of the `Retry-After` header.

## Notes

- An empty value counts as not sent.
- **No content:** a row holds no text, file name, URL, `metadata` or `client_reference` ([What the record holds](https://platform.vatis.tech/docs/usage#what-the-record-holds)).
