AgentPhone
agentphoneAgentPhone gives AI agents phone numbers for messaging and voice calls, with contacts, conversations, webhooks, usage, sub-accounts, WhatsApp, and integrations.
Acciones disponibles (76)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Check VerificationAGENTPHONE_CHECK_VERIFICATIONAcciónCheck a recipient-provided six-digit code against a pending verification. Each incorrect check consumes one of at most three attempts. An ok or already_verified result incurs a $0.05 verification fee; incorrect, exhausted, and expired results are free. Only submit a code supplied for this verification. After an ambiguous failure, do not automatically repeat the check because an attempt may have been consumed or the paid verification may have succeeded.
AGENTPHONE_CHECK_VERIFICATIONAcciónCheck a recipient-provided six-digit code against a pending verification. Each incorrect check consumes one of at most three attempts. An ok or already_verified result incurs a $0.05 verification fee; incorrect, exhausted, and expired results are free. Only submit a code supplied for this verification. After an ambiguous failure, do not automatically repeat the check because an attempt may have been consumed or the paid verification may have succeeded.
Parámetros de entrada
codestringObligatorioSensitive six-digit code entered by the recipient. It is sent only to AgentPhone for this check and is never returned.
verification_idstringObligatorioVerification ID returned by SEND_VERIFICATION.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Complete WhatsApp ConnectionAGENTPHONE_COMPLETE_WHATSAPP_CONNECTIONAcciónComplete Meta Embedded Signup using a caller-supplied short-lived code. AgentPhone exchanges the code, stores the WABA connection, subscribes webhooks, and, when a phone-number ID is supplied, registers that number and optionally attaches an agent. Registering a number can remove it from the WhatsApp Business app. This mutates external Meta and WhatsApp state; only run it with explicit approval for the selected WABA and number.
AGENTPHONE_COMPLETE_WHATSAPP_CONNECTIONAcciónComplete Meta Embedded Signup using a caller-supplied short-lived code. AgentPhone exchanges the code, stores the WABA connection, subscribes webhooks, and, when a phone-number ID is supplied, registers that number and optionally attaches an agent. Registering a number can remove it from the WhatsApp Business app. This mutates external Meta and WhatsApp state; only run it with explicit approval for the selected WABA and number.
Parámetros de entrada
codestringObligatorioShort-lived exchange code returned by Meta Embedded Signup. The code is consumed to authorize and store the WhatsApp connection.
waba_idstringWhatsApp Business Account ID from the Embedded Signup message event. Omit it when AgentPhone should discover the WABA from the exchanged code.
agent_idstringAgentPhone agent ID to attach to the onboarded WhatsApp number.
business_idstringMeta business portfolio ID returned by Embedded Signup.
phone_number_idstringMeta business phone-number ID to register and onboard. Omit it for a WABA-only connection.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Configure WebhookAGENTPHONE_CONFIGURE_WEBHOOKAcciónCreate or update the account webhook or one agent override. Every call rotates and returns a new signing secret once; store it securely before making another webhook call.
AGENTPHONE_CONFIGURE_WEBHOOKAcciónCreate or update the account webhook or one agent override. Every call rotates and returns a new signing secret once; store it securely before making another webhook call.
Parámetros de entrada
urlstringObligatoriouriCallback URL to create or update (maximum 2083 characters).
timeoutintegerWebhook request timeout accepted by AgentPhone; omit to keep the provider default.
agent_idstringAgent ID whose override to configure; omit to configure the account webhook.
context_limitintegerRecent messages included in each payload (0-50); omit for the provider default of 10.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Connect WhatsApp NumberAGENTPHONE_CONNECT_WHATSAPP_NUMBERAcciónRegister one existing WABA phone number for Meta Cloud API use and bind it to AgentPhone, optionally attaching an agent. This changes externally managed Meta state and can remove the number from the WhatsApp Business app.
AGENTPHONE_CONNECT_WHATSAPP_NUMBERAcciónRegister one existing WABA phone number for Meta Cloud API use and bind it to AgentPhone, optionally attaching an agent. This changes externally managed Meta state and can remove the number from the WhatsApp Business app.
Parámetros de entrada
agent_idstringAgentPhone agent ID to attach to the WhatsApp number after registration.
connection_idstringObligatorioAgentPhone WhatsApp connection ID for the already-connected WABA.
phone_number_idstringObligatorioMeta phone-number ID belonging to the connection's WABA. This action registers the number for Meta Cloud API use, which can remove it from the WhatsApp Business app.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create AgentAGENTPHONE_CREATE_AGENTAcciónCreate a webhook-mode or hosted AI voice agent. This configures the agent but does not place a call or assign a phone number.
AGENTPHONE_CREATE_AGENTAcciónCreate a webhook-mode or hosted AI voice agent. This configures the agent but does not place a call or assign a phone number.
Parámetros de entrada
namestringObligatorioHuman-readable agent name.
voicestringAgentPhone voice ID selected for the agent.
languagestringSupported BCP-47 locale used for speech recognition and pronunciation.
stt_modestringenumSpeech-to-text preference: fast favors latency and accurate favors accuracy.
fastaccuratemodel_tierstringenumHosted model quality and latency tier.
turbobalancedmaxvoice_modestringenumHow the agent handles conversations: webhook forwards transcripts to your service, while hosted uses AgentPhone's built-in LLM.
webhookhosteddescriptionstringOptional description of the agent's purpose.
voice_speednumberSpeech speed multiplier from 0.5 to 2.0.
custom_toolsobject[]Up to 20 HTTPS functions available to a hosted agent during calls.
ambient_soundstringenumBackground ambience played between conversational turns.
noneofficecoffee-shopoutdoorbegin_messagestringOpening message spoken by a hosted agent.
system_promptstringInstructions for the built-in LLM when voice_mode is hosted.
denoising_modestringenumAudio denoising strategy applied to caller audio.
noise-cancellationnoise-and-background-speech-cancellationmax_silence_msintegerCaller silence duration in milliseconds before the call is ended.
transfer_numberstringE.164 destination used when the agent transfers a call.
enable_messagingbooleanWhether a hosted agent may send and read messages during calls.
voicemail_messagestringMessage to leave when voicemail is detected.
enable_backchannelbooleanWhether the agent uses short acknowledgements while the caller speaks.
call_screening_purposestringPurpose stated to an automated call screener.
call_screening_identitystringIdentity stated to an automated call screener.
interruption_sensitivitynumberHow easily caller audio interrupts the agent, from 0.0 to 1.0.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ContactAGENTPHONE_CREATE_CONTACTAcciónCreate an AgentPhone contact from a phone number and name.
AGENTPHONE_CREATE_CONTACTAcciónCreate an AgentPhone contact from a phone number and name.
Parámetros de entrada
namestringObligatorioContact name.
emailstringContact email address.
notesstringFree-form notes about the contact.
phone_numberstringObligatorioContact phone number, normalized to E.164 by AgentPhone.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create SIP TrunkAGENTPHONE_CREATE_SIP_TRUNKAcciónCreate a SIP trunk with provider-generated routing. Configure origination destinations and transfer policy afterward with Update SIP Trunk. Returned passwords and credential objects are omitted.
AGENTPHONE_CREATE_SIP_TRUNKAcciónCreate a SIP trunk with provider-generated routing. Configure origination destinations and transfer policy afterward with Update SIP Trunk. Returned passwords and credential objects are omitted.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Sub-AccountAGENTPHONE_CREATE_SUB_ACCOUNTAcciónCreate an AgentPhone sub-account with the supplied name.
AGENTPHONE_CREATE_SUB_ACCOUNTAcciónCreate an AgentPhone sub-account with the supplied name.
Parámetros de entrada
namestringObligatorioName for the new sub-account.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Web CallAGENTPHONE_CREATE_WEB_CALLAcciónCreate a browser-call session and return a secret access token that expires in 30 seconds. The caller must immediately hand the token to the AgentPhone Web SDK and call startCall; this action does not connect audio itself.
AGENTPHONE_CREATE_WEB_CALLAcciónCreate a browser-call session and return a secret access token that expires in 30 seconds. The caller must immediately hand the token to the AgentPhone Web SDK and call startCall; this action does not connect audio itself.
Parámetros de entrada
agent_idstringObligatorioAgentPhone agent ID that will handle the browser call.
metadataobjectOptional application metadata to associate with the web call.
variablesobjectOptional runtime variables made available to the selected agent.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create WhatsApp TemplateAGENTPHONE_CREATE_WHATSAPP_TEMPLATEAcciónSubmit either authored components or one Meta Template Library entry to a connected WABA. This creates externally managed Meta template state. Authored content normally enters review and can remain pending for up to 24 hours; an unchanged library template may skip review. Meta can recategorize or reject content. Only run after the caller approves the exact content and connection. After an ambiguous failure, list templates before retrying to avoid duplicate submissions.
AGENTPHONE_CREATE_WHATSAPP_TEMPLATEAcciónSubmit either authored components or one Meta Template Library entry to a connected WABA. This creates externally managed Meta template state. Authored content normally enters review and can remain pending for up to 24 hours; an unchanged library template may skip review. Meta can recategorize or reject content. Only run after the caller approves the exact content and connection. After an ambiguous failure, list templates before retrying to avoid duplicate submissions.
Parámetros de entrada
namestringObligatorioUnique template name on the WABA, using only lowercase letters, digits, and underscores.
categorystringObligatorioenumRequested Meta category. Meta may recategorize authored content.
MARKETINGUTILITYAUTHENTICATIONlanguagestringMeta locale code for this template language variant.
componentsarrayAuthored Meta component array. It must include a BODY component, and every component containing variables must include Meta-compatible examples. Use this instead of library_template_name.
connection_idstringObligatorioAgentPhone WhatsApp connection ID for the target WABA.
parameter_formatstringenumPlaceholder style for authored components: POSITIONAL for {{1}} or NAMED for {{first_name}}.
POSITIONALNAMEDlibrary_template_namestringMeta Template Library slug. Use this instead of components; an unchanged library template can skip review and become usable immediately.
library_template_body_inputsobjectOptional body-line settings exposed by the selected Meta library template. Valid only when library_template_name is supplied.
library_template_button_inputsobject[]Values required by buttons in the selected Meta library template. Valid only when library_template_name is supplied.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete AgentAGENTPHONE_DELETE_AGENTAcciónPermanently delete an AgentPhone agent. Associated phone numbers, conversations, and calls remain, but their agent reference is cleared.
AGENTPHONE_DELETE_AGENTAcciónPermanently delete an AgentPhone agent. Associated phone numbers, conversations, and calls remain, but their agent reference is cleared.
Parámetros de entrada
agent_idstringObligatorioAgentPhone agent ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete ContactAGENTPHONE_DELETE_CONTACTAcciónPermanently delete one saved AgentPhone contact. This destructive, one-shot operation cannot be undone and does not claim to remove existing messages or conversations. Automatic retries are disabled; after an ambiguous failure, check the contact list before deciding whether to try again.
AGENTPHONE_DELETE_CONTACTAcciónPermanently delete one saved AgentPhone contact. This destructive, one-shot operation cannot be undone and does not claim to remove existing messages or conversations. Automatic retries are disabled; after an ambiguous failure, check the contact list before deciding whether to try again.
Parámetros de entrada
contact_idstringObligatorioID of the saved contact to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Contact CardAGENTPHONE_DELETE_CONTACT_CARDAcciónPermanently remove the recipient-visible iMessage contact card from an owned AgentPhone number. The number itself is not deleted.
AGENTPHONE_DELETE_CONTACT_CARDAcciónPermanently remove the recipient-visible iMessage contact card from an owned AgentPhone number. The number itself is not deleted.
Parámetros de entrada
number_idstringObligatorioOwned AgentPhone number ID whose iMessage contact card to remove.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete SIP TrunkAGENTPHONE_DELETE_SIP_TRUNKAcciónPermanently delete a SIP trunk, remove its upstream routing, and soft-delete its local record. Detach dependent numbers first.
AGENTPHONE_DELETE_SIP_TRUNKAcciónPermanently delete a SIP trunk, remove its upstream routing, and soft-delete its local record. Detach dependent numbers first.
Parámetros de entrada
trunk_idstringObligatorioSIP trunk ID to permanently delete after dependent numbers have been detached.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Sub-AccountAGENTPHONE_DELETE_SUB_ACCOUNTAcciónPermanently delete an AgentPhone sub-account and all isolated tenant state associated with it. This destructive operation cannot be undone. Delete only a known disposable sub-account, never the tenant targeted by the current connection or other pre-existing tenant state.
AGENTPHONE_DELETE_SUB_ACCOUNTAcciónPermanently delete an AgentPhone sub-account and all isolated tenant state associated with it. This destructive operation cannot be undone. Delete only a known disposable sub-account, never the tenant targeted by the current connection or other pre-existing tenant state.
Parámetros de entrada
sub_account_idstringObligatorioSub-account ID to permanently delete, including its isolated tenant state. Never use the ID of the tenant targeted by the current connection.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete WebhookAGENTPHONE_DELETE_WEBHOOKAcciónDelete the account webhook and stop account delivery, or delete an agent override so that agent falls back to the account webhook.
AGENTPHONE_DELETE_WEBHOOKAcciónDelete the account webhook and stop account delivery, or delete an agent override so that agent falls back to the account webhook.
Parámetros de entrada
agent_idstringAgent ID whose override to delete; omit to delete the account webhook.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete WhatsApp TemplateAGENTPHONE_DELETE_WHATSAPP_TEMPLATEAcciónPermanently delete a Meta WhatsApp template. Supplying hsm_id deletes only that language variant; omitting hsm_id deletes EVERY language variant registered under the name. Meta then blocks reuse of the template name for 30 days. Automatic retries are disabled; after an ambiguous failure, list templates before deciding whether to call again.
AGENTPHONE_DELETE_WHATSAPP_TEMPLATEAcciónPermanently delete a Meta WhatsApp template. Supplying hsm_id deletes only that language variant; omitting hsm_id deletes EVERY language variant registered under the name. Meta then blocks reuse of the template name for 30 days. Automatic retries are disabled; after an ambiguous failure, list templates before deciding whether to call again.
Parámetros de entrada
namestringObligatorioTemplate name to delete. Meta locks this name against reuse for 30 days after deletion.
hsm_idstringMeta template ID that narrows deletion to one language variant. Omit only when every language variant under name should be permanently deleted.
connection_idstringObligatorioAgentPhone WhatsApp connection ID for the target WABA.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Disconnect SupabaseAGENTPHONE_DISCONNECT_SUPABASEAcciónPermanently disconnect the AgentPhone account's existing Supabase integration. This removes stored integration authorization and cannot be undone by this action. Automatic HTTP retries are disabled; after an ambiguous result, check Supabase status before deciding whether to call again. No provider response fields are exposed because the upstream schema is unconstrained.
AGENTPHONE_DISCONNECT_SUPABASEAcciónPermanently disconnect the AgentPhone account's existing Supabase integration. This removes stored integration authorization and cannot be undone by this action. Automatic HTTP retries are disabled; after an ambiguous result, check Supabase status before deciding whether to call again. No provider response fields are exposed because the upstream schema is unconstrained.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Disconnect WhatsAppAGENTPHONE_DISCONNECT_WHATSAPPAcciónPermanently disconnect a WhatsApp Business Account from AgentPhone and release its AgentPhone numbers. This stops AgentPhone from using the connection but does not delete the customer's WABA, phone numbers, templates, or other Meta assets. Automatic retries are disabled; after an ambiguous failure, inspect WhatsApp status before deciding whether to call again.
AGENTPHONE_DISCONNECT_WHATSAPPAcciónPermanently disconnect a WhatsApp Business Account from AgentPhone and release its AgentPhone numbers. This stops AgentPhone from using the connection but does not delete the customer's WABA, phone numbers, templates, or other Meta assets. Automatic retries are disabled; after an ambiguous failure, inspect WhatsApp status before deciding whether to call again.
Parámetros de entrada
connection_idstringObligatorioAgentPhone WhatsApp connection ID to disconnect.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Call RecordingAGENTPHONE_DOWNLOAD_CALL_RECORDINGAcciónDownload the complete WAV recording for a completed AgentPhone call as a file. The call ID is a bearer capability, so only use an authorized ID and keep it private. Recording must be enabled and may become available shortly after completion. Recordings require AgentPhone's $5/month recording add-on. Downloads are complete WAV files up to 20 MB; oversized recordings fail instead of returning a partial file.
AGENTPHONE_DOWNLOAD_CALL_RECORDINGAcciónDownload the complete WAV recording for a completed AgentPhone call as a file. The call ID is a bearer capability, so only use an authorized ID and keep it private. Recording must be enabled and may become available shortly after completion. Recordings require AgentPhone's $5/month recording add-on. Downloads are complete WAV files up to 20 MB; oversized recordings fail instead of returning a partial file.
Parámetros de entrada
call_idstringObligatorioAuthorized AgentPhone call ID whose complete WAV recording to download. The call ID is a bearer capability and must be kept private.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
End CallAGENTPHONE_END_CALLAcciónImmediately request termination of an active AgentPhone call. AgentPhone accepts the stop request before its asynchronous call-ended update finishes, so the returned status may still be in-progress; retrieve the call afterward to confirm its terminal status.
AGENTPHONE_END_CALLAcciónImmediately request termination of an active AgentPhone call. AgentPhone accepts the stop request before its asynchronous call-ended update finishes, so the returned status may still be in-progress; retrieve the call afterward to confirm its terminal status.
Parámetros de entrada
call_idstringObligatorioActive AgentPhone call ID to terminate immediately.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get AgentAGENTPHONE_GET_AGENTAcciónGet one AgentPhone agent by ID with its voice configuration and attached numbers. Credential-like custom-tool headers are omitted from the result.
AGENTPHONE_GET_AGENTAcciónGet one AgentPhone agent by ID with its voice configuration and attached numbers. Credential-like custom-tool headers are omitted from the result.
Parámetros de entrada
agent_idstringObligatorioExisting AgentPhone agent ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CallAGENTPHONE_GET_CALLAcciónGet full status, timing, metadata, and transcript details for one AgentPhone call by ID.
AGENTPHONE_GET_CALLAcciónGet full status, timing, metadata, and transcript details for one AgentPhone call by ID.
Parámetros de entrada
call_idstringObligatorioAgentPhone call ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Call TranscriptAGENTPHONE_GET_CALL_TRANSCRIPTAcciónRead the complete stored transcript for a completed or in-progress call. Transcript content may be sensitive.
AGENTPHONE_GET_CALL_TRANSCRIPTAcciónRead the complete stored transcript for a completed or in-progress call. Transcript content may be sensitive.
Parámetros de entrada
call_idstringObligatorioCall whose complete ordered transcript to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Call Transcript EventsAGENTPHONE_GET_CALL_TRANSCRIPT_EVENTSAcciónDownload up to 1 MB of SSE events for a completed AgentPhone call as a file. The replay preserves documented connected, turn, heartbeat, and ended events, requires a terminal ended event, and rejects active calls. This is not a live stream.
AGENTPHONE_GET_CALL_TRANSCRIPT_EVENTSAcciónDownload up to 1 MB of SSE events for a completed AgentPhone call as a file. The replay preserves documented connected, turn, heartbeat, and ended events, requires a terminal ended event, and rejects active calls. This is not a live stream.
Parámetros de entrada
call_idstringObligatorioCompleted AgentPhone call whose transcript SSE event replay to download. Live and non-terminal calls are rejected.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ContactAGENTPHONE_GET_CONTACTAcciónGet one saved AgentPhone contact by its stable contact ID.
AGENTPHONE_GET_CONTACTAcciónGet one saved AgentPhone contact by its stable contact ID.
Parámetros de entrada
contact_idstringObligatorioExisting AgentPhone contact ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Contact CapabilitiesAGENTPHONE_GET_CONTACT_CAPABILITIESAcciónRun a live check, without sending a message, for the current iMessage, SMS, and RCS reachability of a phone number. The check usually takes 1-2 seconds and requires an active capable line; null flags mean this account cannot check that channel. Reachability can change after the check.
AGENTPHONE_GET_CONTACT_CAPABILITIESAcciónRun a live check, without sending a message, for the current iMessage, SMS, and RCS reachability of a phone number. The check usually takes 1-2 seconds and requires an active capable line; null flags mean this account cannot check that channel. Reachability can change after the check.
Parámetros de entrada
phone_numberstringObligatorioPhone number to check for current messaging reachability; E.164 is preferred.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Contact CardAGENTPHONE_GET_CONTACT_CARDAcciónGet the recipient-visible iMessage contact card currently configured for one owned AgentPhone number.
AGENTPHONE_GET_CONTACT_CARDAcciónGet the recipient-visible iMessage contact card currently configured for one owned AgentPhone number.
Parámetros de entrada
number_idstringObligatorioOwned AgentPhone number ID whose iMessage contact card to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ConversationAGENTPHONE_GET_CONVERSATIONAcciónGet one conversation by ID with participants, channel state, capabilities, and up to 100 recent messages.
AGENTPHONE_GET_CONVERSATIONAcciónGet one conversation by ID with participants, channel state, capabilities, and up to 100 recent messages.
Parámetros de entrada
message_limitintegerMaximum recent messages to include (up to 100). Use LIST_MESSAGES for paginated message history.
conversation_idstringObligatorioExisting AgentPhone conversation ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get LocationAGENTPHONE_GET_LOCATIONAcciónGet the provider's current latitude, longitude, status, and last-update timestamp for one known phone number. Use only with consent because the response may contain precise location-derived data.
AGENTPHONE_GET_LOCATIONAcciónGet the provider's current latitude, longitude, status, and last-update timestamp for one known phone number. Use only with consent because the response may contain precise location-derived data.
Parámetros de entrada
phone_numberstringObligatorioKnown, consented phone number whose current provider location to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get NumberAGENTPHONE_GET_NUMBERAcciónGet one owned AgentPhone number by ID, including active or released records, with its status and channel configuration.
AGENTPHONE_GET_NUMBERAcciónGet one owned AgentPhone number by ID, including active or released records, with its status and channel configuration.
Parámetros de entrada
number_idstringObligatorioAgentPhone number ID, including the ID of a released number.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Registration DetailsAGENTPHONE_GET_REGISTRATION_DETAILSAcciónRead submitted A2P 10DLC brand and campaign content exactly as exposed for review. EIN data is limited to its last four digits. This does not submit or update a registration.
AGENTPHONE_GET_REGISTRATION_DETAILSAcciónRead submitted A2P 10DLC brand and campaign content exactly as exposed for review. EIN data is limited to its last four digits. This does not submit or update a registration.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Registration StatusAGENTPHONE_GET_REGISTRATION_STATUSAcciónRead the current A2P 10DLC campaign status, processing stage, provider message, and resolved sub-account. This does not submit or update a registration.
AGENTPHONE_GET_REGISTRATION_STATUSAcciónRead the current A2P 10DLC campaign status, processing stage, provider message, and resolved sub-account. This does not submit or update a registration.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get SIP TrunkAGENTPHONE_GET_SIP_TRUNKAcciónGet one SIP trunk by ID with routing, transfer, encryption, URI, and allowed-IP settings. Passwords and credential objects are omitted.
AGENTPHONE_GET_SIP_TRUNKAcciónGet one SIP trunk by ID with routing, transfer, encryption, URI, and allowed-IP settings. Passwords and credential objects are omitted.
Parámetros de entrada
trunk_idstringObligatorioExisting AgentPhone SIP trunk ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Supabase StatusAGENTPHONE_GET_SUPABASE_STATUSAcciónCheck whether the AgentPhone account has an authenticated Supabase integration and return non-secret project or account metadata. Credential- and token-like fields are removed recursively from the provider response.
AGENTPHONE_GET_SUPABASE_STATUSAcciónCheck whether the AgentPhone account has an authenticated Supabase integration and return non-secret project or account metadata. Credential- and token-like fields are removed recursively from the provider response.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get UsageAGENTPHONE_GET_USAGEAcciónGet current account quotas, reporting-period bounds, and message, call, SMS segment, and webhook activity totals and rolling windows.
AGENTPHONE_GET_USAGEAcciónGet current account quotas, reporting-period bounds, and message, call, SMS segment, and webhook activity totals and rolling windows.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Usage BreakdownAGENTPHONE_GET_USAGE_BREAKDOWNAcciónBreak down usage by owned phone number or by agent. Agent breakdowns require a calendar period and optionally accept an IANA timezone; number breakdowns do not accept those filters.
AGENTPHONE_GET_USAGE_BREAKDOWNAcciónBreak down usage by owned phone number or by agent. Agent breakdowns require a calendar period and optionally accept an IANA timezone; number breakdowns do not accept those filters.
Parámetros de entrada
periodstringenumCurrent calendar period. Required for agent and invalid for number.
weekmonthyeargroup_bystringObligatorioenumBreakdown dimension: owned phone number or agent.
numberagenttimezonestringIANA timezone used to establish agent period boundaries, such as America/New_York. Valid only for agent breakdowns.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Usage TrendsAGENTPHONE_GET_USAGE_TRENDSAcciónGet message, call, and webhook usage as either daily or monthly time-series points. Select exactly one granularity and optionally bound the number of periods.
AGENTPHONE_GET_USAGE_TRENDSAcciónGet message, call, and webhook usage as either daily or monthly time-series points. Select exactly one granularity and optionally bound the number of periods.
Parámetros de entrada
periodsintegerNumber of periods to return. Daily defaults to 30 and allows 1-365; monthly defaults to 6 and allows 1-24.
granularitystringObligatorioenumGroup usage into daily or monthly time-series periods.
dailymonthly
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get WebhookAGENTPHONE_GET_WEBHOOKAcciónGet the account webhook or one agent's override without exposing its signing secret.
AGENTPHONE_GET_WEBHOOKAcciónGet the account webhook or one agent's override without exposing its signing secret.
Parámetros de entrada
agent_idstringAgent ID whose webhook override to read; omit to read the account webhook.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Webhook Delivery StatsAGENTPHONE_GET_WEBHOOK_DELIVERY_STATSAcciónGet detailed recent webhook delivery health or lightweight all-time aggregate counts.
AGENTPHONE_GET_WEBHOOK_DELIVERY_STATSAcciónGet detailed recent webhook delivery health or lightweight all-time aggregate counts.
Parámetros de entrada
hoursintegerRecent lookback in hours (1-168); omit for 24. Not valid for all_time.
rangestringenumUse recent for a bounded hourly breakdown or all_time for aggregate counts.
recentall_time
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get WhatsApp StatusAGENTPHONE_GET_WHATSAPP_STATUSAcciónInspect whether WhatsApp is enabled and connected and return the account's AgentPhone WhatsApp connection IDs.
AGENTPHONE_GET_WHATSAPP_STATUSAcciónInspect whether WhatsApp is enabled and connected and return the account's AgentPhone WhatsApp connection IDs.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List AgentsAGENTPHONE_LIST_AGENTSAcciónList AI voice agents and their current voice, mode, configuration, and attached numbers.
AGENTPHONE_LIST_AGENTSAcciónList AI voice agents and their current voice, mode, configuration, and attached numbers.
Parámetros de entrada
limitintegerMaximum agents to return in this page (1-100).
cursorstringOpaque continuation cursor from a previous response; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CallsAGENTPHONE_LIST_CALLSAcciónList calls account-wide, for one agent, or for one owned number. Account-wide lists can filter by status, direction, call type, and phone-number text.
AGENTPHONE_LIST_CALLSAcciónList calls account-wide, for one agent, or for one owned number. Account-wide lists can filter by status, direction, call type, and phone-number text.
Parámetros de entrada
limitintegerMaximum calls to return on this page (1-100).
cursorstringOpaque continuation cursor from a previous response; omit for the first page.
searchstringMatch text in the from or to phone number.
statusstringenumFilter by call status.
completedin-progressfailedagent_idstringAgentPhone agent ID whose calls to list; mutually exclusive with number_id.
call_typestringenumFilter by PSTN or browser web call.
pstnwebdirectionstringenumFilter by call direction.
inboundoutboundnumber_idstringOwned AgentPhone number ID whose calls to list; mutually exclusive with agent_id.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ContactsAGENTPHONE_LIST_CONTACTSAcciónSearch and list saved contacts used in messaging workflows.
AGENTPHONE_LIST_CONTACTSAcciónSearch and list saved contacts used in messaging workflows.
Parámetros de entrada
limitintegerMaximum contacts to return on this page (1-200). Repeat the same value when continuing with a cursor.
cursorstringOpaque continuation cursor from a previous response. Omit for the first page; when the first request used a non-default limit, repeat that limit.
searchstringSearch contact names, phone numbers, or other indexed contact text.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ConversationsAGENTPHONE_LIST_CONVERSATIONSAcciónList account-wide or agent-scoped messaging conversations with participants, channels, latest activity, and message counts.
AGENTPHONE_LIST_CONVERSATIONSAcciónList account-wide or agent-scoped messaging conversations with participants, channels, latest activity, and message counts.
Parámetros de entrada
limitintegerMaximum conversations to return on this page (1-100).
cursorstringOpaque continuation cursor from a previous response; omit for the first page.
agent_idstringAgentPhone agent ID whose conversations to list; omit for the account.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List MessagesAGENTPHONE_LIST_MESSAGESAcciónRead one newest-first page of message history for either a conversation or an owned phone number.
AGENTPHONE_LIST_MESSAGESAcciónRead one newest-first page of message history for either a conversation or an owned phone number.
Parámetros de entrada
afterstringISO 8601 timestamp; return messages newer than this time.
limitintegerMaximum messages to return on this page (1-200).
beforestringISO 8601 timestamp; return messages older than this time.
cursorstringOpaque continuation cursor from a previous response. Do not combine it with before or after.
number_idstringOwned number whose messages to read; provide exactly one selector.
conversation_idstringConversation whose messages to read; provide exactly one selector.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List NumbersAGENTPHONE_LIST_NUMBERSAcciónList owned AgentPhone numbers with routing, agent assignment, SMS registration, and channel status.
AGENTPHONE_LIST_NUMBERSAcciónList owned AgentPhone numbers with routing, agent assignment, SMS registration, and channel status.
Parámetros de entrada
limitintegerMaximum numbers to return on this page (1-100).
cursorstringOpaque continuation cursor from a previous response.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List SIP TrunksAGENTPHONE_LIST_SIP_TRUNKSAcciónList SIP trunks and their routing, transfer, encryption, URI, and IP configuration. Passwords and credential objects are omitted from results.
AGENTPHONE_LIST_SIP_TRUNKSAcciónList SIP trunks and their routing, transfer, encryption, URI, and IP configuration. Passwords and credential objects are omitted from results.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Sub-AccountsAGENTPHONE_LIST_SUB_ACCOUNTSAcciónList isolated sub-accounts with optional recent activity statistics.
AGENTPHONE_LIST_SUB_ACCOUNTSAcciónList isolated sub-accounts with optional recent activity statistics.
Parámetros de entrada
limitintegerMaximum sub-accounts to return on this page (1-100).
cursorstringOpaque continuation cursor from a previous response; omit for the first page.
stats_daysintegerInclude usage statistics for this many recent days (1-90).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List VoicesAGENTPHONE_LIST_VOICESAcciónList a bounded prefix of voice IDs and metadata available for hosted AgentPhone agents. AgentPhone does not paginate this catalog; total and truncated indicate when the bounded response omits additional voices.
AGENTPHONE_LIST_VOICESAcciónList a bounded prefix of voice IDs and metadata available for hosted AgentPhone agents. AgentPhone does not paginate this catalog; total and truncated indicate when the bounded response omits additional voices.
Parámetros de entrada
max_resultsintegerMaximum number of voices to include in the response (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Webhook DeliveriesAGENTPHONE_LIST_WEBHOOK_DELIVERIESAcciónList one page of account-wide deliveries or the bounded recent deliveries for one agent. Callback payloads, response bodies, signatures, and credentials are omitted.
AGENTPHONE_LIST_WEBHOOK_DELIVERIESAcciónList one page of account-wide deliveries or the bounded recent deliveries for one agent. Callback payloads, response bodies, signatures, and credentials are omitted.
Parámetros de entrada
hoursintegerAccount-only lookback window in hours (1-168).
limitintegerMaximum deliveries to return (1-100).
cursorstringAccount-only opaque continuation cursor; omit for the first page.
agent_idstringAgent ID whose recent deliveries to list; omit for account-wide deliveries.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List WhatsApp NumbersAGENTPHONE_LIST_WHATSAPP_NUMBERSAcciónList phone numbers available on a connected WhatsApp Business Account and show which are already connected to AgentPhone.
AGENTPHONE_LIST_WHATSAPP_NUMBERSAcciónList phone numbers available on a connected WhatsApp Business Account and show which are already connected to AgentPhone.
Parámetros de entrada
connection_idstringObligatorioAgentPhone WhatsApp connection ID from Get WhatsApp Status.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List WhatsApp TemplatesAGENTPHONE_LIST_WHATSAPP_TEMPLATESAcciónList and filter a connected WhatsApp Business Account's message templates, including their language variants and Meta approval status.
AGENTPHONE_LIST_WHATSAPP_TEMPLATESAcciónList and filter a connected WhatsApp Business Account's message templates, including their language variants and Meta approval status.
Parámetros de entrada
namestringFilter to one template name and all of its language variants.
statusstringenumFilter by Meta approval status.
APPROVEDPENDINGREJECTEDPAUSEDDISABLEDcategorystringenumFilter by Meta template category.
MARKETINGUTILITYAUTHENTICATIONlanguagestringFilter by Meta locale code, such as en_US.
connection_idstringObligatorioAgentPhone WhatsApp connection ID from Get WhatsApp Status.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Lookup NumbersAGENTPHONE_LOOKUP_NUMBERSAcciónLook up line type, country, and RCS intelligence before messaging up to 25 phone numbers. This is a paid operation that costs $0.009 per submitted number, and automatic retries are disabled to prevent duplicate charges.
AGENTPHONE_LOOKUP_NUMBERSAcciónLook up line type, country, and RCS intelligence before messaging up to 25 phone numbers. This is a paid operation that costs $0.009 per submitted number, and automatic retries are disabled to prevent duplicate charges.
Parámetros de entrada
phone_numbersstring[]ObligatorioOne to 25 E.164 phone numbers to inspect. AgentPhone bills $0.009 for every number submitted.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Place CallAGENTPHONE_PLACE_CALLAcciónImmediately place one externally visible, metered outbound telephone call from an AgentPhone agent to a consented destination. The recipient may be called and hear the configured greeting or agent. AgentPhone provides no idempotency key, so automatic HTTP retries are disabled. If a timeout, network failure, server error, or other ambiguous result occurs, inspect recent calls before deciding whether to call again to avoid duplicate calls and charges.
AGENTPHONE_PLACE_CALLAcciónImmediately place one externally visible, metered outbound telephone call from an AgentPhone agent to a consented destination. The recipient may be called and hear the configured greeting or agent. AgentPhone provides no idempotency key, so automatic HTTP retries are disabled. If a timeout, network failure, server error, or other ambiguous result occurs, inspect recent calls before deciding whether to call again to avoid duplicate calls and charges.
Parámetros de entrada
voicestringAgentPhone voice ID for this call; omit to use the agent's configured voice.
agent_idstringObligatorioAgentPhone agent ID that will conduct the outbound call.
to_numberstringObligatorioConsented destination in E.164 format. Calling this number immediately creates an externally visible, metered telephone call.
variablesobjectString values substituted into {{variable}} placeholders in the prompt and greeting. Requires system_prompt or a hosted-mode agent.
model_tierstringenumBuilt-in conversation model tier used when system_prompt is provided; omit to use the agent's configured tier.
turbobalancedmaxsystem_promptstringPer-call instructions for AgentPhone's built-in LLM. When provided, the built-in LLM handles the conversation instead of a webhook.
from_number_idstringAgentPhone number ID assigned to the agent and used as caller ID. Omit to use the agent's first assigned number.
initial_greetingstringGreeting spoken when the recipient answers. Pass an empty string to wait silently for the recipient to speak first.
disable_recordingbooleanSet true when audio-recording consent is absent. AgentPhone still captures a transcript even when audio recording is disabled.
call_screening_purposestringPurpose stated to an automated call screener.
call_screening_identitystringIdentity stated to an automated call screener. If only a screening purpose is supplied, AgentPhone uses the agent's name as the identity.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Provision NumberAGENTPHONE_PROVISION_NUMBERAcciónPurchase and provision an AgentPhone number, optionally choosing an area code and attaching an agent. This immediately incurs a charge and creates an ongoing recurring cost of at least $3 per month for the number.
AGENTPHONE_PROVISION_NUMBERAcciónPurchase and provision an AgentPhone number, optionally choosing an area code and attaching an agent. This immediately incurs a charge and creates an ongoing recurring cost of at least $3 per month for the number.
Parámetros de entrada
countrystringenumCountry for the new number. Submitting this request purchases a number and starts a recurring charge of at least $3 per month.
USCAagent_idstringAgentPhone agent ID to attach immediately after the number is purchased.
area_codestringPreferred three-digit area code. Inventory is not reserved by a prior search, so availability may change before purchase.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Refresh LocationsAGENTPHONE_REFRESH_LOCATIONSAcciónRequest one asynchronous refresh of account location data. This mutates provider refresh state but does not return coordinates; wait the returned interval before using Get Location, and do not poll aggressively.
AGENTPHONE_REFRESH_LOCATIONSAcciónRequest one asynchronous refresh of account location data. This mutates provider refresh state but does not return coordinates; wait the returned interval before using Get Location, and do not poll aggressively.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Refresh Supabase TokenAGENTPHONE_REFRESH_SUPABASE_TOKENAcciónRetrieve a valid Supabase credential server-side, refreshing AgentPhone's stored provider credential when needed. Returns only connection, refresh, availability, expiry, and project metadata; raw access tokens, refresh tokens, JWTs, and other credential fields are never returned.
AGENTPHONE_REFRESH_SUPABASE_TOKENAcciónRetrieve a valid Supabase credential server-side, refreshing AgentPhone's stored provider credential when needed. Returns only connection, refresh, availability, expiry, and project metadata; raw access tokens, refresh tokens, JWTs, and other credential fields are never returned.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Release NumberAGENTPHONE_RELEASE_NUMBERAcciónPERMANENTLY AND IRREVERSIBLY release an owned AgentPhone number from its upstream provider and mark it released. The number cannot be recovered, and future inbound and outbound use stops. Existing messages and conversation history remain for audit purposes. This also ends the number's recurring resource lifecycle. Automatic retries are disabled; after an ambiguous failure, retrieve the number and inspect its status before taking further action.
AGENTPHONE_RELEASE_NUMBERAcciónPERMANENTLY AND IRREVERSIBLY release an owned AgentPhone number from its upstream provider and mark it released. The number cannot be recovered, and future inbound and outbound use stops. Existing messages and conversation history remain for audit purposes. This also ends the number's recurring resource lifecycle. Automatic retries are disabled; after an ambiguous failure, retrieve the number and inspect its status before taking further action.
Parámetros de entrada
number_idstringObligatorioOwned AgentPhone number ID to release permanently. This cannot be undone, and the number cannot be recovered.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search Available NumbersAGENTPHONE_SEARCH_AVAILABLE_NUMBERSAcciónSearch unreserved US or Canadian phone-number inventory before provisioning a number. Results are live inventory and are not reserved.
AGENTPHONE_SEARCH_AVAILABLE_NUMBERSAcciónSearch unreserved US or Canadian phone-number inventory before provisioning a number. Results are live inventory and are not reserved.
Parámetros de entrada
citystringCity name; pair with state because support varies by account.
limitintegerMaximum number candidates to return (1-30).
statestringTwo-letter US state or Canadian province code.
countrystringenumCountry whose inventory to search.
USCAzip_codestringFive-digit ZIP code; provider support varies by account.
area_codestringThree-digit area code, the most broadly supported location filter.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send MessageAGENTPHONE_SEND_MESSAGEAcciónSend one externally visible and potentially billed SMS, MMS, iMessage, RCS-routed, or WhatsApp message. AgentPhone accepts the message for asynchronous delivery; acceptance does not guarantee delivery. This action has no idempotency key and disables automatic HTTP retries. After any timeout, network failure, server error, or other ambiguous result, inspect recent messages before deciding whether to send again to avoid duplicate messages and charges.
AGENTPHONE_SEND_MESSAGEAcciónSend one externally visible and potentially billed SMS, MMS, iMessage, RCS-routed, or WhatsApp message. AgentPhone accepts the message for asynchronous delivery; acceptance does not guarantee delivery. This action has no idempotency key and disables automatic HTTP retries. After any timeout, network failure, server error, or other ambiguous result, inspect recent messages before deciding whether to send again to avoid duplicate messages and charges.
Parámetros de entrada
bodystringObligatorioMessage text delivered to the recipient. Must be non-empty unless template or media_urls is supplied; for a WhatsApp template send, this is only a fallback label in message history.
buttonsstring[]Up to three WhatsApp reply-button labels, each at most 20 characters.
channelstringSet to whatsapp to override a dual-channel sender's normal transport. WhatsApp-only senders use WhatsApp automatically.
agent_idstringAgentPhone agent ID to associate with the outbound message.
templateobjectApproved WhatsApp template. Required outside the 24-hour customer service window.
list_menuobjectWhatsApp list-menu definition using simple options or structured sections.
number_idstringOwned AgentPhone sender number ID. Mutually exclusive with from_number.
to_numberstringOne phone number, email address, US short code, or existing iMessage group ID. Mutually exclusive with recipients.
media_urlsstring[]Public HTTPS URLs for media attached to the message. WhatsApp sends support one attachment; other channels may support multiple attachments.
recipientsstring[]Two or more phone numbers or email addresses for a new iMessage group. Mutually exclusive with to_number.
send_stylestringenumOptional expressive effect for an iMessage-capable sender.
celebrationfireworkslasersloveconfettiballoonsspotlightechoinvisiblegentleloudslamfrom_numberstringOwned sender phone number. Mutually exclusive with number_id.
call_to_actionobjectWhatsApp HTTPS link button displayed on an ordinary message.
reply_to_message_idstringParent message ID for an inline iMessage or WhatsApp reply.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send ReactionAGENTPHONE_SEND_REACTIONAcciónSend one externally visible iMessage tapback or supported custom emoji reaction to an existing message. SMS and other channels are unsupported. This action has no idempotency key and disables automatic HTTP retries; after any ambiguous failure, inspect the conversation before deciding whether to react again.
AGENTPHONE_SEND_REACTIONAcciónSend one externally visible iMessage tapback or supported custom emoji reaction to an existing message. SMS and other channels are unsupported. This action has no idempotency key and disables automatic HTTP retries; after any ambiguous failure, inspect the conversation before deciding whether to react again.
Parámetros de entrada
reactionstringObligatorioClassic tapback (love, like, dislike, laugh, emphasize, or question) or a custom emoji supported by the sender line and recipient device.
message_idstringObligatorioExisting iMessage message ID to react to.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send Typing IndicatorAGENTPHONE_SEND_TYPING_INDICATORAcciónShow a short-lived, externally visible typing indicator in a one-to-one or group iMessage conversation. It auto-expires after a few seconds and has no stop call. This is best-effort and may be silently dropped for inactive chats, non-iMessage recipients, or RCS-routed chats; an accepted response does not prove recipients observed it. Automatic retries are disabled to avoid duplicate signals.
AGENTPHONE_SEND_TYPING_INDICATORAcciónShow a short-lived, externally visible typing indicator in a one-to-one or group iMessage conversation. It auto-expires after a few seconds and has no stop call. This is best-effort and may be silently dropped for inactive chats, non-iMessage recipients, or RCS-routed chats; an accepted response does not prove recipients observed it. Automatic retries are disabled to avoid duplicate signals.
Parámetros de entrada
conversation_idstringObligatorioActive one-to-one or group iMessage conversation ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send VerificationAGENTPHONE_SEND_VERIFICATIONAcciónSend an external SMS containing a non-configurable six-digit code that expires after 10 minutes and allows at most three checks. Sending immediately incurs AgentPhone's standard outbound SMS rate for the destination country. A later successful check costs an additional $0.05. Only send with authorization for the destination. After an ambiguous failure, do not blindly resend because the recipient may already have received and the account may already have paid for it.
AGENTPHONE_SEND_VERIFICATIONAcciónSend an external SMS containing a non-configurable six-digit code that expires after 10 minutes and allows at most three checks. Sending immediately incurs AgentPhone's standard outbound SMS rate for the destination country. A later successful check costs an additional $0.05. Only send with authorization for the destination. After an ambiguous failure, do not blindly resend because the recipient may already have received and the account may already have paid for it.
Parámetros de entrada
phone_numberstringObligatorioDestination phone number in E.164 format. Sending the code incurs the standard outbound SMS rate for its country.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Agent Number AssignmentAGENTPHONE_SET_AGENT_NUMBER_ASSIGNMENTAcciónAttach an owned phone number to an agent or detach it, changing which agent handles that number.
AGENTPHONE_SET_AGENT_NUMBER_ASSIGNMENTAcciónAttach an owned phone number to an agent or detach it, changing which agent handles that number.
Parámetros de entrada
agent_idstringObligatorioAgent that should gain or lose the number.
number_idstringObligatorioOwned AgentPhone number ID to attach or detach.
assignmentstringObligatorioenumWhether to attach or detach the number.
attachdetach
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Contact CardAGENTPHONE_SET_CONTACT_CARDAcciónCreate or fully replace the recipient-visible iMessage contact card for an owned number. This PUT sends all four card fields; omitted fields are sent as null and therefore are not preserved from the previous card.
AGENTPHONE_SET_CONTACT_CARDAcciónCreate or fully replace the recipient-visible iMessage contact card for an owned number. This PUT sends all four card fields; omitted fields are sent as null and therefore are not preserved from the previous card.
Parámetros de entrada
last_namestringLast name for the replacement card. Omit or pass null to leave it unset.
number_idstringObligatorioOwned AgentPhone number ID whose iMessage contact card to replace.
avatar_urlstringPublic avatar URL for the replacement card. Omit or pass null for no avatar.
first_namestringFirst name for the replacement card. Omit or pass null to leave it unset.
display_namestringDisplay name for the replacement card. Omit or pass null to leave it unset.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Start Supabase ConnectionAGENTPHONE_START_SUPABASE_CONNECTIONAcciónCreate a one-shot, short-lived Supabase OAuth bootstrap and return a secret connect URL. A human must promptly open the URL in a browser and complete Supabase authorization; this action does not complete OAuth itself, and the code or URL may expire before use.
AGENTPHONE_START_SUPABASE_CONNECTIONAcciónCreate a one-shot, short-lived Supabase OAuth bootstrap and return a secret connect URL. A human must promptly open the URL in a browser and complete Supabase authorization; this action does not complete OAuth itself, and the code or URL may expire before use.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Submit A2P RegistrationAGENTPHONE_SUBMIT_A2P_REGISTRATIONAcciónSubmit legal business, campaign, consent, and sample-message information for external US carrier A2P 10DLC review. This immediately charges a one-time, registration fee: $25 for sole_proprietor or standard_brand, or $70 for high_volume. Approval typically takes 7-10 business days and is not guaranteed. Only submit with authorization to provide the exact legal and campaign information. After an ambiguous failure, check registration status before any new submission to avoid a duplicate charge or carrier submission.
AGENTPHONE_SUBMIT_A2P_REGISTRATIONAcciónSubmit legal business, campaign, consent, and sample-message information for external US carrier A2P 10DLC review. This immediately charges a one-time, registration fee: $25 for sole_proprietor or standard_brand, or $70 for high_volume. Approval typically takes 7-10 business days and is not guaranteed. Only submit with authorization to provide the exact legal and campaign information. After an ambiguous failure, check registration status before any new submission to avoid a duplicate charge or carrier submission.
Parámetros de entrada
einstringSensitive EIN or tax ID required for standard_brand and high_volume. It is sent only to AgentPhone for carrier registration and is never returned.
citystringObligatorioBusiness city.
emailstringObligatorioRegistration contact's email address.
statestringObligatorioBusiness state or region.
volumestringenumExpected message volume.
lowhighcountrystringBusiness country code.
includesstring[]Content types included in campaign messages.
industrystringBusiness industry, such as technology, retail, or healthcare.
zip_codestringObligatorioBusiness postal code.
last_namestringObligatorioRegistration contact's last name.
use_casesstring[]ObligatorioOne to five specific carrier campaign use cases.
brand_namestringPublic-facing brand name when different from business_name.
first_namestringObligatorioRegistration contact's first name.
descriptionstringObligatorioWhat the business does, who it messages, and what messages it sends.
link_samplestringExample URL when campaign messages contain links.
website_urlstringBusiness website URL.
consent_flowstringObligatorioHow recipients explicitly opt in to receive the campaign's messages.
phone_numberstringObligatorioRegistration contact's phone number in E.164 format.
business_namestringLegal business name; required for standard_brand and high_volume.
contact_titlestringenumRegistration contact's role; required for standard_brand and high_volume.
ceocfoctocoovpgmdirectorotherstreet_addressstringObligatorioPrimary business street address.
message_samplesstring[]ObligatorioTwo to five 20-1024 character examples that include the brand name.
planned_numbersintegerNumber of phone numbers planned for this campaign.
business_regionsstring[]Regions where the business operates.
opt_in_image_urlstringObligatorioPublic HTTPS URL to a PNG, JPG, WEBP, or GIF screenshot of the opt-in flow, no larger than 2 MB.
street_address_2stringSecondary business address line.
organization_typestringenumLegal organization type; required for standard_brand and high_volume.
sole_proprietorprivate_corporationpublic_corporationllcpartnershipnon_profitco_opgovernmentregistration_typestringObligatorioenumRegistration tier: sole_proprietor costs $25, standard_brand costs $25, and high_volume costs $70 and includes external brand vetting.
sole_proprietorstandard_brandhigh_volumecreate_sub_accountbooleanWhether to create a dedicated sub-account for this campaign. The fee is always charged to the parent account.
privacy_policy_urlstringPrivacy policy URL; required for standard_brand and high_volume.
contact_title_otherstringCustom contact role, required when contact_title is other.
terms_of_service_urlstringTerms-of-service URL; required for standard_brand and high_volume.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Test WebhookAGENTPHONE_TEST_WEBHOOKAcciónSend one externally observable fake message payload to the account webhook or an agent override. This performs real callback I/O and is never retried automatically.
AGENTPHONE_TEST_WEBHOOKAcciónSend one externally observable fake message payload to the account webhook or an agent override. This performs real callback I/O and is never retried automatically.
Parámetros de entrada
targetstringenumSend through the account webhook or one agent's webhook override.
accountagentagent_idstringFor target=agent, the required agent webhook owner. For target=account, an optional agent ID to include in the fake message payload.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update A2P RegistrationAGENTPHONE_UPDATE_A2P_REGISTRATIONAcciónSubmit selected changes to an existing A2P 10DLC registration for external carrier review. This endpoint charges no registration fee. An approved campaign keeps sending under its current approval while changes are reviewed, so acceptance does not mean the changes are already approved. Only send exact, authorized legal and campaign updates. After an ambiguous failure, read the registration details before resubmitting.
AGENTPHONE_UPDATE_A2P_REGISTRATIONAcciónSubmit selected changes to an existing A2P 10DLC registration for external carrier review. This endpoint charges no registration fee. An approved campaign keeps sending under its current approval while changes are reviewed, so acceptance does not mean the changes are already approved. Only send exact, authorized legal and campaign updates. After an ambiguous failure, read the registration details before resubmitting.
Parámetros de entrada
volumestringenumReplacement expected message volume.
lowhighincludesstring[]Replacement campaign content-type list.
use_casesstring[]Replacement list of one to five carrier campaign use cases.
brand_namestringReplacement public-facing brand name.
descriptionstringReplacement description of the business and its messaging activity.
link_samplestringReplacement example URL for messages that contain links.
website_urlstringReplacement business website URL.
consent_flowstringReplacement explanation of how recipients opt in.
business_namestringReplacement legal business name.
message_samplesstring[]Replacement set of two to five brand-bearing message examples.
opt_in_image_urlstringReplacement public HTTPS screenshot URL documenting the opt-in flow.
privacy_policy_urlstringReplacement privacy policy URL.
terms_of_service_urlstringReplacement terms-of-service URL.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update AgentAGENTPHONE_UPDATE_AGENTAcciónUpdate one or more selected fields of an existing voice agent. Supply at least one non-null change; null and omitted fields remain unchanged.
AGENTPHONE_UPDATE_AGENTAcciónUpdate one or more selected fields of an existing voice agent. Supply at least one non-null change; null and omitted fields remain unchanged.
Parámetros de entrada
namestringNew agent name.
voicestringReplacement provider voice ID.
agent_idstringObligatorioAgentPhone agent ID to update.
languagestringNew supported BCP-47 speech locale.
stt_modestringenumNew speech-to-text mode.
fastaccuratemodel_tierstringenumNew hosted model tier.
turbobalancedmaxvoice_modestringenumNew execution mode; switching to hosted re-provisions the voice agent.
webhookhosteddescriptionstringNew agent description. Omit null values; the API ignores them.
voice_speednumberNew speech speed from 0.5 to 2.0.
custom_toolsobject[]Replacement set of up to 20 hosted tools; [] clears all tools and omission preserves them.
ambient_soundstringenumNew background ambience.
noneofficecoffee-shopoutdoorbegin_messagestringReplacement opening message.
system_promptstringReplacement hosted-mode system prompt.
denoising_modestringenumNew denoising strategy.
noise-cancellationnoise-and-background-speech-cancellationmax_silence_msintegerNew silence timeout from 10000 to 3600000 milliseconds.
transfer_numberstringReplacement E.164 transfer destination.
enable_messagingbooleanEnable or disable hosted in-call messaging.
voicemail_messagestringReplacement voicemail message.
enable_backchannelbooleanEnable or disable short spoken acknowledgements.
call_screening_purposestringReplacement screening purpose.
call_screening_identitystringReplacement screening identity.
interruption_sensitivitynumberNew interruption sensitivity from 0.0 to 1.0.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Chat BackgroundAGENTPHONE_UPDATE_CHAT_BACKGROUNDAcciónSet or remove the recipient-visible custom background for an iMessage chat. Either operation can permanently replace the prior background, and this API does not return the old image needed to restore it. Setting is a safe no-op when the requested image is already set; removing a default background is also a no-op. Recipients on iOS before version 18 silently see the default background. Automatic retries are disabled; reconcile the chat before another update after ambiguity.
AGENTPHONE_UPDATE_CHAT_BACKGROUNDAcciónSet or remove the recipient-visible custom background for an iMessage chat. Either operation can permanently replace the prior background, and this API does not return the old image needed to restore it. Setting is a safe no-op when the requested image is already set; removing a default background is also a no-op. Recipients on iOS before version 18 silently see the default background. Automatic retries are disabled; reconcile the chat before another update after ambiguity.
Parámetros de entrada
image_urlstringRequired for operation=set and forbidden for remove. Public HTTPS URL of a JPEG, PNG, GIF, WebP, or HEIC image no larger than 10 MB.
operationstringObligatorioenumSet a new custom image or remove the current custom background.
setremoveconversation_idstringObligatorioOne-to-one or group iMessage conversation ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update ContactAGENTPHONE_UPDATE_CONTACTAcciónUpdate explicitly supplied fields of an existing AgentPhone contact.
AGENTPHONE_UPDATE_CONTACTAcciónUpdate explicitly supplied fields of an existing AgentPhone contact.
Parámetros de entrada
namestringReplacement contact name.
emailstringReplacement email address. Pass null explicitly to clear it.
notesstringReplacement notes. Pass null explicitly to clear them.
contact_idstringObligatorioExisting contact ID to update.
phone_numberstringReplacement phone number, normalized to E.164 by AgentPhone.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update ConversationAGENTPHONE_UPDATE_CONVERSATIONAcciónReplace a conversation's stored agent context and/or rename an iMessage group. Only explicitly supplied fields change; metadata replaces the entire stored object, and group_name also renames the underlying iMessage thread.
AGENTPHONE_UPDATE_CONVERSATIONAcciónReplace a conversation's stored agent context and/or rename an iMessage group. Only explicitly supplied fields change; metadata replaces the entire stored object, and group_name also renames the underlying iMessage thread.
Parámetros de entrada
metadataobjectReplacement custom context surfaced to webhooks as conversationState. Pass null explicitly to clear it; omitting it leaves it unchanged.
group_namestringReplacement display name for an iMessage group and its underlying thread. Pass null explicitly to clear it; omit for 1:1 chats or to leave it unchanged.
conversation_idstringObligatorioExisting conversation ID to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update SIP TrunkAGENTPHONE_UPDATE_SIP_TRUNKAcciónUpdate selected display, transfer, or inbound origination settings on an existing SIP trunk. Supply at least one non-null change. Passwords and credential objects are omitted from the result.
AGENTPHONE_UPDATE_SIP_TRUNKAcciónUpdate selected display, transfer, or inbound origination settings on an existing SIP trunk. Supply at least one non-null change. Passwords and credential objects are omitted from the result.
Parámetros de entrada
namestringReplacement display name, up to 64 characters.
trunk_idstringObligatorioExisting AgentPhone SIP trunk ID.
transfersstringenumWhich transfers the trunk permits.
allsipnoneorigination_urisobject[]Complete replacement list of inbound SIP destinations. An empty list clears them and is allowed only when no numbers are attached.
transfer_caller_idstringenumCaller ID presented on a transferred call leg.
transfereetransferor
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Sub-AccountAGENTPHONE_UPDATE_SUB_ACCOUNTAcciónRename an existing AgentPhone sub-account.
AGENTPHONE_UPDATE_SUB_ACCOUNTAcciónRename an existing AgentPhone sub-account.
Parámetros de entrada
namestringObligatorioNew name for the sub-account.
sub_account_idstringObligatorioExisting sub-account ID to rename.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not