Organisations
Export an organisation's call history
The call history as CSV, newest first, at most 5000 calls, with the same filters as the list.
GET
/orgs/{org}/calls/exportTL;DR
| Question | Answer |
|---|---|
| What does it do? | Export an organisation's call history. |
| What does it take? | org in the path, and member, key, tool, group, outcome, from, to in the query string. |
| What does it return? | Status 200 with no body. |
| What can go wrong? | 400 a filter is not valid; 401 not signed in; 403 not the owner or an admin (orgs.forbidden); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations or the call history are not set up on this server. Every failure uses the one error envelope. |
What it does
The call history as CSV, newest first, at most 5000 calls, with the same filters as the list. The owner and admins, signed in; the download is recorded in the audit log.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
org | string | yes | The organisation's id or its slug. |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
member | string | no | A member's account id: the calls of the agents they connected. |
key | string | no | An organisation key, or the key behind an agent connection, by id. |
tool | "compare_diagrams" | "convert_mermaid" | "delete_diagram" | "draw_diagram" | "draw_from_pattern" | "edit_diagram" | "find_pattern" | "get_diagram_syntax" | "get_pattern" | "import_source" | "list_diagrams" | "map_icons" | "outline_diagram" | "plan_document_diagrams" | "publish_diagram" | "read_diagram" | "render_diagram" | "search_icons" | "suggest_diagram" | "sync_markdown" | "validate_diagram" | "GET /v1/icons" | "GET /v1/vocabulary" | "POST /v1/diagrams/compare" | "POST /v1/diagrams/convert-mermaid" | "POST /v1/diagrams/draw" | "POST /v1/diagrams/edit" | "POST /v1/diagrams/outline" | "POST /v1/diagrams/publish" | "POST /v1/diagrams/read" | "POST /v1/diagrams/render" | "POST /v1/diagrams/suggest" | "POST /v1/diagrams/validate" | "POST /v1/icons/map" | "POST /v1/import" | "POST /v1/markdown/plan" | "POST /v1/markdown/sync" | "POST /v1/patterns/draw" | "POST /v1/patterns/find" | "POST /v1/patterns/get" | no | An MCP tool, or a /v1 route as METHOD path. |
group | "draw" | "import" | "publish" | "library" | "check" | "icons" | "docs" | "help" | no | What the calls did. |
outcome | "ok" | "invalid" | "refused" | "error" | no | How the calls ended. |
from | string | no | From this time on (inclusive). |
to | string | no | Before this time (exclusive). |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The CSV. | none |
| 400 | A filter is not valid. | ErrorResponse |
| 401 | Not signed in. | ErrorResponse |
| 403 | Not the owner or an admin (orgs.forbidden). | ErrorResponse |
| 404 | No such organisation, or the caller is not a member of it. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 503 | Organisations or the call history are not set up on this server. | ErrorResponse |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |