Ask Benny Partner API

Base URL: https://api.askbennypartners.com/v1

Programmatic access to your partner workspace: manage clients, start their platform access, and keep your systems in sync.

How it fits together

Partner API architecture: your systems authenticate with an API key, walk the /v1 request pipeline, and reach the endpoints; endpoints call the shared domain cores, which read the workspace data store and coordinate payments, calling and email — the same cores behind the partner dashboard and the client application

Quickstart

  1. Create an API key from Dashboard -> Business -> API Keys (an active platform subscription is required). The full key is shown once - store it in your secret manager.
  2. Send it on every request:
curl https://api.askbennypartners.com/v1/account \
  -H "Authorization: Bearer <your api key>"
  1. List your clients:
curl "https://api.askbennypartners.com/v1/clients?limit=25" \
  -H "Authorization: Bearer <your api key>"

Authentication

Every request carries Authorization: Bearer <api key>. Keys are scoped - a request needs the scope listed on its operation (a missing scope returns 403 MISSING_SCOPE with the required scope in details). Revoking a key from the dashboard takes effect immediately. Keys only authenticate while your account is active.

Use a dedicated low-scope key when experimenting here: requests from this page run against live data.

Errors

Every error uses one envelope:

{ "error": "Client not found", "code": "NOT_FOUND", "statusCode": 404, "traceId": "..." }

code is stable and machine-readable: VALIDATION_ERROR (400 - every issue listed in details.issues), UNAUTHORIZED (401), FORBIDDEN / MISSING_SCOPE / SETUP_INCOMPLETE (403), NOT_FOUND (404), CONFLICT / IDEMPOTENCY_CONFLICT (409), CARD_ON_FILE_REQUIRED / PAYMENT_FAILED (402), TOO_MANY_REQUESTS (429), INTERNAL_ERROR (500). Include traceId when contacting support.

Pagination

List endpoints return { "data": [...], "nextCursor": "..." | null }. Pass limit (bounded per endpoint) and follow nextCursor - an opaque token with no format guarantee - until it is null. Filtered pages can hold fewer than limit items while more pages remain.

Partial updates

PATCH merges. Send only the fields you are changing, and everything you omit keeps its current value - a client settings save can be as small as {"agent": {"selectedVoiceKey": "ava"}}. Sections and fields you leave out are never read, so there is no need to fetch the object first and echo it back. Each write operation on this page shows a minimal request example; copy that shape rather than a full object read from a GET, or you will write placeholder values over settings that are already correct.

PUT replaces. The only one is PUT /clients/{clientId}/call-plan: the plan you send becomes the whole plan, and any node or edge you leave out is removed.

Lists are the exception to merging. An array you send replaces the stored list wholesale, so business.coreServices, agent.supportedLanguages, dataCollection.fields, and hours.weeklyHours must each carry the complete list you want to end up with - send every entry, not just the new ones, or omit the array to leave the stored list alone. Two of them also have required parts: dataCollection.fields is required whenever you send the dataCollection section, and every hours.weeklyHours row needs all four of day, open, close, and isOpen.

Idempotency

Operations with billing or calling side effects require an Idempotency-Key header (any unique string, up to 255 chars). Retrying with the same key and identical request replays the original response (marked Idempotency-Replayed: true); the same key with a different request returns 409 IDEMPOTENCY_CONFLICT; keys are remembered for 24 hours. If a request fails, retry with the same key - failed attempts are released so the retry executes. The exception is campaign create/retry: once dispatch to the calling network may have started, a failed attempt consumes the key (the same key replays the stored error) - check the campaign list, then use a fresh key, so a retry can never dial your recipients twice.

Rate limits

120 requests/minute per key across the API; sensitive operations (like client creation) allow 10/minute. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset; a 429 includes Retry-After in seconds.

Getting a client ready

One call does most of it. POST /clients creates the client, starts its platform access on your card on file with a 7-day free trial (your card is first charged when the trial ends), and - when you include the onboarding block - builds their voice agent from the business profile you supply.

curl -X POST https://api.askbennypartners.com/v1/clients \
  -H "Authorization: Bearer <your api key>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
        "name": "Acme Plumbing",
        "contactEmail": "owner@acmeplumbing.com",
        "onboarding": {
          "businessName": "Acme Plumbing",
          "businessPhone": "+14035550142",
          "websiteUrl": "https://acmeplumbing.com"
        }
      }'

What happens, in order:

  1. The client is created as a draft and your seat subscription starts its trial.
  2. Their voice agent is built from the onboarding profile - businessName and businessPhone are required, plus either websiteUrl or businessAddress. The website also seeds what the assistant knows about the business.
  3. Once the seat is confirmed, the client moves to invited and the owner is emailed. With an onboarding block that email is a branded "your account is ready" sign-in link rather than a setup invite - there are no onboarding steps left for them to complete.
  4. The owner gets portal access. Either they sign in from that email, or you skip the wait with POST /clients/{clientId}/activate - see below.

Omit onboarding and the client instead receives a setup invite and completes the profile themselves; their agent is built at the end of that.

Correcting the business website

The create payload remains onboarding.websiteUrl. It seeds the internal training website and is returned as business.websiteUrl by GET /clients/{clientId}/settings. Updating another settings section preserves this source.

After provisioning, use a key with client_settings:write and send only the website correction:

PATCH /v1/clients/{clientId}/settings
Content-Type: application/json
Authorization: Bearer <your api key>

{ "training": { "websiteUrl": "https://acmeplumbing.com" } }

The URL must be a non-empty HTTP or HTTPS URL, at most 2,000 characters. Omit it to leave the source unchanged; null and empty strings are rejected. The client's platform billing must be active or trialing. The update saves the source and queues a knowledge refresh; inspect agent.knowledgeRefresh for progress. A failed refresh keeps the saved source and reports its status. business.websiteUrl remains a read-only response field, so do not echo it into the business patch. Creating the client again is not an update mechanism.

Activating a client yourself

Until someone signs in, a client has no portal login - so the client is not active, and you cannot open a support session for them. If you are onboarding the client yourself and want their workspace usable straight away, activate it:

curl -X POST https://api.askbennypartners.com/v1/clients/<clientId>/activate \
  -H "Authorization: Bearer <your api key>"

That creates the owner's login from the contactEmail on the client, moves the client to active, and makes support impersonation possible. The owner can still sign in with their email whenever they like - nothing about their normal access changes.

Safe to repeat: a client whose owner already has access returns alreadyActive: true and nothing changes. Two things to know:

Because this grants access without the owner confirming their email, it is recorded in your workspace audit trail against the API key that made the call.

Settings, hours and services can be changed any time afterwards with PATCH /clients/{clientId}/settings.

Call recordings and active-client access

Calls (including recordings), contacts, and outbound operations require the client to be active and its platform billing to be active or trialing. Otherwise the API returns 403 CLIENT_ACCESS_INACTIVE. Client creation, client/billing reads, onboarding settings, knowledge-base setup, invitations and activation remain available before activation under their existing billing and scope rules.

When a call has audioAvailable: true, request GET /clients/{clientId}/calls/{callId}/audio with a key that has calls:read. The response contains audioUrl and expiresInSeconds: 300. Use the URL as an audio player's source or fetch it to download the MP3; do not send your API key to that URL. Request a fresh URL after five minutes. The response must not be cached, and obtaining a URL does not mark the call viewed.

Anyone holding the recording URL can access it until it expires, including if the client is paused or the API key is revoked after issuance. Keep it private. A missing call or recording returns 404.

Steering the assistant: the business prompt

business.businessInstructions is free-text guidance the assistant follows on every call, on top of what it learned from the website or address. Use it for the things a new receptionist would need to be told and could not infer:

curl -X PATCH https://api.askbennypartners.com/v1/clients/<clientId>/settings \
  -H "Authorization: Bearer <your api key>" \
  -H "Content-Type: application/json" \
  -d '{
        "business": {
          "businessInstructions": "Always confirm the service address before booking. Never quote prices - offer a callback from the owner instead."
        }
      }'

It is the same field the client edits as their business prompt in their own dashboard, so the two of you are writing to one place - a later edit from either side replaces it rather than merging. Read the current value from GET /clients/{clientId}/settings first if you are appending to it rather than replacing it.

At most 800 words and 16,000 characters. Send an empty string to clear it. Prefer plain, specific instructions over long prose - it is read on every call.

Retail plans and planId

A plan is a tier you sell to your own clients - name, price, trial length. Create and price them in Dashboard -> Business -> Plans; read them with GET /plans (scope clients:read) to discover the planId values this endpoint accepts. Only active plans can be attached.

planId is optional, and the choice decides who pays for the client:

planIdWho paysThe client's first sign-in
omittedYou - your seat covers their accessStraight to their dashboard
an ordinary planThe client, through the platformLands on checkout for that plan
a plan marked billed externallyYou invoice them yourself, off-platformStraight to their dashboard

Attaching an ordinary plan means the client is asked to pay before they can use anything. That is the right choice when you want the platform to collect for you and route the money to your connected account.

Plans you bill yourself

If you already invoice a client - an existing contract, a bundle, a retainer - you still want the record of which tier they are on, but you do not want the platform asking them for money. Tick "I bill clients for this plan myself" on the plan and it is returned by GET /plans as billedExternally: true.

Clients attached to such a plan skip checkout entirely and sign straight in to their dashboard, exactly as if no plan were attached - your seat still covers their access - while the plan records their tier. No subscription or invoice is ever created for them here, so they show as Billed externally in your dashboard rather than as a paying subscription.

Two things worth knowing:

If billing cannot start

You get 402 with details.clientId. The client exists; only the billing step failed. Fix the payment method in the dashboard, then repeat the call with the same contactEmail and a new Idempotency-Key - the billing step resumes on that existing draft instead of failing as a duplicate.

Voices

GET /voices lists the full voice catalog - the same voices, in the same order, your clients see in their own application. Each entry carries a stable key, a display name, gender, the accent it speaks with (American, British, Indian, Australian, Nigerian and more), short tone descriptors, a one-line description, and a previewUrl.

Listen before you choose: GET /voices/{voiceKey}/preview returns a short MP3 of that voice speaking the assistant's standard greeting. Samples are deterministic, so cache them freely.

A voice's languages (and primaryLanguage) are the languages it sounds native in, using the same codes as agent.supportedLanguages - regional variants collapse to their base code, so a British voice reports en and carries "British" in accent. They are catalog facts, not a limit: what the assistant actually speaks is set by agent.supportedLanguages.

Apply a voice with PATCH /clients/{clientId}/settings and {"agent": {"selectedVoiceKey": "<key>"}} - any key from GET /voices. The client's assistant must already be set up. GET /clients/{clientId}/settings reports the current voice back as agent.selectedVoiceKey.

Two older keys, ava and miles, are still accepted; they are aliases of the ava and jason voices.

Bring your own API

Connect a customer's existing system to their voice assistant with /clients/{clientId}/api-endpoints. This is the same configuration available in Settings → API Endpoints. Add a public HTTPS endpoint, HTTP method, when-to-use description, request fields, and a bearer token or API-key header. Credentials are encrypted and write-only; the assistant calls through an authenticated proxy.

The sequence is create → verify → enable. POST /clients/{clientId}/api-endpoints saves a disabled endpoint. POST /clients/{clientId}/api-endpoints/{endpointId}/verify sends one real request using sampleValues; use a customer sandbox or their supported no-write test mode, because verification can change records. No universal verification flag is added. Then PATCH /clients/{clientId}/api-endpoints/{endpointId} with {"enabled":true} attaches the tool to the voice assistant. Configuration edits require verification again. Disabling revokes access before detaching the tool.

Verification returns ok, the redacted endpoint, a safe diagnostic message, and the customer HTTP status (null if no response arrived). HTTP 401/403 points to credentials or permissions; 404 to the path/method; 429 to rate limiting. A 2xx response can still fail the configured response schema. No customer response body is exposed by verification. Reads use client_settings:read; writes use client_settings:write. POST creation and verification require Idempotency-Key. There are at most ten endpoints per client. GET request fields become query parameters; other methods send JSON. requestTemplate can map fields using {{field_name}} placeholders; leave it as {} to send the fields directly. Optional responseSchema supports structural type/properties/required/items validation. Requests have a 1–8 second timeout, a 1 MB response cap and a shared 30 requests/minute endpoint limit. Customer requests are never automatically retried.

Request template walkthrough

requestTemplate and responseSchema are JSON-encoded strings, not JSON objects in the create/update request. The reference displays them as string fields, so there are no nested properties to expand. The examples below show the decoded JSON and the complete payload to send. In JavaScript, use JSON.stringify(object) for each field; in raw JSON, escape the inner quotes as shown in the complete creation example.

Start simple: omit requestTemplate or send the string "{}" to forward the declared, collected fields directly. For example, sampleValues: {"caller_name":"Alex"} produces {"caller_name":"Alex"}. The template is not a list of fields for the agent to collect: declare those separately in parameters.

To match a customer API's nested payload, use this decoded template:

{
  "customer": {
    "name": "{{caller_name}}"
  },
  "request": {
    "units": "{{units}}",
    "urgent": "{{urgent}}",
    "notes": "{{notes}}"
  },
  "source": "voice_assistant"
}

Every placeholder must name a declared parameter. A whole-value placeholder such as "{{units}}" preserves the supplied number or boolean; embedding it in text such as "Units: {{units}}" produces a string. Fixed values such as source are sent unchanged. If an optional value is missing, a whole-value placeholder removes that property (or array item); an embedded placeholder becomes empty text. Missing required values fail before a customer request is sent. Keep credentials in auth, never in templates.

With sampleValues below (notice that numbers and booleans are not quoted):

{
  "caller_name": "Alex",
  "units": 2,
  "urgent": false
}

The customer's POST endpoint receives:

{
  "customer": {
    "name": "Alex"
  },
  "request": {
    "units": 2,
    "urgent": false
  },
  "source": "voice_assistant"
}

GET endpoints send the rendered fields as query parameters; use flat scalar fields for predictable query encoding. POST, PUT, PATCH and DELETE send a JSON body. Templates must decode to a JSON object and fit within 20 KB.

Response schema walkthrough

responseSchema checks the customer API's JSON response during verification and live tool calls. It does not transform the response, configure request fields, or tell the assistant when to call the tool. Put tool-use instructions in description. Omit this field or send "" to disable response-shape validation. Even without a schema, the customer must return a successful HTTP status for verification to pass.

This decoded schema requires two string properties:

{
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  },
  "required": [
    "request_id",
    "status"
  ]
}

Matching customer response:

{
  "request_id": "REQ-123",
  "status": "received"
}

A missing request_id or a numeric request_id fails validation, even with HTTP 200. Extra properties are allowed. The word received is illustrative: this schema checks that status is a string, not a particular business outcome.

Supported validation keywords: type, properties, required, and items. Supported types: object, array, string, number, integer, boolean, and null. Use items to validate array elements. title and description are accepted annotations. This is a structural subset, not full JSON Schema: constraints such as enum, format, additionalProperties, $ref, oneOf, and numeric bounds are rejected. Schemas are limited to 20 KB and eight nested levels below the root. Verification reports success/failure and safe diagnostics, not the customer response body.

Complete creation example

Send this body to POST /clients/{clientId}/api-endpoints with your Partner bearer token, Content-Type: application/json, and a new Idempotency-Key. Replace the example URL and customer token with your sandbox details. The Partner bearer token authenticates to our API; auth.secret authenticates to the customer's API. In the create operation's example selector, choose Send fields directly (simplest) or Map a nested request and validate its response to load a complete body.

{
  "name": "create_service_request",
  "description": "Create a service request after confirming the caller's name, number of units, and urgency. Collect notes if offered. Only confirm receipt when the API returns a request_id; do not promise a booking.",
  "method": "POST",
  "url": "https://api.example.com/service-requests",
  "auth": {
    "type": "bearer",
    "secret": "YOUR_CUSTOMER_API_TOKEN"
  },
  "parameters": [
    {
      "name": "caller_name",
      "type": "string",
      "description": "The caller's name",
      "required": true
    },
    {
      "name": "units",
      "type": "number",
      "description": "Number of units requiring service",
      "required": true
    },
    {
      "name": "urgent",
      "type": "boolean",
      "description": "Whether the caller says the request is urgent",
      "required": true
    },
    {
      "name": "notes",
      "type": "string",
      "description": "Optional additional details from the caller",
      "required": false
    }
  ],
  "requestTemplate": "{\"customer\":{\"name\":\"{{caller_name}}\"},\"request\":{\"units\":\"{{units}}\",\"urgent\":\"{{urgent}}\",\"notes\":\"{{notes}}\"},\"source\":\"voice_assistant\"}",
  "responseSchema": "{\"type\":\"object\",\"properties\":{\"request_id\":{\"type\":\"string\"},\"status\":{\"type\":\"string\"}},\"required\":[\"request_id\",\"status\"]}"
}

The response contains the new endpoint id, with enabled:false. Next, send the following body to POST /clients/{clientId}/api-endpoints/{endpointId}/verify with a different Idempotency-Key. Verification sends one real request and can create a record; use a sandbox or a request the customer explicitly supports for safe testing.

{
  "sampleValues": {
    "caller_name": "Alex",
    "units": 2,
    "urgent": false
  }
}

Only after verification returns ok:true, enable it using PATCH /clients/{clientId}/api-endpoints/{endpointId} with {"enabled":true}. To edit later, send only changed fields. requestTemplate: "{}" restores direct field forwarding; responseSchema: "" removes validation. An omitted PATCH field stays unchanged. Configuration edits disable the endpoint and require verification again before enabling.

Knowledge-base documents

Use client_settings:read for document reads and client_settings:write for uploads, usage changes, replacement and deletion. The client must have active platform access and a ready assistant before uploading. Supported files: PDF, TXT, DOCX, HTML and EPUB, up to 20 MiB.

  1. POST /clients/{clientId}/knowledge-base/uploads with fileName and the exact fileSizeBytes. Send a unique Idempotency-Key.
  2. POST multipart form data to the returned url, copying every entry in fields unchanged and adding the file last. Do not send your API bearer token to this temporary URL.
  3. Within five minutes, POST /clients/{clientId}/knowledge-base/documents with uploadId and optional usageMode (auto by default), using a new Idempotency-Key. The returned document is attached to the assistant.

GET /clients/{clientId}/knowledge-base/documents lists documents (25 per page by default; follow nextCursor). Append /{documentId} to read a document, or /{documentId}/download for a temporary original-file download URL. Generated or older documents may not have an original file available.

PATCH /clients/{clientId}/knowledge-base/documents/{documentId} with {"usageMode":"prompt"} includes the document in the assistant prompt; auto lets the assistant retrieve relevant passages when needed.

To replace file contents, prepare and upload a new file, then POST /clients/{clientId}/knowledge-base/documents/{documentId}/replace with its uploadId. Usage settings are inherited unless supplied. Replacement attaches the new document before removing the previous one and returns a new document ID. If removing the previous document fails, the 409 response provides both IDs for reconciliation. Generated website knowledge is read-only through this API.

DELETE /clients/{clientId}/knowledge-base/documents/{documentId} removes the document from the agent and deletes its stored original. Send an Idempotency-Key for replayable deletion.

Retry an uncertain upload or replacement with the same request and original Idempotency-Key. A submitted upload cannot be reused with a different key; list documents before starting another upload after an ambiguous failure. Keep temporary upload fields and download URLs private.

Account

The partner account your API key belongs to.

GET /account Get the authenticated account

Returns the partner account this API key belongs to.

Responses:

Plans

Your retail plans: the subscription tiers you sell to clients. List them to discover the planId values accepted by client creation.

GET /plans List retail plans

Your retail plans, oldest first (creation order, matching the dashboard). Returns every plan — at most three can be active at once, so the list is small and not paginated. Only plans with status active can be passed as planId when creating a client; archived plans stay listed so historical plan ids remain resolvable.

Responses:

Clients

The businesses in your workspace: create them, manage their lifecycle and contact details, and read their platform access billing state.

GET /clients List clients

Clients in your workspace, newest first. Page with limit and the opaque nextCursor.

Parameters:

Responses:

POST /clients Create a client

Creates a client and starts its platform access subscription on your card on file with a 7-day free trial (your card is first charged when the trial ends). Requires an Idempotency-Key header. If a previous attempt created the client but billing did not start, repeating the call with the same contactEmail resumes the billing step. By default no retail plan is attached: your seat subscription covers the client's platform access, and providing the optional onboarding block lets the client sign straight in to their dashboard with zero onboarding steps (they receive a branded account-ready email instead of a setup invite). Pass planId to attach one of your active retail plans instead (discover plan ids via GET /plans) — that client's first sign-in then lands on checkout for the plan, paid by the client.

Request body (application/json): ClientCreate

Responses:

GET /clients/{clientId} Get one client

A single client with its platform access billing summary.

Parameters:

Responses:

PATCH /clients/{clientId} Update a client

Partial update — send only the fields you want to change. Anything you omit keeps its current value. Supported fields: name, status, contactEmail, slug. Status can only be toggled between active and paused — other lifecycle states are managed by the platform's billing and onboarding flows.

Parameters:

Request body (application/json): ClientUpdate

Responses:

POST /clients/{clientId}/activate Activate a client

Gives the client's owner portal access without waiting for them to sign in: their login is created from the contact email on the client, and the client moves to active. Use it when you are onboarding a client yourself and want their workspace usable — and support-impersonable — immediately. Safe to repeat: a client whose owner already has access returns alreadyActive: true and nothing changes. Only clients created through this API can be activated, and the client needs a pending owner invite (send one with POST /clients/{clientId}/invites/resend if it has already been accepted or has expired).

Parameters:

Responses:

POST /clients/{clientId}/invites/resend Resend the owner invite

Revokes any pending invite and emails a fresh owner invite. Requires the client's platform access to be active or trialing.

Parameters:

Responses:

Voices

GET /voices List assistant voices

Every voice the phone assistant can speak with, with context on how each sounds — the same catalog, in the same order, that your clients see in their own application. Use a voice's key as agent.selectedVoiceKey when updating a client's settings, and its previewUrl to hear a sample. A voice's languages are the languages it sounds native in; the languages the assistant actually speaks are set by agent.supportedLanguages.

Responses:

GET /voices/{voiceKey}/preview Hear a voice sample

A short MP3 of the voice speaking the assistant's standard greeting — the same line callers hear. The sample is deterministic, so cache it freely.

Parameters:

Responses:

Client Settings

GET /clients/{clientId}/settings Get client settings

Every portal Settings section except subscription billing: business profile, opening hours, notification preferences, assistant configuration (script, voice persona, voicemail), assigned assistant phone number, business website URL, provisioning and knowledge-refresh status, calendar booking policy, data collection fields, privacy, guardrails, and advanced tuning. Requires the client's platform access to be active or trialing.

Parameters:

Responses:

PATCH /clients/{clientId}/settings Update client settings

Partial update — send only the fields you want to change. Anything you omit keeps its current value. Send one section with one field in it if that is all you are changing; sections you leave out are never read. Two things inside the body are complete lists rather than merges: dataCollection.fields replaces the whole field list and is required whenever you send the dataCollection section, and every hours.weeklyHours row needs all four of day, open, close, and isOpen. privacy.applyToExistingConversations additionally applies the retention rules to existing conversations on that save only. agent.selectedVoiceKey switches the assistant's voice persona and requires the client's assistant to be fully set up; when it is sent alongside other changes, the voice change is applied first, and the two steps are sequential rather than one transaction — if the second step fails, the applied change is kept (and audited), and repeating the request with the same Idempotency-Key safely retries both steps. After assistant provisioning has started, training.websiteUrl replaces the website knowledge source and queues a refresh; read the saved URL from business.websiteUrl and progress from agent.knowledgeRefresh. An Idempotency-Key header is honored when provided.

Parameters:

Request body (application/json): ClientSettingsUpdate

Responses:

GET /clients/{clientId}/call-plan Get the call-handling plan

The client's call-handling plan: the greeting, routing cases, link/transfer actions, and end state.

Parameters:

Responses:

PUT /clients/{clientId}/call-plan Replace the call-handling plan

Full replacement — the plan you send becomes the whole plan. Any node or edge you leave out is removed, so unlike the settings PATCH there is no merge here: read the current plan first if you only mean to adjust part of it. Saved after deep validation (exactly one greeting start node with a first message, one terminal end node, valid edges, terminal transfers). An Idempotency-Key header is honored when provided.

Parameters:

Request body (application/json): CallPlanUpdate

Responses:

Calls

GET /clients/{clientId}/calls List calls

The client's calls, newest first. Page with limit and the opaque nextCursor; transcripts are returned only by the single-call read.

Parameters:

Responses:

GET /clients/{clientId}/calls/{callId}/audio Get a call recording URL

Returns a signed MP3 URL valid for five minutes for playback or download. Requires calls:read, an active Client and active or trialing platform billing. Request this endpoint again when the URL expires. The URL grants access to anyone holding it until expiry, even if the Client is paused or the API key is revoked afterward. Do not forward your API key when using the URL. Returns 404 when the call or its recording is unavailable. This read does not mark the call viewed.

Parameters:

Responses:

GET /clients/{clientId}/calls/{callId} Get one call

A single call including its structured transcript turns, when available.

Parameters:

Responses:

Contacts

GET /clients/{clientId}/contacts List contacts

The client's caller contacts, most recently active first. Page with limit and the opaque nextCursor.

Parameters:

Responses:

PATCH /clients/{clientId}/contacts/{contactId} Update a contact

Partial update — send only the fields you want to change. Anything you omit keeps its current value. Supported fields: name, email, company, notes. An Idempotency-Key header is honored when provided.

Parameters:

Request body (application/json): ContactUpdate

Responses:

Outbound Calls

GET /clients/{clientId}/outbound-calls List outbound campaigns

The client's outbound call campaigns. Page with limit and the opaque nextCursor.

Parameters:

Responses:

POST /clients/{clientId}/outbound-calls Create an outbound campaign

Creates (and optionally schedules) an outbound call campaign for up to 1,000 unique recipients. Requires an Idempotency-Key header and the literal consentConfirmed: true acknowledging recipient consent. Add callingRules to call people who do not answer again and to keep calls to set days and hours; without it each recipient is called once, at any time.

Parameters:

Request body (application/json): CampaignCreate

Responses:

GET /clients/{clientId}/outbound-calls/{campaignId} Get one campaign

Campaign details including per-recipient statuses and resulting call ids.

Parameters:

Responses:

POST /clients/{clientId}/outbound-calls/{campaignId}/cancel Cancel a campaign

Cancels remaining calls in a campaign. Naturally idempotent; an Idempotency-Key header is honored when provided.

Parameters:

Responses:

POST /clients/{clientId}/outbound-calls/{campaignId}/retry Retry failed recipients

Gets a stalled campaign calling again. When needsAttention is true it places the calls the campaign's retryable problems are holding back; when the campaign is paused it resumes it. A running campaign with callingRules already retries unanswered calls by itself, so this returns 409 when there is nothing to retry. Campaigns created before calling rules existed re-dispatch their failed recipients, as before. Requires an Idempotency-Key header.

Parameters:

Responses:

POST /clients/{clientId}/outbound-calls/{campaignId}/pause Pause a campaign

Stops new calls from going out until the campaign is resumed; calls already in progress finish. Naturally idempotent (pausing a paused campaign succeeds); an Idempotency-Key header is honored when provided. Returns 409 for a finished campaign and for campaigns created before pausing was available.

Parameters:

Responses:

POST /clients/{clientId}/outbound-calls/{campaignId}/resume Resume a paused campaign

Lets a paused campaign place calls again, within its calling hours. Naturally idempotent (resuming a running campaign succeeds); an Idempotency-Key header is honored when provided. Returns 409 for a finished campaign.

Parameters:

Responses:

Bring Your Own API

GET /clients/{clientId}/api-endpoints List custom API endpoints

Requires client_settings:read and active client access. Returns the complete bounded collection (maximum 10 endpoints); nextCursor is always null. Credentials and internal tool IDs are never returned.

Parameters:

Responses:

POST /clients/{clientId}/api-endpoints Create a custom API endpoint

Requires client_settings:write and Idempotency-Key. Created disabled and unverified. Use a public HTTPS URL without query strings, fragments, or embedded credentials. GET request fields become query parameters; other methods send JSON. An empty requestTemplate sends the declared fields directly; templates use {{field_name}} placeholders. Auth supports none, bearer, or api_key with headerName. Secrets are write-only and encrypted. Up to 10 endpoints per client. No automatic retries of customer requests.

Parameters:

Request body, required (application/json): object

Responses:

PATCH /clients/{clientId}/api-endpoints/{endpointId} Update or enable a custom API endpoint

Partial update — send only the fields you want to change. Anything you omit keeps its current value. Configuration changes disable the endpoint and invalidate verification. Omit auth.secret to keep the existing credential when auth type/header are unchanged. Save changes, verify, then send enabled:true separately. enabled:false immediately revokes proxy access and detaches the voice tool. Requires client_settings:write.

Parameters:

Request body, required (application/json): object

Responses:

DELETE /clients/{clientId}/api-endpoints/{endpointId} Delete a custom API endpoint

Disables and detaches the voice tool, deletes it, then removes the saved configuration and encrypted credential. Requires client_settings:write.

Parameters:

Responses:

POST /clients/{clientId}/api-endpoints/{endpointId}/verify Verify a custom API endpoint

Makes ONE REAL HTTP request using sampleValues and the configured method/template. It can create or change records: use your customer's sandbox or a no-write request supported by that endpoint. No universal verification flag is injected. A 2xx response matching responseSchema verifies the saved config. Verification leaves the endpoint disabled; enable it separately. Requires client_settings:write and Idempotency-Key. Verification and live calls share a 30 requests/minute endpoint limit.

Parameters:

Request body, required (application/json): object

Responses:

Knowledge Base

GET /clients/{clientId}/knowledge-base/documents List knowledge documents

Lists agent documents with stable opaque IDs and cursor pagination. Requires client_settings:read and active client access. Generated website knowledge is listed as read-only. File uploads support PDF, TXT, DOCX, HTML and EPUB up to 20 MiB.

Parameters:

Responses:

POST /clients/{clientId}/knowledge-base/documents Attach an uploaded document

Completes a prepared upload and attaches it to the agent. usageMode defaults to auto. Each uploadId can be submitted once; retry the exact request with its original Idempotency-Key. After an ambiguous failure, list documents before issuing another upload. File bytes do not pass through this endpoint.

Parameters:

Request body, required (application/json): KnowledgeDocumentCreate

Responses:

GET /clients/{clientId}/knowledge-base/documents/{documentId} Get a knowledge document

Parameters:

Responses:

PATCH /clients/{clientId}/knowledge-base/documents/{documentId} Change document usage settings

Partial update — send only the fields you want to change. Anything you omit keeps its current value. Choose auto retrieval or inclusion in the assistant prompt. The change applies to the live agent. Other fields are read-only. Generated website knowledge cannot be modified. Requires client_settings:write.

Parameters:

Request body, required (application/json): KnowledgeDocumentUpdate

Responses:

DELETE /clients/{clientId}/knowledge-base/documents/{documentId} Delete a knowledge document

Detaches the document from the agent and removes its stored original. Generated website knowledge cannot be deleted. Send an Idempotency-Key to replay a successful deletion safely; otherwise a repeat returns 404. Requires client_settings:write.

Parameters:

Responses:

GET /clients/{clientId}/knowledge-base/documents/{documentId}/download Download a knowledge document

Returns a temporary URL for the stored original file. Treat the URL as a credential. Returns 404 when no original file is available (including generated knowledge).

Parameters:

Responses:

POST /clients/{clientId}/knowledge-base/uploads Prepare a document upload

Step 1: request a temporary upload form with the filename and exact byte size (maximum 20 MiB). Step 2: POST multipart/form-data to the returned url, copying every returned fields entry exactly and adding the file LAST. Send no API Authorization header to that URL. Step 3: POST the uploadId to /knowledge-base/documents within 5 minutes to attach it. The upload capability fields are opaque; do not modify or persist them. Requires client_settings:write and Idempotency-Key.

Parameters:

Request body, required (application/json): KnowledgeUploadCreate

Responses:

POST /clients/{clientId}/knowledge-base/documents/{documentId}/replace Replace a document file

Prepare and upload a new file first, then submit its uploadId here. The replacement inherits usageMode unless provided. The new document is attached before removing the previous one; it receives a NEW document ID, returned in the response. A failed new upload leaves the previous document attached. If removal fails, 409 includes replacementDocumentId and previousDocumentId: inspect the list and delete the previous document. Generated website knowledge cannot be replaced. Requires client_settings:write and Idempotency-Key.

Parameters:

Request body, required (application/json): KnowledgeDocumentReplace

Responses:

Schemas

Account

Error

PlanList

Plan

Voice

ClientList

Client

ClientDetail

ClientBilling

Platform access billing summary; null before billing is set up.

ClientCreate

ClientOnboarding

Business-profile details collected up front so the client can sign straight in to their dashboard with no onboarding steps. When omitted, the client completes onboarding themselves from the emailed invite. Services and opening hours can be set any time via PATCH /clients/{clientId}/settings.

ClientUpdate

ClientActivation

ClientInvite

ClientSettings

ClientSettingsUpdate

CallPlan

CallPlanNode

CallPlanEdge

CallPlanUpdate

Replaces the whole call plan. The structure is validated deeply on save (one greeting start node, one terminal end node, reachable edges, transfer/link requirements).

CallList

Call

CallAudio

CallDetail

CallTranscriptTurn

ContactList

Contact

ContactUpdate

CampaignList

Campaign

CampaignCallingRules

The retries and calling hours the campaign runs on; null for one call per recipient at any time.

CampaignCreate

CampaignCallingRulesInput

Retries and calling hours. Omit for one call per recipient at any time, exactly as before this field existed.

CampaignDetail

CampaignRecipient

CampaignProgress

Live recipient counts; null when they are not tracked for this campaign.

CampaignAttention

CampaignCancelled

CampaignRetried

CampaignPaused

CampaignResumed

KnowledgeDocument

KnowledgeUploadCreate

KnowledgeDocumentCreate

KnowledgeDocumentUpdate

KnowledgeDocumentReplace

The machine-readable OpenAPI description is at partner-api.v1.json.