List clients
List an agency's clients. Each client is a workspace of its own that runs on the agency's plan. Returns each client's name, slug and id, its live agents, its conversations in the last 7 days, what it has spent this month in cents, its monthly spending limit in cents (null means no limit), whether incoming calls stop at the limit, and pricing: what the agency charges that client (null when none is set; see set_client_pricing). Use a client's slug as the workspace in any other tool, such as list_agents or create_agent. Only works on an agency account. Needs workspace-wide access: a member limited to specific agents is refused.
Authorization
bearerAuth A personal access token from Settings > API tokens.
In: header
Header Parameters
A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The agency workspace's slug.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/operations/list_clients" \ -H "Content-Type: application/json" \ -d '{ "workspace": "string" }'{}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}List channels POST
List the agent's channels. `declared` is what the agent serves ('voice' = phone numbers and the website call pill, 'text' = website chat widget and share link); change it with set_agent_channels. `channels` are the website surface rows with each one's enabled state and presentation config (greeting bubble, consent line); toggle one with set_channel. A 'zendesk' row is a message channel (the agent answers customers' emails on Zendesk tickets): its config holds the mode (draft or reply), the topics, the sign-off and the ticket tag prefix; change it with set_message_channel. The brain (prompt, tools, knowledge base) is shared across channels.
List agents using an app POST
List the agents in a workspace that use a connected app's tools (the connection modal's "Used by" set). An agent counts only through its OWN enabled, active connection to the toolkit; a workspace-level connection makes the app available to add but lists no agents on its own. Pass the toolkit slug (from list_workspace_connections). Returns { agents: [{ id, name, slug }], total }. Any workspace member can read it.