AI Agents

GET/agent/voices

List the voices an agent can be configured to speak with. The catalog is platform-wide rather than per-account, so this endpoint takes no scope. Use a returned voiceId as the voiceId on a spoken channel's setting.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Example Response 200

Response
[
  {
    "voiceId": "Xb7hH8MSUJpSbSDYk0k2",
    "name": "Alice - Clear, Engaging Educator",
    "description": "Clear and engaging, friendly woman with a British accent suitable for e-learning.",
    "previewUrl": "https://storage.googleapis.com/…/d10f7534.mp3",
    "gender": "female",
    "accent": "british",
    "age": "middle_aged",
    "useCase": "informative_educational",
    "language": "en"
  }
]

SDK Example

GET/agent/profiles

List the AI agent profiles under a group. Results are scoped to groups the authenticated caller can access.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredGroup whose agent profiles to list.
subgroupIdQuery ParamOptionalNarrow to the agents this subgroup can use — its own, plus the group-level agents shared with every subgroup.
pageQuery ParamOptionalPage number for pagination.
limitQuery ParamOptionalResults per page (1–1000).

Example Response 200

Response
[
  {
    "_id": "60f7b2a1c9e77c001a2b3c9a",
    "groupId": "G1234567",
    "subgroupId": null,
    "agentProfileId": "AGP0000001",
    "name": "Support Bot",
    "status": "active",
    "systemPrompt": "You are a helpful support agent for Acme.",
    "greeting": "Hi! How can I help you today?",
    "guardrails": "",
    "sendAuthority": "review",
    "publishStatus": "draft",
    "publishedAt": null,
    "createdAt": "2024-01-15T12:00:00.000Z",
    "updatedAt": "2024-01-15T12:00:00.000Z"
  }
]

SDK Example

GET/agent/profiles/:id

Retrieve a single agent profile by ID.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredAgent profile ID.

Example Response 200

Response
[
  {
    "_id": "60f7b2a1c9e77c001a2b3c9a",
    "groupId": "G1234567",
    "subgroupId": null,
    "agentProfileId": "AGP0000001",
    "name": "Support Bot",
    "status": "active",
    "systemPrompt": "You are a helpful support agent for Acme.",
    "greeting": "Hi! How can I help you today?",
    "guardrails": "",
    "sendAuthority": "review",
    "publishStatus": "draft",
    "publishedAt": null,
    "createdAt": "2024-01-15T12:00:00.000Z",
    "updatedAt": "2024-01-15T12:00:00.000Z"
  }
]

SDK Example

POST/agent/profiles

Create a new AI agent profile.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
groupIdStringRequiredParent Group ID.
subgroupIdString|nullOptionalSubgroup to scope the agent to; omit or null for a group-level agent.
nameStringRequiredAgent name.
statusStringOptionalLifecycle status — "active" or "inactive" (defaults to "active").
systemPromptStringOptionalBase system prompt composed into every conversation.
greetingStringOptionalOpening line the agent leads with.
guardrailsStringOptionalFreeform guardrail instructions appended to the composed prompt.
sendAuthorityStringOptionalDefault send authority: "review" (each reply is held for a person to approve) or "autopilot" (replies are sent). Defaults to "review". A deployment can override it for one subgroup.

Read-only, set only by the publish and unpublish endpoints (a new profile starts as publishStatus "draft", publishedAt null): publishStatus, publishedAt

Example Request

Request
{
  "groupId": "G1234567",
  "name": "Support Bot",
  "systemPrompt": "You are a helpful support agent for Acme.",
  "greeting": "Hi! How can I help you today?"
}

Example Response 201

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c9a",
  "groupId": "G1234567",
  "subgroupId": null,
  "agentProfileId": "AGP0000001",
  "name": "Support Bot",
  "status": "active",
  "systemPrompt": "You are a helpful support agent for Acme.",
  "greeting": "Hi! How can I help you today?",
  "guardrails": "",
  "sendAuthority": "review",
  "publishStatus": "draft",
  "publishedAt": null,
  "createdAt": "2024-01-15T12:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z"
}

SDK Example

PUT/agent/profiles/:id

Update an existing agent profile. The agent's group/subgroup scope is immutable and cannot be changed.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredAgent profile ID to update.
nameStringOptionalAgent name.
statusStringOptionalLifecycle status — "active" or "inactive".
systemPromptStringOptionalBase system prompt composed into every conversation.
greetingStringOptionalOpening line the agent leads with.
guardrailsStringOptionalFreeform guardrail instructions appended to the composed prompt.
sendAuthorityStringOptionalDefault send authority: "review" or "autopilot". Deployments with a sendAuthorityOverride keep their override; deployments with a null override inherit this value.

Rejected with 400 if sent (read-only, set only by the publish and unpublish endpoints): publishStatus, publishedAt

Example Request

Request
{
  "name": "Support Bot (v2)",
  "greeting": "Thanks for reaching out — how can I help?"
}

Example Response 200

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c9a",
  "groupId": "G1234567",
  "subgroupId": null,
  "agentProfileId": "AGP0000001",
  "name": "Support Bot (v2)",
  "status": "active",
  "greeting": "Thanks for reaching out — how can I help?",
  "sendAuthority": "review",
  "publishStatus": "draft",
  "publishedAt": null,
  "updatedAt": "2024-01-16T14:00:00.000Z"
}

SDK Example

DELETE/agent/profiles/:id

Permanently delete an agent profile. Also removes its deployments, its number bindings, its channel settings, and any tools and knowledge scoped to that agent, along with their provider-side counterparts — tools and knowledge shared across the account are untouched. Conversation records are kept: a transcript outlives the agent that produced it. Fails without deleting anything if a provider-side record cannot be removed, so nothing is left stranded.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredAgent profile ID to delete.

Example Response 200

Response
{
  "message": "Agent profile AGP0000001 deleted successfully"
}

SDK Example

POST/agent/messages

Send a message to an agent and get its reply — the app-native conversation endpoint for webchat and SMS. Omit conversationId to start a new conversation, or pass one to continue an existing one. The agent's LLM tool loop runs server-side: the reply and any tools it invoked are returned, and the conversation turns are persisted. When the channel has knowledge_search enabled, the server searches the agent's knowledge with the message before the model runs, so toolInvocations starts with that knowledge_search entry even if the model made no tool call of its own. check_business_hours results carry hoursConfigured, plus isOpen, timezone and hours (the weekly schedule) when hours are set, or a note, the agent's knowledge about hours, and no isOpen when none are.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentProfileIdStringRequiredThe agent to talk to.
channelStringRequiredConversation channel — "webchat", "sms", or "voice".
messageStringRequiredThe user's message.
conversationIdStringOptionalContinue this conversation; omit to start a new one.
contactIdentifierStringOptionalThe far-end identifier (webchat visitor ID or sender number).

Example Request

Request
{
  "agentProfileId": "AGP0000001",
  "channel": "webchat",
  "message": "Are you open right now?"
}

Example Response 200

Response
{
  "conversationId": "CNV0000002",
  "conversationSessionId": "CVS0000004",
  "reply": "Yes, we're open right now! How can we help you today?",
  "toolInvocations": [
    {
      "name": "check_business_hours",
      "input": {},
      "result": {
        "ok": true,
        "hoursConfigured": true,
        "isOpen": true,
        "timezone": "America/New_York",
        "hours": [
          {
            "day": "monday",
            "closed": false,
            "open": "09:00",
            "close": "17:00"
          }
        ],
        "afterHoursMessage": null
      }
    }
  ],
  "ok": true
}

SDK Example

POST/agent/conversations

Start a conversation without sending a message. The counterpart to POST /agent/messages for callers that run the model themselves — a voice runtime, or your own LLM. Those record what was said; /agent/messages decides it. Both write the same conversation records, so a transcript reads identically either way.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentProfileIdStringRequiredThe agent this conversation belongs to.
channelStringRequiredConversation channel — "webchat", "sms", or "voice".
contactIdentifierStringOptionalThe far-end identifier (visitor ID or caller number).
callIdStringOptionalTelephony call ID, for the voice channel.
metadataObjectOptionalArbitrary metadata stored with the conversation.

Example Request

Request
{
  "agentProfileId": "AGP0000001",
  "channel": "voice",
  "contactIdentifier": "+15555550123",
  "callId": "CALL_12345"
}

Example Response 201

Response
{
  "conversationId": "CNV0000002",
  "conversationSessionId": "CVS0000004",
  "agentProfileId": "AGP0000001",
  "channel": "voice",
  "status": "active",
  "contactIdentifier": "+15555550123",
  "callId": "CALL_12345",
  "messageCount": 0
}

SDK Example

GET/agent/conversations/:conversationId

Read one conversation with a page of its messages, in sequence order. Paged rather than whole — a transcript has no natural ceiling, so omitting limit returns the first 100 messages, not all of them.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
conversationIdURL ParamRequiredThe conversation to read.
pageNumberOptionalPage number; defaults to 1.
limitNumberOptionalMessages per page; defaults to 100, capped at 500.

Example Response 200

Response
[
  {
    "conversationId": "CNV0000002",
    "agentProfileId": "AGP0000001",
    "channel": "voice",
    "status": "completed",
    "messageCount": 2,
    "messages": [
      {
        "conversationMessageId": "CVM0000001",
        "sequence": 0,
        "role": "assistant",
        "content": "Thanks for calling — how can I help?"
      },
      {
        "conversationMessageId": "CVM0000002",
        "sequence": 1,
        "role": "user",
        "content": "I'd like to check my order."
      }
    ]
  }
]

SDK Example

POST/agent/conversations/:conversationId/messages

Append one message to a conversation. Records a turn rather than generating one, so role is explicit — an assistant turn your own runtime produced is the normal case here. content is optional, so a tool-only turn needs no prose. Appending to a conversation that has already ended is rejected.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
conversationIdURL ParamRequiredThe conversation to append to.
roleStringRequired"user", "assistant", "system", or "tool".
contentStringOptionalWhat was said. Up to 32,000 characters.
toolCallsObject[]OptionalTools invoked on this turn (up to 50).
toolResultsObject[]OptionalTheir results (up to 50).
ttfbMsNumberOptionalTime to first byte/audio, in milliseconds.
latencyMsNumberOptionalTotal turn latency, in milliseconds.
bargeInOccurredBooleanOptionalWhether the far end talked over this turn.

Example Request

Request
{
  "role": "assistant",
  "content": "Thanks for calling — how can I help?",
  "ttfbMs": 420
}

Example Response 201

Response
{
  "conversationMessageId": "CVM0000001",
  "conversationId": "CNV0000002",
  "conversationSessionId": "CVS0000004",
  "sequence": 0,
  "role": "assistant",
  "content": "Thanks for calling — how can I help?",
  "ttfbMs": 420
}

SDK Example

PUT/agent/conversations/:conversationId

End a conversation, closing its open session. status records HOW it ended and cannot be recovered afterwards, so send the one that actually happened. The transition is conditional on the conversation still being active, so an already-ended conversation is returned unchanged and concurrent retries cannot overwrite the status that landed first. The call that ends it fires AI_AGENT_CONVERSATION_ENDED to every Global webhook subscribed to it, once; a retried end fires nothing. SMS conversations nobody has texted in for 24 hours are ended for you, with endReason idle_timeout. Voice conversations can't be ended here: the voice service ends each one when its call ends, and their length is what the call's AI Voice Agent charge is based on, so ending one returns 403.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
conversationIdURL ParamRequiredThe conversation to end. Not a voice conversation (403).
statusStringOptional"completed", "escalated", or "abandoned". Defaults to "completed"; "active" is rejected.
metadataObjectOptionalMetadata merged onto the conversation. endReason is passed on as the webhook's endReason. agentSeconds and durationSeconds are reserved for the voice service and are ignored if sent.

Example Request

Request
{
  "status": "escalated",
  "metadata": {
    "endReason": "handed_to_staff"
  }
}

Example Response 200

Response
{
  "conversationId": "CNV0000002",
  "agentProfileId": "AGP0000001",
  "channel": "webchat",
  "status": "escalated",
  "endedAt": "2026-09-17T18:42:11.000Z",
  "messageCount": 2
}

SDK Example

GET/agent/profiles/:agentProfileId/channels

List an agent's per-channel settings — the tools enabled on each channel, whether the channel is on, and any channel-specific prompt/greeting.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe agent whose channel settings to list.

Example Response 200

Response
[
  {
    "agentChannelSettingId": "ACS0000001",
    "agentProfileId": "AGP0000001",
    "channel": "webchat",
    "allowedTools": [
      "check_business_hours",
      "knowledge_search"
    ],
    "enabled": true,
    "channelPrompt": "",
    "greeting": null,
    "llmProvider": "bedrock",
    "llmModel": null,
    "temperature": 0.7,
    "voiceId": null,
    "speed": null,
    "stability": null,
    "similarityBoost": null,
    "speechModel": null,
    "turnEagerness": null,
    "turnTimeoutSeconds": null,
    "initialWaitSeconds": null,
    "silenceEndCallSeconds": null,
    "maxCallDurationSeconds": null,
    "allowGreetingInterruption": true,
    "keyterms": [],
    "allowedCommitments": [],
    "backgroundSound": null,
    "workflow": null
  }
]

SDK Example

GET/agent/profiles/:agentProfileId/channels/:channel

Get a single per-channel setting for an agent.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe agent the setting belongs to.
channelURL ParamRequiredChannel — "webchat", "sms", or "voice".

Example Response 200

Response
[
  {
    "agentChannelSettingId": "ACS0000001",
    "agentProfileId": "AGP0000001",
    "channel": "webchat",
    "allowedTools": [
      "check_business_hours"
    ],
    "enabled": true
  }
]

SDK Example

PUT/agent/profiles/:agentProfileId/channels/:channel

Create or update (upsert) an agent's per-channel setting. One row per (agent, channel) — the channel comes from the path, the fields from the body. All body fields are optional; an empty body creates a default-enabled channel with no tools.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe agent the setting belongs to.
channelURL ParamRequiredChannel — "webchat", "sms", or "voice".
allowedToolsString[]OptionalTools enabled on this channel — built-in keys or agentTool ids. Built-in keys: check_business_hours, knowledge_search, escalate_to_human (on a call, transfers the caller to a person), send_sms (texts the caller, voice only) and handoff_to_agent (passes the call to another agent, voice only). send_sms and handoff_to_agent on webchat or sms are a 400. escalate_to_human and handoff_to_agent do nothing on a call unless enabled through an agentTool that carries their config (see POST /agent/tools): enabled by key alone, a transfer tells the agent no one is available.
enabledBooleanOptionalWhether the agent answers on this channel.
channelPromptStringOptionalChannel-specific prompt text appended to the agent's system prompt.
greetingString|nullOptionalChannel-specific greeting override.
llmProviderStringOptionalLLM backend for this channel — "bedrock", "openai", "anthropic", or "groq" (defaults to "bedrock"). Supported values differ by channel.
llmModelString|nullOptionalConcrete model ID for the provider; null for the provider default.
temperatureNumberOptionalSampling temperature (0–2).
voiceIdString|nullOptionalVoice identifier for spoken channels; ignored off the voice channel.
speedNumber|nullOptionalSpoken channels: speaking rate multiplier (0.7–1.2).
stabilityNumber|nullOptionalSpoken channels: voice consistency (0–1). Lower is more expressive and more variable.
similarityBoostNumber|nullOptionalSpoken channels: how closely synthesis tracks the source voice (0–1).
speechModelString|nullOptionalSpoken channels: the speech synthesis model. Separate from llmModel — this decides how the agent is voiced, not what it says. One of eleven_v3_conversational (the default for a new channel), eleven_v4_turbo, eleven_v4, eleven_flash_v2, eleven_turbo_v2 or eleven_multilingual_v2; anything else is rejected. Null leaves the default in place.
turnEagernessString|nullOptionalSpoken channels: how readily the agent decides the caller has finished — "patient", "normal", or "eager".
turnTimeoutSecondsNumber|nullOptionalSpoken channels: silence before the agent takes its turn. 1–300, or -1 for no timeout; values between 0 and 1 are rejected.
initialWaitSecondsNumber|nullOptionalSpoken channels: silence before the agent speaks first. 1–300, or -1 for no timeout.
silenceEndCallSecondsNumber|nullOptionalSpoken channels: silence before the call is ended outright (10–7200).
maxCallDurationSecondsNumber|nullOptionalSpoken channels: hard ceiling on one conversation (60–7200).
allowGreetingInterruptionBooleanOptionalSpoken channels: whether a caller may talk over the greeting. Defaults to true.
keytermsString[]OptionalSpoken channels: words the transcriber is biased toward — names, jargon, unusual spellings. Up to 100.
backgroundSoundObject|nullOptionalSpoken channels: ambient audio bed as { preset, volume }, where volume is 0.01–1. Null means silence.
allowedCommitmentsObject[]OptionalSMS channel only — a non-empty list on webchat or voice is a 400. The "a person will..." promises the agent may send on autopilot, as { kind, detail }. kind is one of confirm_booking, call_back, text_back, follow_up, hold_slot or send_reminder, each at most once; detail (up to 200 characters, or null) is shown to staff. Any other promise in an autopilot reply is held for review. Defaults to [].
workflowObject|nullOptionalVoice channel only — sending one on webchat or sms is a 400. The conversation workflow graph: an object with "nodes" and "edges" keyed by id, plus optional "subgraphs" and "prevent_subagent_loops". Each node carries at least a "type" and a "position" ({ x, y }); each edge carries "source" and "target" node ids. Node bodies are defined by the voice runtime and are stored as sent, so a node type this documentation does not list is still accepted. Validated for an entry point under the node key "start_node" typed "start" (the runtime looks it up by that exact key, so a start node under any other key is rejected), no second "start" node, at most 200 nodes, and every edge endpoint naming a node that exists — a graph failing any of those is rejected rather than stored. Tools are named by our own refs: a node's "additional_tool_ids" and a "tool" node's "tools" ([{ tool_id }]) hold built-in keys or agentTool ids, which are stored as sent and swapped for the voice runtime's own tool ids when the workflow is pushed to it; a ref not in this channel's allowedTools is left out of the pushed graph. Paths out of a "tool" node take forward_condition { type: "result", successful: true|false } — Succeeded or Failed. Null clears a workflow the channel already has.

Example Request

Request
{
  "allowedTools": [
    "check_business_hours",
    "knowledge_search"
  ],
  "enabled": true,
  "llmProvider": "bedrock",
  "temperature": 0.7
}

Example Response 200

Response
{
  "agentChannelSettingId": "ACS0000001",
  "agentProfileId": "AGP0000001",
  "channel": "webchat",
  "allowedTools": [
    "check_business_hours",
    "knowledge_search"
  ],
  "enabled": true,
  "channelPrompt": "",
  "greeting": null,
  "llmProvider": "bedrock",
  "llmModel": null,
  "temperature": 0.7,
  "voiceId": null,
  "speed": null,
  "stability": null,
  "similarityBoost": null,
  "speechModel": null,
  "turnEagerness": null,
  "turnTimeoutSeconds": null,
  "initialWaitSeconds": null,
  "silenceEndCallSeconds": null,
  "maxCallDurationSeconds": null,
  "allowGreetingInterruption": true,
  "keyterms": [],
  "allowedCommitments": [],
  "backgroundSound": null,
  "workflow": null
}

SDK Example

DELETE/agent/profiles/:agentProfileId/channels/:channel

Delete an agent's per-channel setting.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe agent the setting belongs to.
channelURL ParamRequiredChannel — "webchat", "sms", or "voice".

Example Response 200

Response
{
  "message": "Channel setting webchat for agent AGP0000001 deleted successfully"
}

SDK Example

GET/agent/profiles/:agentProfileId/deployments

List the subgroups a group-level agent is deployed to, ordered by subgroupId. Each deployment can override the agent's default send authority for its subgroup; a null sendAuthorityOverride means the deployment inherits the profile's sendAuthority. Returns an empty array when the agent is not deployed anywhere.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe agent whose deployments to list.

Errors

StatusErrorWhen
404AgentProfileNotFoundErrorNo agent profile has this agentProfileId.
400ValidationErroragentProfileId is shorter than 8 characters.
403AuthorizationErrorThe caller's role is not permitted, or the agent belongs to a group the caller cannot access.

Example Response 200

Response
[
  {
    "_id": "66f7b2a1c9e77c001a2b3d10",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "agentDeploymentId": "ADP0000001",
    "agentProfileId": "AGP0000001",
    "sendAuthorityOverride": "autopilot",
    "sendAuthorityChangedBy": "507f1f77bcf86cd799439011",
    "sendAuthorityChangedAt": "2026-09-20T15:04:00.000Z",
    "enabled": true,
    "createdAt": "2026-09-18T12:00:00.000Z",
    "updatedAt": "2026-09-20T15:04:00.000Z"
  },
  {
    "_id": "66f7b2a1c9e77c001a2b3d11",
    "groupId": "G1234567",
    "subgroupId": "S7654321",
    "agentDeploymentId": "ADP0000002",
    "agentProfileId": "AGP0000001",
    "sendAuthorityOverride": null,
    "sendAuthorityChangedBy": null,
    "sendAuthorityChangedAt": null,
    "enabled": true,
    "createdAt": "2026-09-18T12:05:00.000Z",
    "updatedAt": "2026-09-18T12:05:00.000Z"
  }
]

SDK Example

PUT/agent/profiles/:agentProfileId/deployments/:subgroupId

Deploy an agent to a subgroup, or change that deployment (upsert keyed by the subgroup in the path). Only an active, group-level agent (subgroupId null) can be deployed, and the subgroup must belong to the agent's group. Both body fields are optional: an empty body on a new deployment creates an enabled deployment that inherits the agent's default send authority, and on an existing deployment leaves it unchanged. Changing sendAuthorityOverride records who changed it and when (sendAuthorityChangedBy, sendAuthorityChangedAt).

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe group-level agent to deploy.
subgroupIdURL ParamRequiredThe subgroup to deploy it to. Must start with "S" and be at least 8 characters.
sendAuthorityOverrideString|nullOptional"review" or "autopilot" to override the agent's default send authority for this subgroup; null clears the override so the deployment inherits the agent's sendAuthority. Defaults to null on a new deployment.
enabledBooleanOptionalWhether this deployment is live. Defaults to true on a new deployment. Publishing requires at least one enabled deployment.

Errors

StatusErrorWhen
404AgentProfileNotFoundErrorNo agent profile has this agentProfileId.
404SubgroupNotFoundErrorThe subgroup does not exist, or it is not under the agent's group.
400ValidationErrorThe agent is subgroup-level (only a group-level agent can be deployed), the agent is inactive, a path param is malformed, sendAuthorityOverride is not "review", "autopilot" or null, or the body carries an unknown field.
403AuthorizationErrorThe caller's role is not permitted, or the agent or subgroup belongs to a group the caller cannot access.

Example Request

Request
{
  "sendAuthorityOverride": "autopilot",
  "enabled": true
}

Example Response 200

Response
{
  "_id": "66f7b2a1c9e77c001a2b3d10",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentDeploymentId": "ADP0000001",
  "agentProfileId": "AGP0000001",
  "sendAuthorityOverride": "autopilot",
  "sendAuthorityChangedBy": "507f1f77bcf86cd799439011",
  "sendAuthorityChangedAt": "2026-09-20T15:04:00.000Z",
  "enabled": true,
  "createdAt": "2026-09-18T12:00:00.000Z",
  "updatedAt": "2026-09-20T15:04:00.000Z"
}

SDK Example

DELETE/agent/profiles/:agentProfileId/deployments/:subgroupId

Remove an agent's deployment from a subgroup. The removed deployment is returned. The agent's publishStatus is not changed.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe deployed agent.
subgroupIdURL ParamRequiredThe subgroup to remove it from.

Errors

StatusErrorWhen
404AgentProfileNotFoundErrorNo agent profile has this agentProfileId.
404AgentDeploymentNotFoundErrorThe agent is not deployed to this subgroup.
400ValidationErrorA path param is malformed.
403AuthorizationErrorThe caller's role is not permitted, or the agent belongs to a group the caller cannot access.

Example Response 200

Response
{
  "_id": "66f7b2a1c9e77c001a2b3d10",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentDeploymentId": "ADP0000001",
  "agentProfileId": "AGP0000001",
  "sendAuthorityOverride": "autopilot",
  "sendAuthorityChangedBy": "507f1f77bcf86cd799439011",
  "sendAuthorityChangedAt": "2026-09-20T15:04:00.000Z",
  "enabled": true,
  "createdAt": "2026-09-18T12:00:00.000Z",
  "updatedAt": "2026-09-20T15:04:00.000Z"
}

SDK Example

GET/agent/endpoints

List the endpoint bindings in a group: which agent answers which number. Each number has at most one agent per channel. Results are ordered by endpointValue, and an empty array is returned when nothing is bound.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredGroup whose bindings to list. Must start with "G" and be at least 8 characters.
subgroupIdQuery ParamOptionalNarrow to the bindings of numbers in this subgroup.
agentProfileIdQuery ParamOptionalNarrow to the numbers this agent answers.
channelQuery ParamOptionalNarrow to one channel — "sms", "webchat", or "voice". Only "sms" bindings can be created today.

Errors

StatusErrorWhen
400ValidationErrorgroupId is missing or malformed, subgroupId or agentProfileId is malformed, or channel is not "sms", "webchat" or "voice".
403AuthorizationErrorThe caller's role is not permitted, or the group is one the caller cannot access.

Example Response 200

Response
[
  {
    "_id": "66f7b2a1c9e77c001a2b3d20",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "agentEndpointId": "AEP0000001",
    "channel": "sms",
    "endpointType": "sms_number",
    "endpointValue": "15551234567",
    "agentProfileId": "AGP0000001",
    "answerMode": "all_inbound",
    "overrides": null,
    "enabled": true,
    "createdAt": "2026-10-06T14:00:00.000Z",
    "updatedAt": "2026-10-06T14:00:00.000Z"
  }
]

SDK Example

PUT/agent/endpoints/:channel/:endpointValue

Assign an agent to answer a number (upsert keyed by the channel and number in the path). Assigning again replaces the previous agent, so a number has one agent per channel. Only SMS numbers can be bound today. The number must be in the agent's group and belong to a subgroup, and the agent must be active and usable by that subgroup: either the subgroup's own agent, or a group-level agent with an enabled deployment to the subgroup. The binding is saved whatever the number's campaign state.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
channelURL ParamRequiredThe channel to bind. Must be "sms".
endpointValueURL ParamRequiredThe phone number: 10 to 15 digits, country code included, no "+" (e.g. 15551234567).
agentProfileIdStringRequiredThe agent that answers the number.
answerModeStringOptionalWhich inbound messages the agent answers. "all_inbound" is the only mode. Defaults to "all_inbound" on a new binding and keeps the stored value on an existing one.

Errors

StatusErrorWhen
404AgentProfileNotFoundErrorNo agent profile has this agentProfileId.
400NumberNotFoundErrorThe number does not exist, or it is not in the agent's group.
400ValidationErrorchannel is not "sms", endpointValue is not 10 to 15 digits, agentProfileId is missing, answerMode is not "all_inbound", the body carries an unknown field, the agent is inactive, the number has no subgroup, the agent belongs to a different subgroup than the number, or a group-level agent is not deployed to the number's subgroup.
403AuthorizationErrorThe caller's role is not permitted, or the agent or number belongs to a group the caller cannot access.

Example Request

Request
{
  "agentProfileId": "AGP0000001",
  "answerMode": "all_inbound"
}

Example Response 200

Response
{
  "_id": "66f7b2a1c9e77c001a2b3d20",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentEndpointId": "AEP0000001",
  "channel": "sms",
  "endpointType": "sms_number",
  "endpointValue": "15551234567",
  "agentProfileId": "AGP0000001",
  "answerMode": "all_inbound",
  "overrides": null,
  "enabled": true,
  "createdAt": "2026-10-06T14:00:00.000Z",
  "updatedAt": "2026-10-06T14:00:00.000Z"
}

SDK Example

DELETE/agent/endpoints/:channel/:endpointValue

Remove the agent assigned to a number. The removed binding is returned. The agent and its deployments are not changed.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
channelURL ParamRequiredThe bound channel. Must be "sms".
endpointValueURL ParamRequiredThe phone number: 10 to 15 digits, country code included, no "+".

Errors

StatusErrorWhen
404AgentEndpointNotFoundErrorNo agent is assigned to this number.
400ValidationErrorchannel is not "sms", or endpointValue is not 10 to 15 digits.
403AuthorizationErrorThe caller's role is not permitted, or the binding belongs to a group the caller cannot access.

Example Response 200

Response
{
  "_id": "66f7b2a1c9e77c001a2b3d20",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentEndpointId": "AEP0000001",
  "channel": "sms",
  "endpointType": "sms_number",
  "endpointValue": "15551234567",
  "agentProfileId": "AGP0000001",
  "answerMode": "all_inbound",
  "overrides": null,
  "enabled": true,
  "createdAt": "2026-10-06T14:00:00.000Z",
  "updatedAt": "2026-10-06T14:00:00.000Z"
}

SDK Example

GET/agent/pauses

List the paused agent conversations in a group, newest first. A conversation is paused when a person takes it over (reason human_reply or manual) or when the agent asks for a person (reason escalation): the agent does not answer that contact on that number until the conversation is resumed. An empty array is returned when nothing is paused.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredGroup whose paused conversations to list. Must start with "G" and be at least 8 characters.
subgroupIdQuery ParamOptionalNarrow to conversations on this subgroup's numbers.
channelQuery ParamOptionalNarrow to one channel. Must be "sms".
endpointValueQuery ParamOptionalNarrow to one agent number: 10 to 15 digits, country code included, no "+".
contactIdentifierQuery ParamOptionalNarrow to one contact number: 10 to 15 digits, country code included, no "+".

Errors

StatusErrorWhen
400ValidationErrorgroupId is missing or malformed, subgroupId is malformed, channel is not "sms", or endpointValue or contactIdentifier is not 10 to 15 digits.
403AuthorizationErrorThe caller's role is not permitted, or the group is one the caller cannot access.

Example Response 200

Response
[
  {
    "_id": "66f7b2a1c9e77c001a2b3d30",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "channel": "sms",
    "endpointValue": "15551234567",
    "contactIdentifier": "15557654321",
    "reason": "human_reply",
    "pausedBy": "507f1f77bcf86cd799439011",
    "createdAt": "2026-10-27T15:00:00.000Z",
    "updatedAt": "2026-10-27T15:00:00.000Z"
  }
]

SDK Example

PUT/agent/pauses/:channel/:endpointValue/:contactIdentifier

Pause the agent on one conversation: the number it answers and one contact. The agent stops answering that contact on that number until the conversation is resumed; there is no timer. Use it when a person replies to the contact by hand. The conversation's pending replies (see GET /agent/drafts) are rejected, so none is sent after the person's. Pausing a paused conversation keeps the original pause and returns it. An agent must be assigned to the number.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
channelURL ParamRequiredThe channel. Must be "sms".
endpointValueURL ParamRequiredThe agent's number: 10 to 15 digits, country code included, no "+".
contactIdentifierURL ParamRequiredThe contact's number: 10 to 15 digits, country code included, no "+".
reasonStringOptionalWhy the conversation is paused: "human_reply" (a person replied by hand) or "manual". Defaults to "manual".

Errors

StatusErrorWhen
404AgentEndpointNotFoundErrorNo agent is assigned to this number.
400ValidationErrorchannel is not "sms", endpointValue or contactIdentifier is not 10 to 15 digits, reason is not "human_reply" or "manual", or the body carries an unknown field.
403AuthorizationErrorThe caller's role is not permitted, or the number belongs to a group the caller cannot access.

Example Request

Request
{
  "reason": "human_reply"
}

Example Response 200

Response
{
  "_id": "66f7b2a1c9e77c001a2b3d30",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "channel": "sms",
  "endpointValue": "15551234567",
  "contactIdentifier": "15557654321",
  "reason": "human_reply",
  "pausedBy": "507f1f77bcf86cd799439011",
  "createdAt": "2026-10-27T15:00:00.000Z",
  "updatedAt": "2026-10-27T15:00:00.000Z"
}

SDK Example

DELETE/agent/pauses/:channel/:endpointValue/:contactIdentifier

Resume the agent on a paused conversation, so it answers the contact's next text again. This also ends the hold an escalation put on the conversation. Replies rejected by the pause stay rejected. The removed pause is returned.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
channelURL ParamRequiredThe channel. Must be "sms".
endpointValueURL ParamRequiredThe agent's number: 10 to 15 digits, country code included, no "+".
contactIdentifierURL ParamRequiredThe contact's number: 10 to 15 digits, country code included, no "+".

Errors

StatusErrorWhen
404AgentContactPauseNotFoundErrorThe agent is not paused on this conversation.
400ValidationErrorchannel is not "sms", or endpointValue or contactIdentifier is not 10 to 15 digits.
403AuthorizationErrorThe caller's role is not permitted, or the pause belongs to a group the caller cannot access.

Example Response 200

Response
{
  "_id": "66f7b2a1c9e77c001a2b3d30",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "channel": "sms",
  "endpointValue": "15551234567",
  "contactIdentifier": "15557654321",
  "reason": "human_reply",
  "pausedBy": "507f1f77bcf86cd799439011",
  "createdAt": "2026-10-27T15:00:00.000Z",
  "updatedAt": "2026-10-27T15:00:00.000Z"
}

SDK Example

GET/agent/drafts

List held agent replies (the Pending Replies queue) in a group, newest first. An SMS agent holds a reply instead of sending it when its send authority is "review", and also on auto-pilot when it is unsure (the turn fell back, it asked for a human, or a guardrail flagged the reply) or when it is quiet hours for the contact (reason "quiet_hours": 8:45 pm to 9 am in the contact's time zone, judged from the area code). Every reply an SMS agent writes to an inbound text is recorded here: a confident auto-pilot reply has reason "autopilot" and is meant to be delivered without waiting for a person, by claiming it and reporting the outcome. An empty array is returned when nothing matches.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredGroup whose drafts to list. Must start with "G" and be at least 8 characters.
subgroupIdQuery ParamOptionalNarrow to the drafts of numbers in this subgroup.
agentProfileIdQuery ParamOptionalNarrow to the drafts this agent wrote.
statusQuery ParamOptionalNarrow to one status: "pending", "sending", "sent", "rejected" or "failed".
pageQuery ParamOptionalPage number for pagination (default: 1).
limitQuery ParamOptionalResults per page (default: 25, max 500).

Errors

StatusErrorWhen
400ValidationErrorgroupId is missing or malformed, subgroupId or agentProfileId is malformed, status is not one of the listed values, or page or limit is not a positive integer within range.
403AuthorizationErrorThe caller's role is not permitted, or the group is one the caller cannot access.

Example Response 200

Response
[
  {
    "_id": "66f8c3b2d0e88d001b3c4e31",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "agentReplyDraftId": "ARD0000001",
    "agentProfileId": "AGP0000001",
    "conversationId": "CNV0000001",
    "channel": "sms",
    "endpointValue": "15551234567",
    "contactPhoneNumber": "15557654321",
    "inboundText": "Do you have any openings tomorrow?",
    "draftText": "We have openings at 10am and 2pm tomorrow. Want me to book one?",
    "sentText": null,
    "reason": "review_mode",
    "status": "pending",
    "decidedBy": null,
    "decidedAt": null,
    "sentMessageId": null,
    "deliveredBy": null,
    "failureReason": null,
    "createdAt": "2026-10-06T15:00:00.000Z",
    "updatedAt": "2026-10-06T15:00:00.000Z"
  }
]

SDK Example

POST/agent/drafts/:agentReplyDraftId/approve

Approve a held agent reply and send it from the agent's number to the contact, optionally with edited text. The reply goes through the normal SMS send path, so opt-out, moderation and billing apply. The draft comes back with status "sent" and sentMessageId set, or with status "failed" when the send path accepted nothing (for example, the contact opted out). sentText is the text actually sent. Only a pending draft can be approved. If the send path returns an error, that error is returned and the draft goes back to pending.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentReplyDraftIdURL ParamRequiredThe draft to approve ("ARD...").
textStringOptionalReplacement text when a person edited the reply: 1 to 10,000 characters after trimming. Omit it to send the reply as the agent wrote it. No other body fields are accepted.

Errors

StatusErrorWhen
404AgentReplyDraftNotFoundErrorNo draft has this agentReplyDraftId.
409ResourceConflictErrorThe draft is no longer pending: it was already approved, rejected, or is being sent by another request.
400ValidationErroragentReplyDraftId is malformed, text is empty or longer than 10,000 characters, or the body carries an unknown field.
403AuthorizationErrorThe caller's role is not permitted, or the draft belongs to a group the caller cannot access.

Example Request

Request
{
  "text": "We have openings at 10am and 2pm tomorrow. Reply 1 or 2 to book."
}

Example Response 200

Response
{
  "_id": "66f8c3b2d0e88d001b3c4e31",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentReplyDraftId": "ARD0000001",
  "agentProfileId": "AGP0000001",
  "conversationId": "CNV0000001",
  "channel": "sms",
  "endpointValue": "15551234567",
  "contactPhoneNumber": "15557654321",
  "inboundText": "Do you have any openings tomorrow?",
  "draftText": "We have openings at 10am and 2pm tomorrow. Want me to book one?",
  "sentText": "We have openings at 10am and 2pm tomorrow. Reply 1 or 2 to book.",
  "reason": "review_mode",
  "status": "sent",
  "decidedBy": "60f7b2a1c9e77c001a2b3c4d",
  "decidedAt": "2026-10-06T15:05:00.000Z",
  "sentMessageId": "66f8c4a0d0e88d001b3c4e40",
  "deliveredBy": "signalhouse",
  "claimId": "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f",
  "failureReason": null,
  "createdAt": "2026-10-06T15:00:00.000Z",
  "updatedAt": "2026-10-06T15:05:01.000Z"
}

SDK Example

POST/agent/drafts/:agentReplyDraftId/reject

Reject a held agent reply so it is never sent. The rejected draft is returned with status "rejected". Only a pending draft can be rejected. No request body.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentReplyDraftIdURL ParamRequiredThe draft to reject ("ARD...").

Errors

StatusErrorWhen
404AgentReplyDraftNotFoundErrorNo draft has this agentReplyDraftId.
409ResourceConflictErrorThe draft is no longer pending: it was already approved, rejected, or is being sent by another request.
400ValidationErroragentReplyDraftId is malformed.
403AuthorizationErrorThe caller's role is not permitted, or the draft belongs to a group the caller cannot access.

Example Response 200

Response
{
  "_id": "66f8c3b2d0e88d001b3c4e31",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentReplyDraftId": "ARD0000001",
  "agentProfileId": "AGP0000001",
  "conversationId": "CNV0000001",
  "channel": "sms",
  "endpointValue": "15551234567",
  "contactPhoneNumber": "15557654321",
  "inboundText": "Do you have any openings tomorrow?",
  "draftText": "We have openings at 10am and 2pm tomorrow. Want me to book one?",
  "sentText": null,
  "reason": "review_mode",
  "status": "rejected",
  "decidedBy": "60f7b2a1c9e77c001a2b3c4d",
  "decidedAt": "2026-10-06T15:05:00.000Z",
  "sentMessageId": null,
  "deliveredBy": null,
  "failureReason": null,
  "createdAt": "2026-10-06T15:00:00.000Z",
  "updatedAt": "2026-10-06T15:05:00.000Z"
}

SDK Example

POST/agent/drafts/:agentReplyDraftId/claim

Claim a held agent reply for delivery through your own channel instead of Signal House's send path. Nothing is sent. The draft becomes "sending" with deliveredBy "external", sentText set to the text you will deliver, and a new claimId, and you then report the outcome with /complete or /release, sending that claimId. The claim means two approvals can never both deliver. Only a pending draft can be claimed. If the agent's number has left the draft's subgroup, the draft is closed as "failed" and a 400 is returned. A claim left unfinished for 30 minutes is closed as "failed" with failureReason "delivery_unconfirmed", so it is never offered again.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentReplyDraftIdURL ParamRequiredThe draft to claim ("ARD...").
textStringOptionalReplacement text when a person edited the reply: 1 to 10,000 characters after trimming. Omit it to deliver the reply as the agent wrote it. No other body fields are accepted.

Errors

StatusErrorWhen
404AgentReplyDraftNotFoundErrorNo draft has this agentReplyDraftId.
409ResourceConflictErrorThe draft is no longer pending: it was already approved, rejected, claimed, or is being sent by another request. Also returned for an "autopilot" draft when a person has paused the conversation (the draft is rejected), or when it is quiet hours for the contact, 8:45 pm to 9 am in their time zone (the draft is relabeled "quiet_hours" and stays pending, so a person can still claim it).
400ValidationErroragentReplyDraftId is malformed, text is empty or longer than 10,000 characters, the body carries an unknown field, or the agent's number no longer belongs to the draft's subgroup (the draft is closed as failed).
403AuthorizationErrorThe caller's role is not permitted, or the draft belongs to a group the caller cannot access.

Example Request

Request
{
  "text": "We have openings at 10am and 2pm tomorrow. Reply 1 or 2 to book."
}

Example Response 200

Response
{
  "_id": "66f8c3b2d0e88d001b3c4e31",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentReplyDraftId": "ARD0000001",
  "agentProfileId": "AGP0000001",
  "conversationId": "CNV0000001",
  "channel": "sms",
  "endpointValue": "15551234567",
  "contactPhoneNumber": "15557654321",
  "inboundText": "Do you have any openings tomorrow?",
  "draftText": "We have openings at 10am and 2pm tomorrow. Want me to book one?",
  "sentText": "We have openings at 10am and 2pm tomorrow. Reply 1 or 2 to book.",
  "reason": "review_mode",
  "status": "sending",
  "decidedBy": "60f7b2a1c9e77c001a2b3c4d",
  "decidedAt": "2026-10-06T15:05:00.000Z",
  "sentMessageId": null,
  "deliveredBy": "external",
  "claimId": "7b6f1d2e-3c4a-4f5b-9e8d-1a2b3c4d5e6f",
  "failureReason": null,
  "createdAt": "2026-10-06T15:00:00.000Z",
  "updatedAt": "2026-10-06T15:05:01.000Z"
}

SDK Example

POST/agent/drafts/:agentReplyDraftId/complete

Mark a claimed agent reply as sent once your channel accepted it. The draft becomes "sent". Only the claim named by claimId can be completed, so a late call can never settle a newer claim. A completion is also accepted after an unfinished claim was closed as "failed" with failureReason "delivery_unconfirmed", and turns it into "sent".

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentReplyDraftIdURL ParamRequiredThe claimed draft ("ARD...").
claimIdStringRequiredThe claimId returned by /claim.
externalMessageIdStringOptionalYour channel's id for the sent message, 1 to 256 characters. Stored as sentMessageId. No other body fields are accepted.

Errors

StatusErrorWhen
404AgentReplyDraftNotFoundErrorNo draft has this agentReplyDraftId.
409ResourceConflictErrorThe draft is not under this external claim: claimId doesn't match the current claim, the draft is being sent by Signal House, or it was already completed or released.
400ValidationErroragentReplyDraftId is malformed, claimId is missing, or the body carries an invalid or unknown field.
403AuthorizationErrorThe caller's role is not permitted, or the draft belongs to a group the caller cannot access.

Example Request

Request
{
  "claimId": "7b6f1d2e-3c4a-4f5b-9e8d-1a2b3c4d5e6f",
  "externalMessageId": "ext-msg-12345"
}

Example Response 200

Response
{
  "_id": "66f8c3b2d0e88d001b3c4e31",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentReplyDraftId": "ARD0000001",
  "agentProfileId": "AGP0000001",
  "conversationId": "CNV0000001",
  "channel": "sms",
  "endpointValue": "15551234567",
  "contactPhoneNumber": "15557654321",
  "inboundText": "Do you have any openings tomorrow?",
  "draftText": "We have openings at 10am and 2pm tomorrow. Want me to book one?",
  "sentText": "We have openings at 10am and 2pm tomorrow. Reply 1 or 2 to book.",
  "reason": "review_mode",
  "status": "sent",
  "decidedBy": "60f7b2a1c9e77c001a2b3c4d",
  "decidedAt": "2026-10-06T15:05:00.000Z",
  "sentMessageId": "ext-msg-12345",
  "deliveredBy": "external",
  "claimId": "7b6f1d2e-3c4a-4f5b-9e8d-1a2b3c4d5e6f",
  "failureReason": null,
  "createdAt": "2026-10-06T15:00:00.000Z",
  "updatedAt": "2026-10-06T15:05:01.000Z"
}

SDK Example

POST/agent/drafts/:agentReplyDraftId/release

Give back a claim whose reply certainly did not go out. The draft returns to "pending" so it can be approved again, or with permanent set to true it is closed as "failed". If you cannot tell whether the reply went out, do not release it: an unfinished claim is closed after 30 minutes as "failed" with failureReason "delivery_unconfirmed", so it is never sent twice. Only the claim named by claimId can be released.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
agentReplyDraftIdURL ParamRequiredThe claimed draft ("ARD...").
claimIdStringRequiredThe claimId returned by /claim.
permanentBooleanOptionaltrue closes the draft as failed (the contact can never be sent this reply). Omit or false to return it to pending. No other body fields are accepted.

Errors

StatusErrorWhen
404AgentReplyDraftNotFoundErrorNo draft has this agentReplyDraftId.
409ResourceConflictErrorThe draft is not under this external claim: claimId doesn't match the current claim, the draft is being sent by Signal House, or it was already completed or released.
400ValidationErroragentReplyDraftId is malformed, claimId is missing, or the body carries an invalid or unknown field.
403AuthorizationErrorThe caller's role is not permitted, or the draft belongs to a group the caller cannot access.

Example Request

Request
{
  "claimId": "7b6f1d2e-3c4a-4f5b-9e8d-1a2b3c4d5e6f"
}

Example Response 200

Response
{
  "_id": "66f8c3b2d0e88d001b3c4e31",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "agentReplyDraftId": "ARD0000001",
  "agentProfileId": "AGP0000001",
  "conversationId": "CNV0000001",
  "channel": "sms",
  "endpointValue": "15551234567",
  "contactPhoneNumber": "15557654321",
  "inboundText": "Do you have any openings tomorrow?",
  "draftText": "We have openings at 10am and 2pm tomorrow. Want me to book one?",
  "sentText": null,
  "reason": "review_mode",
  "status": "pending",
  "decidedBy": null,
  "decidedAt": null,
  "sentMessageId": null,
  "deliveredBy": null,
  "failureReason": null,
  "createdAt": "2026-10-06T15:00:00.000Z",
  "updatedAt": "2026-10-06T15:05:01.000Z"
}

SDK Example

POST/agent/profiles/:agentProfileId/publish

Publish an agent profile: sets publishStatus to "published" and publishedAt to now. The agent must be active and have at least one enabled deployment. Publish state is a flag, not a snapshot: later edits apply to the same profile, and an updatedAt later than publishedAt means the profile has unpublished changes. The profile's updatedAt also moves when one of its own channel settings, knowledge items or tools is created, updated or deleted. Group-level knowledge items and tools (no agentProfileId) don't move any profile's updatedAt. Publishing again refreshes publishedAt. No request body.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe agent to publish.

Errors

StatusErrorWhen
404AgentProfileNotFoundErrorNo agent profile has this agentProfileId.
409AgentProfileInactiveErrorThe agent's status is "inactive".
400ValidationErrorThe agent has no enabled deployment ("Deploy the agent to at least one subgroup before publishing."), or agentProfileId is malformed.
403AuthorizationErrorThe caller's role is not permitted, or the agent belongs to a group the caller cannot access.

Example Response 200

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c9a",
  "groupId": "G1234567",
  "subgroupId": null,
  "agentProfileId": "AGP0000001",
  "name": "Support Bot",
  "status": "active",
  "systemPrompt": "You are a helpful support agent for Acme.",
  "greeting": "Hi! How can I help you today?",
  "guardrails": "",
  "sendAuthority": "review",
  "publishStatus": "published",
  "publishedAt": "2026-09-21T10:00:00.000Z",
  "createdAt": "2026-09-18T12:00:00.000Z",
  "updatedAt": "2026-09-21T10:00:00.000Z"
}

SDK Example

POST/agent/profiles/:agentProfileId/unpublish

Return an agent profile to draft: sets publishStatus to "draft". publishedAt keeps the time of the last publish, and deployments are kept, so publishing again restores them. No request body.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
agentProfileIdURL ParamRequiredThe agent to unpublish.

Errors

StatusErrorWhen
404AgentProfileNotFoundErrorNo agent profile has this agentProfileId.
400ValidationErroragentProfileId is malformed.
403AuthorizationErrorThe caller's role is not permitted, or the agent belongs to a group the caller cannot access.

Example Response 200

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c9a",
  "groupId": "G1234567",
  "subgroupId": null,
  "agentProfileId": "AGP0000001",
  "name": "Support Bot",
  "status": "active",
  "systemPrompt": "You are a helpful support agent for Acme.",
  "greeting": "Hi! How can I help you today?",
  "guardrails": "",
  "sendAuthority": "review",
  "publishStatus": "draft",
  "publishedAt": "2026-09-21T10:00:00.000Z",
  "createdAt": "2026-09-18T12:00:00.000Z",
  "updatedAt": "2026-09-22T09:30:00.000Z"
}

SDK Example

GET/agent/tenant-settings

Read the tenant AI settings for a scope — brand, tone, timezone, business hours, and after-hours message. Returns the scope's own row only (no group-level fallback), or an empty array when the scope has no settings.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredThe group.
subgroupIdQuery ParamOptionalThe subgroup; omit for the group-level settings.

Example Response 200

Response
[
  {
    "tenantAiSettingsId": "TAS0000001",
    "groupId": "G1234567",
    "subgroupId": null,
    "brandName": "Acme Plumbing",
    "tone": "friendly",
    "timezone": "America/New_York",
    "businessHours": [
      {
        "day": "monday",
        "closed": false,
        "open": "09:00",
        "close": "17:00"
      }
    ],
    "afterHoursMessage": "We're closed — leave a message."
  }
]

SDK Example

PUT/agent/tenant-settings

Create or update (upsert) the tenant AI settings for a scope. The scope is identified by the query params; the body carries the fields. One row per (group, subgroup). All body fields are optional.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredThe group.
subgroupIdQuery ParamOptionalThe subgroup; omit for the group-level settings.
brandNameStringOptionalBrand/business name the agent represents.
toneStringOptionalFreeform tone descriptor (e.g. "professional", "friendly").
timezoneStringOptionalIANA timezone the business hours are evaluated in.
businessHoursObject[]OptionalPer-day windows: { day, closed, open (HH:MM), close (HH:MM) }.
afterHoursMessageStringOptionalMessage the agent uses outside business hours.

Example Request

Request
{
  "brandName": "Acme Plumbing",
  "timezone": "America/New_York",
  "businessHours": [
    {
      "day": "monday",
      "closed": false,
      "open": "09:00",
      "close": "17:00"
    }
  ],
  "afterHoursMessage": "We're closed — leave a message."
}

Example Response 200

Response
{
  "tenantAiSettingsId": "TAS0000001",
  "groupId": "G1234567",
  "subgroupId": null,
  "brandName": "Acme Plumbing",
  "timezone": "America/New_York",
  "businessHours": [
    {
      "day": "monday",
      "closed": false,
      "open": "09:00",
      "close": "17:00"
    }
  ],
  "afterHoursMessage": "We're closed — leave a message."
}

SDK Example

DELETE/agent/tenant-settings

Delete the tenant AI settings for a scope.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredThe group.
subgroupIdQuery ParamOptionalThe subgroup; omit for the group-level settings.

Example Response 200

Response
{
  "message": "Tenant AI settings for G1234567 deleted successfully"
}

SDK Example

GET/agent/tools

List the tools defined under a group — custom webhook tools, configured built-ins, and (future) MCP. webhookAuth secrets are redacted in the response (shown as { configured: true }).

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredThe group whose tools to list.
subgroupIdQuery ParamOptionalNarrow to a subgroup.
agentProfileIdQuery ParamOptionalNarrow to one agent.
typeQuery ParamOptionalNarrow to a tool type — "builtin", "webhook", or "mcp".
pageQuery ParamOptionalPage number (1-based) for pagination.
limitQuery ParamOptionalItems per page (max 100; default 25).

Example Response 200

Response
[
  {
    "agentToolId": "ATL0000001",
    "groupId": "G1234567",
    "subgroupId": null,
    "agentProfileId": null,
    "name": "order_status",
    "description": "Look up the status of a customer order.",
    "type": "webhook",
    "webhookUrl": "https://hooks.acme.io/order-status",
    "webhookAuth": {
      "configured": true
    },
    "channels": [
      "webchat",
      "sms"
    ],
    "enabled": true
  }
]

SDK Example

POST/agent/tools

Create an agent tool. For a webhook tool, webhookUrl must be an https URL that does not target a private/internal address (rejected otherwise). webhookAuth is stored and never returned. Type-specific requirements: webhook → webhookUrl, builtin → builtinKey, mcp → mcpServerUrl. A built-in's config is checked too, and a tool failing a check is a 400 ValidationError: an escalate_to_human tool whose channels include "voice" needs config.target, the US or Canada number calls are transferred to (+1 and ten digits; other +1 countries such as Jamaica, and premium-rate numbers, are refused); a handoff_to_agent tool needs config.targetAgentProfileId; and send_sms and handoff_to_agent must set channels to ["voice"].

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
groupIdStringRequiredThe owning group (starts with "G").
nameStringRequiredTool name exposed to the LLM.
descriptionStringRequiredWhat the tool does; the LLM reads this to decide when to call it.
typeStringOptional"builtin", "webhook", or "mcp" (default "builtin").
builtinKeyStringOptionalThe built-in this configures (required for type "builtin"): check_business_hours, knowledge_search, escalate_to_human, send_sms or handoff_to_agent.
webhookUrlStringOptionalPublic https endpoint the call is relayed to (required for type "webhook").
webhookAuthObjectOptionalAuth config for the webhook call, of the form { headers?: { [name]: value }, signingSecret?: string } (other shapes are rejected). headers are sent verbatim on every call; signingSecret makes us send X-SignalHouse-Signature = "sha256=" + HMAC-SHA256(`${X-SignalHouse-Timestamp}.${rawBody}`) so you can verify the call and reject replays. Stored, never returned.
mcpServerUrlStringOptionalMCP server URL (required for type "mcp").
parametersSchemaObjectOptionalJSON Schema for the tool’s parameters.
configObjectOptionalPer-tool configuration. escalate_to_human: target, the +1 number a call is transferred to (if no one answers, the agent comes back on the line). handoff_to_agent: targetAgentProfileId, the agent in the same group the call is passed to; it must be active, have its voice channel on, and be group-level or in the subgroup the call came in on. The model never chooses either.
channelsString[]OptionalChannels this tool is offered on; empty means every channel. send_sms and handoff_to_agent tools must be ["voice"].
enabledBooleanOptionalWhether the tool is available.
subgroupIdString|nullOptionalScope to a subgroup; null = group-level.
agentProfileIdString|nullOptionalRestrict to one agent; null = shared across the tenant’s agents. Must be an agent in the same groupId, otherwise 404 AgentProfileNotFoundError.

Example Request

Request
{
  "groupId": "G1234567",
  "name": "order_status",
  "description": "Look up the status of a customer order.",
  "type": "webhook",
  "webhookUrl": "https://hooks.acme.io/order-status",
  "webhookAuth": {
    "headers": {
      "Authorization": "Bearer s3cr3t"
    },
    "signingSecret": "whsec_your_secret"
  },
  "channels": [
    "webchat"
  ]
}

Example Response 201

Response
{
  "agentToolId": "ATL0000001",
  "groupId": "G1234567",
  "subgroupId": null,
  "agentProfileId": null,
  "name": "order_status",
  "description": "Look up the status of a customer order.",
  "type": "webhook",
  "webhookUrl": "https://hooks.acme.io/order-status",
  "webhookAuth": {
    "configured": true
  },
  "channels": [
    "webchat",
    "sms"
  ],
  "enabled": true
}

SDK Example

GET/agent/tools/:id

Get a single agent tool by ID (webhookAuth redacted).

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredAgent tool ID.

Example Response 200

Response
[
  {
    "agentToolId": "ATL0000001",
    "groupId": "G1234567",
    "subgroupId": null,
    "agentProfileId": null,
    "name": "order_status",
    "description": "Look up the status of a customer order.",
    "type": "webhook",
    "webhookUrl": "https://hooks.acme.io/order-status",
    "webhookAuth": {
      "configured": true
    },
    "channels": [
      "webchat",
      "sms"
    ],
    "enabled": true
  }
]

SDK Example

PUT/agent/tools/:id

Update an agent tool. The tool’s scope (group/subgroup/agent) is immutable. A supplied webhookUrl is SSRF-checked.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredAgent tool ID to update.
nameStringOptionalTool name exposed to the LLM.
descriptionStringOptionalWhat the tool does.
webhookUrlStringOptionalPublic https endpoint (SSRF-checked).
typeStringOptional"builtin", "webhook", or "mcp". Changing it re-checks the per-type required fields.
builtinKeyStringOptionalThe built-in this configures (for type "builtin"): check_business_hours, knowledge_search, escalate_to_human, send_sms or handoff_to_agent. The merged tool is checked as on create.
mcpServerUrlStringOptionalMCP server URL (public https; for type "mcp").
parametersSchemaObjectOptionalJSON Schema for the tool’s parameters.
configObjectOptionalPer-tool configuration. escalate_to_human: target, the +1 number a call is transferred to (if no one answers, the agent comes back on the line). handoff_to_agent: targetAgentProfileId, the agent in the same group the call is passed to; it must be active, have its voice channel on, and be group-level or in the subgroup the call came in on. The model never chooses either.
webhookAuthObjectOptionalAuth config: { headers?: { [name]: value }, signingSecret?: string } (other shapes rejected). See the POST field for the signing scheme. Stored, never returned.
enabledBooleanOptionalWhether the tool is available.
channelsString[]OptionalChannels this tool is offered on; empty means every channel. send_sms and handoff_to_agent tools must be ["voice"].

Example Request

Request
{
  "enabled": false
}

Example Response 200

Response
{
  "agentToolId": "ATL0000001",
  "groupId": "G1234567",
  "subgroupId": null,
  "agentProfileId": null,
  "name": "order_status",
  "description": "Look up the status of a customer order.",
  "type": "webhook",
  "webhookUrl": "https://hooks.acme.io/order-status",
  "webhookAuth": {
    "configured": true
  },
  "channels": [
    "webchat",
    "sms"
  ],
  "enabled": true
}

SDK Example

DELETE/agent/tools/:id

Delete an agent tool by its ID.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredAgent tool ID to delete.

Example Response 200

Response
{
  "message": "Agent tool ATL0000001 deleted successfully"
}

SDK Example

GET/agent/knowledge

List the knowledge-base items an agent can answer from (RAG). Scoped to a group; optionally narrowed to a subgroup and/or a single agent. The raw text is stored and Atlas Vector Search owns the embedding.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamRequiredThe group whose knowledge to list.
subgroupIdQuery ParamOptionalNarrow to a subgroup.
agentProfileIdQuery ParamOptionalNarrow to one agent.
pageQuery ParamOptionalPage number (1-based) for pagination.
limitQuery ParamOptionalItems per page (max 100; default 25).

Example Response 200

Response
[
  {
    "knowledgeItemId": "KNW0000001",
    "groupId": "G1234567",
    "subgroupId": null,
    "agentProfileId": null,
    "title": "Business hours",
    "text": "We are open Monday to Friday, 9am to 5pm.",
    "source": "manual",
    "enabled": true
  }
]

SDK Example

POST/agent/knowledge

Create a knowledge item. Store the raw text only — Atlas Vector Search generates and owns the embedding, so there is no vector to supply.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
groupIdStringRequiredThe owning group (starts with "G").
textStringRequiredThe raw content Atlas auto-embeds and retrieves against.
subgroupIdString|nullOptionalScope to a subgroup (starts with "S"); null = group-level.
agentProfileIdString|nullOptionalRestrict to one agent; null = shared across the tenant’s agents. Must be an agent in the same groupId, otherwise 404 AgentProfileNotFoundError.
titleStringOptionalShort human label for the item.
sourceStringOptionalHow the item was added — "manual", "url", "document", or "import".
enabledBooleanOptionalWhether the item is included in retrieval.
metadataObject|nullOptionalFree-form per-item metadata.

Example Request

Request
{
  "groupId": "G1234567",
  "title": "Business hours",
  "text": "We are open Monday to Friday, 9am to 5pm.",
  "source": "manual"
}

Example Response 201

Response
{
  "knowledgeItemId": "KNW0000001",
  "groupId": "G1234567",
  "subgroupId": null,
  "agentProfileId": null,
  "title": "Business hours",
  "text": "We are open Monday to Friday, 9am to 5pm.",
  "source": "manual",
  "enabled": true
}

SDK Example

GET/agent/knowledge/:id

Get a single knowledge item by ID.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredKnowledge item ID.

Example Response 200

Response
[
  {
    "knowledgeItemId": "KNW0000001",
    "groupId": "G1234567",
    "subgroupId": null,
    "agentProfileId": null,
    "title": "Business hours",
    "text": "We are open Monday to Friday, 9am to 5pm.",
    "source": "manual",
    "enabled": true
  }
]

SDK Example

PUT/agent/knowledge/:id

Update a knowledge item. The item’s scope (group/subgroup/agent) is immutable and cannot be changed.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredKnowledge item ID to update.
titleStringOptionalShort human label for the item.
textStringOptionalThe raw content Atlas auto-embeds and retrieves against.
sourceStringOptionalHow the item was added — "manual", "url", "document", or "import".
enabledBooleanOptionalWhether the item is included in retrieval.
metadataObject|nullOptionalFree-form per-item metadata.

Example Request

Request
{
  "text": "We are open Monday to Saturday, 8am to 6pm.",
  "enabled": true
}

Example Response 200

Response
{
  "knowledgeItemId": "KNW0000001",
  "groupId": "G1234567",
  "title": "Business hours",
  "text": "We are open Monday to Saturday, 8am to 6pm.",
  "source": "manual",
  "enabled": true
}

SDK Example

DELETE/agent/knowledge/:id

Delete a knowledge item by its ID.

The following roles are required to use this endpoint: admin, developer, api

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredKnowledge item ID to delete.

Example Response 200

Response
{
  "message": "Knowledge item KNW0000001 deleted successfully"
}

SDK Example