---
title: "Get Account Activity"
method: GET
path: "/api/activity"
tags: ["agent-activity"]
---

# Get Account Activity

`GET /api/activity`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/activity`
- Auth: HTTP bearer

Returns what happened across the account's agents and computers (creates, boots, starts,
sleeps, wakes, takeovers, deletes, errors, triggers), newest first.

## Query parameters

- `limit` integer
- `type` string[], nullable: Only these types (repeat for several). Default: all three.
- `before` string, date-time, nullable: Only entries strictly older than this ISO timestamp (pagination cursor).
- `since` string, date-time, nullable: Only entries at or after this ISO timestamp.
- `until` string, date-time, nullable: Only entries at or before this ISO timestamp.
- `agent_id` string, nullable: Only the events of this agent or computer.
- `external_id` string, nullable: Only the events of the machines of this end user (the external id).

## Response `200`

Successful Response

- AccountActivityPage
  - `events` AccountActivityEvent[], required
    - `id` string, required
    - `timestamp` string, date-time, required
    - `type` 'trigger_fired' | 'llm_call' | 'tool_call' | 'lifecycle' | 'error' | 'outcome', required
    - `success` boolean, required
    - `triggerType` string, nullable, required
    - `toolName` string, nullable, required
    - `llmModel` string, nullable, required
    - `lifecyclePhase` string, nullable, required
    - `errorClass` string, nullable, required
    - `promptTokens` integer, required
    - `completionTokens` integer, required
    - `latencyMs` integer, required
    - `agentId` string, required
    - `agentName` string, nullable, required
    - `source` 'agent' | 'computer'
    - `machineKind` string, nullable
    - `externalId` string, nullable
    - `message` string, nullable
    - `detail` string, nullable
    - `deleted` boolean
  - `nextBefore` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
