Skip to content
Connect an agent

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/export

TL;DR

QuestionAnswer
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

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Query parameters

FieldTypeRequiredDescription
memberstringnoA member's account id: the calls of the agents they connected.
keystringnoAn 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"noAn MCP tool, or a /v1 route as METHOD path.
group"draw" | "import" | "publish" | "library" | "check" | "icons" | "docs" | "help"noWhat the calls did.
outcome"ok" | "invalid" | "refused" | "error"noHow the calls ended.
fromstringnoFrom this time on (inclusive).
tostringnoBefore this time (exclusive).

Responses

StatusMeaningBody
200The CSV.none
400A filter is not valid.ErrorResponse
401Not signed in.ErrorResponse
403Not the owner or an admin (orgs.forbidden).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations or the call history are not set up on this server.ErrorResponse

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools