Skip to main content
ApolloManagementClient is the server-side client for operating your workspace. It authenticates with your organization API key, sent as the x-organization-api-key header on every request — never expose the key in the browser.
The Apollo Agent Tester also covers this client — enter an organization API key on its Connect page to list projects, agents and versions, and to read conversations and their traces, from your browser.
All methods are async, fully typed, and throw typed errors on failure. Request and response models are exported under the Apollo namespace.

Projects

Agents

Both usage methods — getAgentUsage and projects.getProjectUsage — take an optional created_from / created_to window and return the same usage metrics: interaction and token counts. From SDK 3.4.2 they include cache_write_tokens, the part of input_tokens that was written to the cache, and incomplete_usage_calls, the number of model calls whose token usage was reported incompletely.

Agent versions

Threads

The trace methods are the management twins of the messaging ones — same shapes, same thread_id rule, authenticated with the organization API key instead of a publishable key:
On a conversation the agent handed to a person on your team, the transcript from getThreadMessages says what happened to each message in disposition, and names the person in sender.name — see Human handover. Filter fields go directly on the request: project_id, agent_id, user_id, external_id, created (one value, or two for a range), tool, rule, and param. List endpoints also take sort_by / sort_order and page[size] / page[after] / page[before] for keyset pagination in either direction.
Prefer a filter such as project_id over an empty request — the unfiltered list sorts every thread in the organization and can be slow. For large windows, raise the per-call timeout: client.threads.listThreads({ project_id }, { timeoutInSeconds: 120 }).

Threads and runtime versions

A thread lives on the runtime that created it — reads and renames name that runtime with the runtime_version selector (e.g. '0.8.0', the runtime version the agent runs on; any value outside the 1.x family selects runtime v2, and it doesn’t have to match the thread’s exact build):
Listing runtime v2 threads is always scoped to an agent or an end user, and only agent_id, user_id, and created (with agent_id) apply — the runtime v1–only filters return a clear 400 on the runtime v2 path:
Threads of runtime v1 agents (24-character hex ids) live on runtime v1, which is the default — the calls earlier on this page, without runtime_version, read those.

Pagination

List methods return a page: results plus meta cursors.
Every method also accepts a final requestOptions argument (timeoutInSeconds, maxRetries, abortSignal, extra headers, extra queryParams, and a per-call organizationApiKey override) — see Best practices.