Create client
Create a client under an agency. The client is a new workspace that runs on the agency's plan, so it needs no plan or card of its own. Returns the client's slug. Next, build its first agent with create_agent on that slug. Give it an icon that fits the client's business; without one it gets an icon picked for it. Pass contactEmail to invite the client's contact to their portal, where they see their calls and results: the invitation email is sent straight away. Set a monthly spending limit afterwards with set_client_spend_limit. Only works on an agency account, for an owner or admin of the agency.
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.
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/create_client" \ -H "Content-Type: application/json" \ -d '{ "workspace": "string", "name": "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
}Create call summary POST
Turn on this workspace's daily or weekly call summary, the same as Set up under Summaries on the Alerts page. A summary is one email per period: the daily one counts yesterday's calls, new leads and urgent calls and lists up to 20 of them; the weekly one counts the week's calls, the ones that needed you and what callers asked about. A period with no calls sends nothing. A workspace has at most one summary of each kind: when one already exists the op refuses and names its id, so change it with update_call_summary instead. Recipients are email only. A new summary covers every agent unless you pass agentIds, and counts calls from the team's own numbers unless you pass skipTeamCallers: true. Needs a workspace owner or admin. The success summary states the schedule and scope, so read it back.
Create schedule POST
Schedule a recurring eval run for the agent you're editing, "run the eval suite on this cron schedule". Pass a 5-field cron expression + an IANA timezone; the next-run time is computed server-side. By default it runs ALL of the agent's evals; pass evalIds (from list_tests) to scope it to specific ones. numRuns (1-10) controls how many times each eval runs per fire. The schedule does NOT run immediately, it fires on the schedule via the platform's cron tick. Use this when an operator asks to "test this agent nightly" or "run the suite every hour".