Create call summary
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.
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_call_summary" \ -H "Content-Type: application/json" \ -d '{ "kind": "daily", "emailAddresses": [ "string" ], "agent": "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 alert POST
Create a new CUSTOM real-time call alert. This ALWAYS creates a free-form alert (reason stays unset), it can never mint one of the 6 built-in reason alerts (new_lead/urgent/missed/message_taken/booking/all_calls); those only come into existence when an operator turns one on in the portal. A custom alert fires on the calls its `firesOn` trigger matches (default all_calls = every finished call), delivered to its own typed recipients, not a logged-in portal member's account, so a shared mailbox, phone number or Slack channel can get a copy of every call without being invited as a platform user. `skipTeamCallers` drops calls from the team's own numbers, for a feed that should only carry real callers. Optional email/SMS templates support {{caller_name}}, {{caller_number}}, {{did}}, {{call_time}}, {{business_name}}, {{summary}}, {{transcript}}, and {{call_link}}, leave blank to use the default "every call" copy. Needs a workspace owner or admin. SCOPE: a new alert applies to the agent you addressed. Name other agents in `agentIds`, or pass `allAgents: true` for the whole workspace. The success summary states the scope it landed on, so read it back.
Create client POST
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.