# AgentPhone

AgentPhone gives AI agents phone numbers for messaging and voice calls, with contacts, conversations, webhooks, usage, sub-accounts, WhatsApp, and integrations.

Category: Communication. Connect from any SulusAssist agent at https://assist.sulus.ai/integrations/agentphone/.

## Actions

- **Check Verification**: Check a recipient-provided six-digit code against a pending verification.
- **Complete WhatsApp Connection**: Complete Meta Embedded Signup using a caller-supplied short-lived code.
- **Configure Webhook**: Create or update the account webhook or one agent override.
- **Connect WhatsApp Number**: Register one existing WABA phone number for Meta Cloud API use and bind it to AgentPhone, optionally attaching an agent.
- **Create Agent**: Create a webhook-mode or hosted AI voice agent.
- **Create Contact**: Create an AgentPhone contact from a phone number and name.
- **Create SIP Trunk**: Create a SIP trunk with provider-generated routing.
- **Create Sub-Account**: Create an AgentPhone sub-account with the supplied name.
- **Create Web Call**: Create a browser-call session and return a secret access token that expires in 30 seconds.
- **Create WhatsApp Template**: Submit either authored components or one Meta Template Library entry to a connected WABA.
- **Delete Agent**: Permanently delete an AgentPhone agent.
- **Delete Contact**: Permanently delete one saved AgentPhone contact.
- **Delete Contact Card**: Permanently remove the recipient-visible iMessage contact card from an owned AgentPhone number.
- **Delete SIP Trunk**: Permanently delete a SIP trunk, remove its upstream routing, and soft-delete its local record.
- **Delete Sub-Account**: Permanently delete an AgentPhone sub-account and all isolated tenant state associated with it.
- **Delete Webhook**: Delete the account webhook and stop account delivery, or delete an agent override so that agent falls back to the account webhook.
- **Delete WhatsApp Template**: Permanently delete a Meta WhatsApp template.
- **Disconnect Supabase**: Permanently disconnect the AgentPhone account's existing Supabase integration.
- **Disconnect WhatsApp**: Permanently disconnect a WhatsApp Business Account from AgentPhone and release its AgentPhone numbers.
- **Download Call Recording** (read-only): Download the complete WAV recording for a completed AgentPhone call as a file.
- **End Call**: Immediately request termination of an active AgentPhone call.
- **Get Agent** (read-only): Get one AgentPhone agent by ID with its voice configuration and attached numbers.
- **Get Call** (read-only): Get full status, timing, metadata, and transcript details for one AgentPhone call by ID.
- **Get Call Transcript** (read-only): Read the complete stored transcript for a completed or in-progress call.
- **Get Call Transcript Events** (read-only): Download up to 1 MB of SSE events for a completed AgentPhone call as a file.
- **Get Contact** (read-only): Get one saved AgentPhone contact by its stable contact ID.
- **Get Contact Capabilities** (read-only): Run a live check, without sending a message, for the current iMessage, SMS, and RCS reachability of a phone number.
- **Get Contact Card** (read-only): Get the recipient-visible iMessage contact card currently configured for one owned AgentPhone number.
- **Get Conversation** (read-only): Get one conversation by ID with participants, channel state, capabilities, and up to 100 recent messages.
- **Get Location** (read-only): Get the provider's current latitude, longitude, status, and last-update timestamp for one known phone number.
- **Get Number** (read-only): Get one owned AgentPhone number by ID, including active or released records, with its status and channel configuration.
- **Get Registration Details** (read-only): Read submitted A2P 10DLC brand and campaign content exactly as exposed for review.
- **Get Registration Status** (read-only): Read the current A2P 10DLC campaign status, processing stage, provider message, and resolved sub-account.
- **Get SIP Trunk** (read-only): Get one SIP trunk by ID with routing, transfer, encryption, URI, and allowed-IP settings.
- **Get Supabase Status** (read-only): Check whether the AgentPhone account has an authenticated Supabase integration and return non-secret project or account metadata.
- **Get Usage** (read-only): Get current account quotas, reporting-period bounds, and message, call, SMS segment, and webhook activity totals and rolling windows.
- **Get Usage Breakdown** (read-only): Break down usage by owned phone number or by agent.
- **Get Usage Trends** (read-only): Get message, call, and webhook usage as either daily or monthly time-series points.
- **Get Webhook** (read-only): Get the account webhook or one agent's override without exposing its signing secret.
- **Get Webhook Delivery Stats** (read-only): Get detailed recent webhook delivery health or lightweight all-time aggregate counts.
- **Get WhatsApp Status** (read-only): Inspect whether WhatsApp is enabled and connected and return the account's AgentPhone WhatsApp connection IDs.
- **List Agents** (read-only): List AI voice agents and their current voice, mode, configuration, and attached numbers.
- **List Calls** (read-only): List calls account-wide, for one agent, or for one owned number.
- **List Contacts** (read-only): Search and list saved contacts used in messaging workflows.
- **List Conversations** (read-only): List account-wide or agent-scoped messaging conversations with participants, channels, latest activity, and message counts.
- **List Messages** (read-only): Read one newest-first page of message history for either a conversation or an owned phone number.
- **List Numbers** (read-only): List owned AgentPhone numbers with routing, agent assignment, SMS registration, and channel status.
- **List SIP Trunks** (read-only): List SIP trunks and their routing, transfer, encryption, URI, and IP configuration.
- **List Sub-Accounts** (read-only): List isolated sub-accounts with optional recent activity statistics.
- **List Voices** (read-only): List a bounded prefix of voice IDs and metadata available for hosted AgentPhone agents.
- **List Webhook Deliveries** (read-only): List one page of account-wide deliveries or the bounded recent deliveries for one agent.
- **List WhatsApp Numbers** (read-only): List phone numbers available on a connected WhatsApp Business Account and show which are already connected to AgentPhone.
- **List WhatsApp Templates** (read-only): List and filter a connected WhatsApp Business Account's message templates, including their language variants and Meta approval status.
- **Lookup Numbers**: Look up line type, country, and RCS intelligence before messaging up to 25 phone numbers.
- **Place Call**: Immediately place one externally visible, metered outbound telephone call from an AgentPhone agent to a consented destination.
- **Provision Number**: Purchase and provision an AgentPhone number, optionally choosing an area code and attaching an agent.
- **Refresh Locations**: Request one asynchronous refresh of account location data.
- **Refresh Supabase Token**: Retrieve a valid Supabase credential server-side, refreshing AgentPhone's stored provider credential when needed.
- **Release Number**: PERMANENTLY AND IRREVERSIBLY release an owned AgentPhone number from its upstream provider and mark it released.
- **Search Available Numbers** (read-only): Search unreserved US or Canadian phone-number inventory before provisioning a number.
- **Send Message**: Send one externally visible and potentially billed SMS, MMS, iMessage, RCS-routed, or WhatsApp message.
- **Send Reaction**: Send one externally visible iMessage tapback or supported custom emoji reaction to an existing message.
- **Send Typing Indicator**: Show a short-lived, externally visible typing indicator in a one-to-one or group iMessage conversation.
- **Send Verification**: Send an external SMS containing a non-configurable six-digit code that expires after 10 minutes and allows at most three checks.
- **Set Agent Number Assignment**: Attach an owned phone number to an agent or detach it, changing which agent handles that number.
- **Set Contact Card**: Create or fully replace the recipient-visible iMessage contact card for an owned number.
- **Start Supabase Connection**: Create a one-shot, short-lived Supabase OAuth bootstrap and return a secret connect URL.
- **Submit A2P Registration**: Submit legal business, campaign, consent, and sample-message information for external US carrier A2P 10DLC review.
- **Test Webhook**: Send one externally observable fake message payload to the account webhook or an agent override.
- **Update A2P Registration**: Submit selected changes to an existing A2P 10DLC registration for external carrier review.
- **Update Agent**: Update one or more selected fields of an existing voice agent.
- **Update Chat Background**: Set or remove the recipient-visible custom background for an iMessage chat.
- **Update Contact**: Update explicitly supplied fields of an existing AgentPhone contact.
- **Update Conversation**: Replace a conversation's stored agent context and/or rename an iMessage group.
- **Update SIP Trunk**: Update selected display, transfer, or inbound origination settings on an existing SIP trunk.
- **Update Sub-Account**: Rename an existing AgentPhone sub-account.
