Volver al catálogo

AgentPhone

agentphone

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

Acciones
76
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Check 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

  • codestringObligatorio

    Sensitive six-digit code entered by the recipient. It is sent only to AgentPhone for this check and is never returned.

  • verification_idstringObligatorio

    Verification ID returned by SEND_VERIFICATION.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Complete WhatsApp ConnectionAGENTPHONE_COMPLETE_WHATSAPP_CONNECTIONAcción

Complete 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

  • codestringObligatorio

    Short-lived exchange code returned by Meta Embedded Signup. The code is consumed to authorize and store the WhatsApp connection.

  • waba_idstring

    WhatsApp Business Account ID from the Embedded Signup message event. Omit it when AgentPhone should discover the WABA from the exchanged code.

  • agent_idstring

    AgentPhone agent ID to attach to the onboarded WhatsApp number.

  • business_idstring

    Meta business portfolio ID returned by Embedded Signup.

  • phone_number_idstring

    Meta business phone-number ID to register and onboard. Omit it for a WABA-only connection.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Configure WebhookAGENTPHONE_CONFIGURE_WEBHOOKAcción

Create 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

  • urlstringObligatoriouri

    Callback URL to create or update (maximum 2083 characters).

  • timeoutinteger

    Webhook request timeout accepted by AgentPhone; omit to keep the provider default.

  • agent_idstring

    Agent ID whose override to configure; omit to configure the account webhook.

  • context_limitinteger

    Recent messages included in each payload (0-50); omit for the provider default of 10.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Connect WhatsApp NumberAGENTPHONE_CONNECT_WHATSAPP_NUMBERAcción

Register 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_idstring

    AgentPhone agent ID to attach to the WhatsApp number after registration.

  • connection_idstringObligatorio

    AgentPhone WhatsApp connection ID for the already-connected WABA.

  • phone_number_idstringObligatorio

    Meta 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AgentAGENTPHONE_CREATE_AGENTAcción

Create 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

  • namestringObligatorio

    Human-readable agent name.

  • voicestring

    AgentPhone voice ID selected for the agent.

  • languagestring

    Supported BCP-47 locale used for speech recognition and pronunciation.

  • stt_modestringenum

    Speech-to-text preference: fast favors latency and accurate favors accuracy.

    fastaccurate
  • model_tierstringenum

    Hosted model quality and latency tier.

    turbobalancedmax
  • voice_modestringenum

    How the agent handles conversations: webhook forwards transcripts to your service, while hosted uses AgentPhone's built-in LLM.

    webhookhosted
  • descriptionstring

    Optional description of the agent's purpose.

  • voice_speednumber

    Speech speed multiplier from 0.5 to 2.0.

  • custom_toolsobject[]

    Up to 20 HTTPS functions available to a hosted agent during calls.

  • ambient_soundstringenum

    Background ambience played between conversational turns.

    noneofficecoffee-shopoutdoor
  • begin_messagestring

    Opening message spoken by a hosted agent.

  • system_promptstring

    Instructions for the built-in LLM when voice_mode is hosted.

  • denoising_modestringenum

    Audio denoising strategy applied to caller audio.

    noise-cancellationnoise-and-background-speech-cancellation
  • max_silence_msinteger

    Caller silence duration in milliseconds before the call is ended.

  • transfer_numberstring

    E.164 destination used when the agent transfers a call.

  • enable_messagingboolean

    Whether a hosted agent may send and read messages during calls.

  • voicemail_messagestring

    Message to leave when voicemail is detected.

  • enable_backchannelboolean

    Whether the agent uses short acknowledgements while the caller speaks.

  • call_screening_purposestring

    Purpose stated to an automated call screener.

  • call_screening_identitystring

    Identity stated to an automated call screener.

  • interruption_sensitivitynumber

    How easily caller audio interrupts the agent, from 0.0 to 1.0.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create ContactAGENTPHONE_CREATE_CONTACTAcción

Create an AgentPhone contact from a phone number and name.

Parámetros de entrada

  • namestringObligatorio

    Contact name.

  • emailstring

    Contact email address.

  • notesstring

    Free-form notes about the contact.

  • phone_numberstringObligatorio

    Contact phone number, normalized to E.164 by AgentPhone.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create SIP TrunkAGENTPHONE_CREATE_SIP_TRUNKAcción

Create 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Sub-AccountAGENTPHONE_CREATE_SUB_ACCOUNTAcción

Create an AgentPhone sub-account with the supplied name.

Parámetros de entrada

  • namestringObligatorio

    Name for the new sub-account.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Web CallAGENTPHONE_CREATE_WEB_CALLAcción

Create 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_idstringObligatorio

    AgentPhone agent ID that will handle the browser call.

  • metadataobject

    Optional application metadata to associate with the web call.

  • variablesobject

    Optional runtime variables made available to the selected agent.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create WhatsApp TemplateAGENTPHONE_CREATE_WHATSAPP_TEMPLATEAcción

Submit 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

  • namestringObligatorio

    Unique template name on the WABA, using only lowercase letters, digits, and underscores.

  • categorystringObligatorioenum

    Requested Meta category. Meta may recategorize authored content.

    MARKETINGUTILITYAUTHENTICATION
  • languagestring

    Meta locale code for this template language variant.

  • componentsarray

    Authored 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_idstringObligatorio

    AgentPhone WhatsApp connection ID for the target WABA.

  • parameter_formatstringenum

    Placeholder style for authored components: POSITIONAL for {{1}} or NAMED for {{first_name}}.

    POSITIONALNAMED
  • library_template_namestring

    Meta Template Library slug. Use this instead of components; an unchanged library template can skip review and become usable immediately.

  • library_template_body_inputsobject

    Optional 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete AgentAGENTPHONE_DELETE_AGENTAcción

Permanently delete an AgentPhone agent. Associated phone numbers, conversations, and calls remain, but their agent reference is cleared.

Parámetros de entrada

  • agent_idstringObligatorio

    AgentPhone agent ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete ContactAGENTPHONE_DELETE_CONTACTAcción

Permanently 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_idstringObligatorio

    ID of the saved contact to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Contact CardAGENTPHONE_DELETE_CONTACT_CARDAcción

Permanently remove the recipient-visible iMessage contact card from an owned AgentPhone number. The number itself is not deleted.

Parámetros de entrada

  • number_idstringObligatorio

    Owned AgentPhone number ID whose iMessage contact card to remove.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete SIP TrunkAGENTPHONE_DELETE_SIP_TRUNKAcción

Permanently delete a SIP trunk, remove its upstream routing, and soft-delete its local record. Detach dependent numbers first.

Parámetros de entrada

  • trunk_idstringObligatorio

    SIP trunk ID to permanently delete after dependent numbers have been detached.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Sub-AccountAGENTPHONE_DELETE_SUB_ACCOUNTAcción

Permanently 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_idstringObligatorio

    Sub-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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete WebhookAGENTPHONE_DELETE_WEBHOOKAcción

Delete 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_idstring

    Agent ID whose override to delete; omit to delete the account webhook.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete WhatsApp TemplateAGENTPHONE_DELETE_WHATSAPP_TEMPLATEAcción

Permanently 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

  • namestringObligatorio

    Template name to delete. Meta locks this name against reuse for 30 days after deletion.

  • hsm_idstring

    Meta template ID that narrows deletion to one language variant. Omit only when every language variant under name should be permanently deleted.

  • connection_idstringObligatorio

    AgentPhone WhatsApp connection ID for the target WABA.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Disconnect SupabaseAGENTPHONE_DISCONNECT_SUPABASEAcción

Permanently 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Disconnect WhatsAppAGENTPHONE_DISCONNECT_WHATSAPPAcción

Permanently 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_idstringObligatorio

    AgentPhone WhatsApp connection ID to disconnect.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Download Call RecordingAGENTPHONE_DOWNLOAD_CALL_RECORDINGAcción

Download 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_idstringObligatorio

    Authorized 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

End CallAGENTPHONE_END_CALLAcción

Immediately 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_idstringObligatorio

    Active AgentPhone call ID to terminate immediately.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get AgentAGENTPHONE_GET_AGENTAcción

Get 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_idstringObligatorio

    Existing AgentPhone agent ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get CallAGENTPHONE_GET_CALLAcción

Get full status, timing, metadata, and transcript details for one AgentPhone call by ID.

Parámetros de entrada

  • call_idstringObligatorio

    AgentPhone call ID to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Call TranscriptAGENTPHONE_GET_CALL_TRANSCRIPTAcción

Read the complete stored transcript for a completed or in-progress call. Transcript content may be sensitive.

Parámetros de entrada

  • call_idstringObligatorio

    Call whose complete ordered transcript to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Call Transcript EventsAGENTPHONE_GET_CALL_TRANSCRIPT_EVENTSAcción

Download 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_idstringObligatorio

    Completed AgentPhone call whose transcript SSE event replay to download. Live and non-terminal calls are rejected.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ContactAGENTPHONE_GET_CONTACTAcción

Get one saved AgentPhone contact by its stable contact ID.

Parámetros de entrada

  • contact_idstringObligatorio

    Existing AgentPhone contact ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Contact CapabilitiesAGENTPHONE_GET_CONTACT_CAPABILITIESAcción

Run 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_numberstringObligatorio

    Phone number to check for current messaging reachability; E.164 is preferred.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Contact CardAGENTPHONE_GET_CONTACT_CARDAcción

Get the recipient-visible iMessage contact card currently configured for one owned AgentPhone number.

Parámetros de entrada

  • number_idstringObligatorio

    Owned AgentPhone number ID whose iMessage contact card to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ConversationAGENTPHONE_GET_CONVERSATIONAcción

Get one conversation by ID with participants, channel state, capabilities, and up to 100 recent messages.

Parámetros de entrada

  • message_limitinteger

    Maximum recent messages to include (up to 100). Use LIST_MESSAGES for paginated message history.

  • conversation_idstringObligatorio

    Existing AgentPhone conversation ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get LocationAGENTPHONE_GET_LOCATIONAcción

Get 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_numberstringObligatorio

    Known, consented phone number whose current provider location to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get NumberAGENTPHONE_GET_NUMBERAcción

Get one owned AgentPhone number by ID, including active or released records, with its status and channel configuration.

Parámetros de entrada

  • number_idstringObligatorio

    AgentPhone number ID, including the ID of a released number.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Registration DetailsAGENTPHONE_GET_REGISTRATION_DETAILSAcción

Read 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Registration StatusAGENTPHONE_GET_REGISTRATION_STATUSAcción

Read 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get SIP TrunkAGENTPHONE_GET_SIP_TRUNKAcción

Get 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_idstringObligatorio

    Existing AgentPhone SIP trunk ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Supabase StatusAGENTPHONE_GET_SUPABASE_STATUSAcción

Check 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get UsageAGENTPHONE_GET_USAGEAcción

Get 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Usage BreakdownAGENTPHONE_GET_USAGE_BREAKDOWNAcción

Break 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

  • periodstringenum

    Current calendar period. Required for agent and invalid for number.

    weekmonthyear
  • group_bystringObligatorioenum

    Breakdown dimension: owned phone number or agent.

    numberagent
  • timezonestring

    IANA timezone used to establish agent period boundaries, such as America/New_York. Valid only for agent breakdowns.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Usage TrendsAGENTPHONE_GET_USAGE_TRENDSAcción

Get 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

  • periodsinteger

    Number of periods to return. Daily defaults to 30 and allows 1-365; monthly defaults to 6 and allows 1-24.

  • granularitystringObligatorioenum

    Group usage into daily or monthly time-series periods.

    dailymonthly

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get WebhookAGENTPHONE_GET_WEBHOOKAcción

Get the account webhook or one agent's override without exposing its signing secret.

Parámetros de entrada

  • agent_idstring

    Agent ID whose webhook override to read; omit to read the account webhook.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Webhook Delivery StatsAGENTPHONE_GET_WEBHOOK_DELIVERY_STATSAcción

Get detailed recent webhook delivery health or lightweight all-time aggregate counts.

Parámetros de entrada

  • hoursinteger

    Recent lookback in hours (1-168); omit for 24. Not valid for all_time.

  • rangestringenum

    Use recent for a bounded hourly breakdown or all_time for aggregate counts.

    recentall_time

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get WhatsApp StatusAGENTPHONE_GET_WHATSAPP_STATUSAcción

Inspect 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List AgentsAGENTPHONE_LIST_AGENTSAcción

List AI voice agents and their current voice, mode, configuration, and attached numbers.

Parámetros de entrada

  • limitinteger

    Maximum agents to return in this page (1-100).

  • cursorstring

    Opaque continuation cursor from a previous response; omit for the first page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List CallsAGENTPHONE_LIST_CALLSAcción

List 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

  • limitinteger

    Maximum calls to return on this page (1-100).

  • cursorstring

    Opaque continuation cursor from a previous response; omit for the first page.

  • searchstring

    Match text in the from or to phone number.

  • statusstringenum

    Filter by call status.

    completedin-progressfailed
  • agent_idstring

    AgentPhone agent ID whose calls to list; mutually exclusive with number_id.

  • call_typestringenum

    Filter by PSTN or browser web call.

    pstnweb
  • directionstringenum

    Filter by call direction.

    inboundoutbound
  • number_idstring

    Owned AgentPhone number ID whose calls to list; mutually exclusive with agent_id.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ContactsAGENTPHONE_LIST_CONTACTSAcción

Search and list saved contacts used in messaging workflows.

Parámetros de entrada

  • limitinteger

    Maximum contacts to return on this page (1-200). Repeat the same value when continuing with a cursor.

  • cursorstring

    Opaque continuation cursor from a previous response. Omit for the first page; when the first request used a non-default limit, repeat that limit.

  • searchstring

    Search contact names, phone numbers, or other indexed contact text.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ConversationsAGENTPHONE_LIST_CONVERSATIONSAcción

List account-wide or agent-scoped messaging conversations with participants, channels, latest activity, and message counts.

Parámetros de entrada

  • limitinteger

    Maximum conversations to return on this page (1-100).

  • cursorstring

    Opaque continuation cursor from a previous response; omit for the first page.

  • agent_idstring

    AgentPhone agent ID whose conversations to list; omit for the account.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List MessagesAGENTPHONE_LIST_MESSAGESAcción

Read one newest-first page of message history for either a conversation or an owned phone number.

Parámetros de entrada

  • afterstring

    ISO 8601 timestamp; return messages newer than this time.

  • limitinteger

    Maximum messages to return on this page (1-200).

  • beforestring

    ISO 8601 timestamp; return messages older than this time.

  • cursorstring

    Opaque continuation cursor from a previous response. Do not combine it with before or after.

  • number_idstring

    Owned number whose messages to read; provide exactly one selector.

  • conversation_idstring

    Conversation whose messages to read; provide exactly one selector.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List NumbersAGENTPHONE_LIST_NUMBERSAcción

List owned AgentPhone numbers with routing, agent assignment, SMS registration, and channel status.

Parámetros de entrada

  • limitinteger

    Maximum numbers to return on this page (1-100).

  • cursorstring

    Opaque continuation cursor from a previous response.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List SIP TrunksAGENTPHONE_LIST_SIP_TRUNKSAcción

List 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Sub-AccountsAGENTPHONE_LIST_SUB_ACCOUNTSAcción

List isolated sub-accounts with optional recent activity statistics.

Parámetros de entrada

  • limitinteger

    Maximum sub-accounts to return on this page (1-100).

  • cursorstring

    Opaque continuation cursor from a previous response; omit for the first page.

  • stats_daysinteger

    Include usage statistics for this many recent days (1-90).

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List VoicesAGENTPHONE_LIST_VOICESAcción

List 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_resultsinteger

    Maximum number of voices to include in the response (1-100).

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Webhook DeliveriesAGENTPHONE_LIST_WEBHOOK_DELIVERIESAcción

List 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

  • hoursinteger

    Account-only lookback window in hours (1-168).

  • limitinteger

    Maximum deliveries to return (1-100).

  • cursorstring

    Account-only opaque continuation cursor; omit for the first page.

  • agent_idstring

    Agent ID whose recent deliveries to list; omit for account-wide deliveries.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List WhatsApp NumbersAGENTPHONE_LIST_WHATSAPP_NUMBERSAcción

List phone numbers available on a connected WhatsApp Business Account and show which are already connected to AgentPhone.

Parámetros de entrada

  • connection_idstringObligatorio

    AgentPhone WhatsApp connection ID from Get WhatsApp Status.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List WhatsApp TemplatesAGENTPHONE_LIST_WHATSAPP_TEMPLATESAcción

List and filter a connected WhatsApp Business Account's message templates, including their language variants and Meta approval status.

Parámetros de entrada

  • namestring

    Filter to one template name and all of its language variants.

  • statusstringenum

    Filter by Meta approval status.

    APPROVEDPENDINGREJECTEDPAUSEDDISABLED
  • categorystringenum

    Filter by Meta template category.

    MARKETINGUTILITYAUTHENTICATION
  • languagestring

    Filter by Meta locale code, such as en_US.

  • connection_idstringObligatorio

    AgentPhone WhatsApp connection ID from Get WhatsApp Status.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Lookup NumbersAGENTPHONE_LOOKUP_NUMBERSAcción

Look 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[]Obligatorio

    One to 25 E.164 phone numbers to inspect. AgentPhone bills $0.009 for every number submitted.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Place CallAGENTPHONE_PLACE_CALLAcción

Immediately 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

  • voicestring

    AgentPhone voice ID for this call; omit to use the agent's configured voice.

  • agent_idstringObligatorio

    AgentPhone agent ID that will conduct the outbound call.

  • to_numberstringObligatorio

    Consented destination in E.164 format. Calling this number immediately creates an externally visible, metered telephone call.

  • variablesobject

    String values substituted into {{variable}} placeholders in the prompt and greeting. Requires system_prompt or a hosted-mode agent.

  • model_tierstringenum

    Built-in conversation model tier used when system_prompt is provided; omit to use the agent's configured tier.

    turbobalancedmax
  • system_promptstring

    Per-call instructions for AgentPhone's built-in LLM. When provided, the built-in LLM handles the conversation instead of a webhook.

  • from_number_idstring

    AgentPhone number ID assigned to the agent and used as caller ID. Omit to use the agent's first assigned number.

  • initial_greetingstring

    Greeting spoken when the recipient answers. Pass an empty string to wait silently for the recipient to speak first.

  • disable_recordingboolean

    Set true when audio-recording consent is absent. AgentPhone still captures a transcript even when audio recording is disabled.

  • call_screening_purposestring

    Purpose stated to an automated call screener.

  • call_screening_identitystring

    Identity 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Provision NumberAGENTPHONE_PROVISION_NUMBERAcción

Purchase 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

  • countrystringenum

    Country for the new number. Submitting this request purchases a number and starts a recurring charge of at least $3 per month.

    USCA
  • agent_idstring

    AgentPhone agent ID to attach immediately after the number is purchased.

  • area_codestring

    Preferred three-digit area code. Inventory is not reserved by a prior search, so availability may change before purchase.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Refresh LocationsAGENTPHONE_REFRESH_LOCATIONSAcción

Request 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Refresh Supabase TokenAGENTPHONE_REFRESH_SUPABASE_TOKENAcción

Retrieve 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Release NumberAGENTPHONE_RELEASE_NUMBERAcción

PERMANENTLY 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_idstringObligatorio

    Owned AgentPhone number ID to release permanently. This cannot be undone, and the number cannot be recovered.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Search Available NumbersAGENTPHONE_SEARCH_AVAILABLE_NUMBERSAcción

Search unreserved US or Canadian phone-number inventory before provisioning a number. Results are live inventory and are not reserved.

Parámetros de entrada

  • citystring

    City name; pair with state because support varies by account.

  • limitinteger

    Maximum number candidates to return (1-30).

  • statestring

    Two-letter US state or Canadian province code.

  • countrystringenum

    Country whose inventory to search.

    USCA
  • zip_codestring

    Five-digit ZIP code; provider support varies by account.

  • area_codestring

    Three-digit area code, the most broadly supported location filter.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Send MessageAGENTPHONE_SEND_MESSAGEAcción

Send 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

  • bodystringObligatorio

    Message 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.

  • channelstring

    Set to whatsapp to override a dual-channel sender's normal transport. WhatsApp-only senders use WhatsApp automatically.

  • agent_idstring

    AgentPhone agent ID to associate with the outbound message.

  • templateobject

    Approved WhatsApp template. Required outside the 24-hour customer service window.

  • list_menuobject

    WhatsApp list-menu definition using simple options or structured sections.

  • number_idstring

    Owned AgentPhone sender number ID. Mutually exclusive with from_number.

  • to_numberstring

    One 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_stylestringenum

    Optional expressive effect for an iMessage-capable sender.

    celebrationfireworkslasersloveconfettiballoonsspotlightechoinvisiblegentleloudslam
  • from_numberstring

    Owned sender phone number. Mutually exclusive with number_id.

  • call_to_actionobject

    WhatsApp HTTPS link button displayed on an ordinary message.

  • reply_to_message_idstring

    Parent message ID for an inline iMessage or WhatsApp reply.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Send ReactionAGENTPHONE_SEND_REACTIONAcción

Send 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

  • reactionstringObligatorio

    Classic tapback (love, like, dislike, laugh, emphasize, or question) or a custom emoji supported by the sender line and recipient device.

  • message_idstringObligatorio

    Existing iMessage message ID to react to.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Send Typing IndicatorAGENTPHONE_SEND_TYPING_INDICATORAcción

Show 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_idstringObligatorio

    Active one-to-one or group iMessage conversation ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Send VerificationAGENTPHONE_SEND_VERIFICATIONAcción

Send 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_numberstringObligatorio

    Destination phone number in E.164 format. Sending the code incurs the standard outbound SMS rate for its country.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set Agent Number AssignmentAGENTPHONE_SET_AGENT_NUMBER_ASSIGNMENTAcción

Attach an owned phone number to an agent or detach it, changing which agent handles that number.

Parámetros de entrada

  • agent_idstringObligatorio

    Agent that should gain or lose the number.

  • number_idstringObligatorio

    Owned AgentPhone number ID to attach or detach.

  • assignmentstringObligatorioenum

    Whether to attach or detach the number.

    attachdetach

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set Contact CardAGENTPHONE_SET_CONTACT_CARDAcción

Create 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_namestring

    Last name for the replacement card. Omit or pass null to leave it unset.

  • number_idstringObligatorio

    Owned AgentPhone number ID whose iMessage contact card to replace.

  • avatar_urlstring

    Public avatar URL for the replacement card. Omit or pass null for no avatar.

  • first_namestring

    First name for the replacement card. Omit or pass null to leave it unset.

  • display_namestring

    Display name for the replacement card. Omit or pass null to leave it unset.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Start Supabase ConnectionAGENTPHONE_START_SUPABASE_CONNECTIONAcción

Create 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Submit A2P RegistrationAGENTPHONE_SUBMIT_A2P_REGISTRATIONAcción

Submit 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

  • einstring

    Sensitive EIN or tax ID required for standard_brand and high_volume. It is sent only to AgentPhone for carrier registration and is never returned.

  • citystringObligatorio

    Business city.

  • emailstringObligatorio

    Registration contact's email address.

  • statestringObligatorio

    Business state or region.

  • volumestringenum

    Expected message volume.

    lowhigh
  • countrystring

    Business country code.

  • includesstring[]

    Content types included in campaign messages.

  • industrystring

    Business industry, such as technology, retail, or healthcare.

  • zip_codestringObligatorio

    Business postal code.

  • last_namestringObligatorio

    Registration contact's last name.

  • use_casesstring[]Obligatorio

    One to five specific carrier campaign use cases.

  • brand_namestring

    Public-facing brand name when different from business_name.

  • first_namestringObligatorio

    Registration contact's first name.

  • descriptionstringObligatorio

    What the business does, who it messages, and what messages it sends.

  • link_samplestring

    Example URL when campaign messages contain links.

  • website_urlstring

    Business website URL.

  • consent_flowstringObligatorio

    How recipients explicitly opt in to receive the campaign's messages.

  • phone_numberstringObligatorio

    Registration contact's phone number in E.164 format.

  • business_namestring

    Legal business name; required for standard_brand and high_volume.

  • contact_titlestringenum

    Registration contact's role; required for standard_brand and high_volume.

    ceocfoctocoovpgmdirectorother
  • street_addressstringObligatorio

    Primary business street address.

  • message_samplesstring[]Obligatorio

    Two to five 20-1024 character examples that include the brand name.

  • planned_numbersinteger

    Number of phone numbers planned for this campaign.

  • business_regionsstring[]

    Regions where the business operates.

  • opt_in_image_urlstringObligatorio

    Public HTTPS URL to a PNG, JPG, WEBP, or GIF screenshot of the opt-in flow, no larger than 2 MB.

  • street_address_2string

    Secondary business address line.

  • organization_typestringenum

    Legal organization type; required for standard_brand and high_volume.

    sole_proprietorprivate_corporationpublic_corporationllcpartnershipnon_profitco_opgovernment
  • registration_typestringObligatorioenum

    Registration tier: sole_proprietor costs $25, standard_brand costs $25, and high_volume costs $70 and includes external brand vetting.

    sole_proprietorstandard_brandhigh_volume
  • create_sub_accountboolean

    Whether to create a dedicated sub-account for this campaign. The fee is always charged to the parent account.

  • privacy_policy_urlstring

    Privacy policy URL; required for standard_brand and high_volume.

  • contact_title_otherstring

    Custom contact role, required when contact_title is other.

  • terms_of_service_urlstring

    Terms-of-service URL; required for standard_brand and high_volume.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Test WebhookAGENTPHONE_TEST_WEBHOOKAcción

Send 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

  • targetstringenum

    Send through the account webhook or one agent's webhook override.

    accountagent
  • agent_idstring

    For 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update A2P RegistrationAGENTPHONE_UPDATE_A2P_REGISTRATIONAcción

Submit 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

  • volumestringenum

    Replacement expected message volume.

    lowhigh
  • includesstring[]

    Replacement campaign content-type list.

  • use_casesstring[]

    Replacement list of one to five carrier campaign use cases.

  • brand_namestring

    Replacement public-facing brand name.

  • descriptionstring

    Replacement description of the business and its messaging activity.

  • link_samplestring

    Replacement example URL for messages that contain links.

  • website_urlstring

    Replacement business website URL.

  • consent_flowstring

    Replacement explanation of how recipients opt in.

  • business_namestring

    Replacement legal business name.

  • message_samplesstring[]

    Replacement set of two to five brand-bearing message examples.

  • opt_in_image_urlstring

    Replacement public HTTPS screenshot URL documenting the opt-in flow.

  • privacy_policy_urlstring

    Replacement privacy policy URL.

  • terms_of_service_urlstring

    Replacement terms-of-service URL.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update AgentAGENTPHONE_UPDATE_AGENTAcción

Update 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

  • namestring

    New agent name.

  • voicestring

    Replacement provider voice ID.

  • agent_idstringObligatorio

    AgentPhone agent ID to update.

  • languagestring

    New supported BCP-47 speech locale.

  • stt_modestringenum

    New speech-to-text mode.

    fastaccurate
  • model_tierstringenum

    New hosted model tier.

    turbobalancedmax
  • voice_modestringenum

    New execution mode; switching to hosted re-provisions the voice agent.

    webhookhosted
  • descriptionstring

    New agent description. Omit null values; the API ignores them.

  • voice_speednumber

    New 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_soundstringenum

    New background ambience.

    noneofficecoffee-shopoutdoor
  • begin_messagestring

    Replacement opening message.

  • system_promptstring

    Replacement hosted-mode system prompt.

  • denoising_modestringenum

    New denoising strategy.

    noise-cancellationnoise-and-background-speech-cancellation
  • max_silence_msinteger

    New silence timeout from 10000 to 3600000 milliseconds.

  • transfer_numberstring

    Replacement E.164 transfer destination.

  • enable_messagingboolean

    Enable or disable hosted in-call messaging.

  • voicemail_messagestring

    Replacement voicemail message.

  • enable_backchannelboolean

    Enable or disable short spoken acknowledgements.

  • call_screening_purposestring

    Replacement screening purpose.

  • call_screening_identitystring

    Replacement screening identity.

  • interruption_sensitivitynumber

    New interruption sensitivity from 0.0 to 1.0.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Chat BackgroundAGENTPHONE_UPDATE_CHAT_BACKGROUNDAcción

Set 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_urlstring

    Required for operation=set and forbidden for remove. Public HTTPS URL of a JPEG, PNG, GIF, WebP, or HEIC image no larger than 10 MB.

  • operationstringObligatorioenum

    Set a new custom image or remove the current custom background.

    setremove
  • conversation_idstringObligatorio

    One-to-one or group iMessage conversation ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update ContactAGENTPHONE_UPDATE_CONTACTAcción

Update explicitly supplied fields of an existing AgentPhone contact.

Parámetros de entrada

  • namestring

    Replacement contact name.

  • emailstring

    Replacement email address. Pass null explicitly to clear it.

  • notesstring

    Replacement notes. Pass null explicitly to clear them.

  • contact_idstringObligatorio

    Existing contact ID to update.

  • phone_numberstring

    Replacement phone number, normalized to E.164 by AgentPhone.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update ConversationAGENTPHONE_UPDATE_CONVERSATIONAcción

Replace 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

  • metadataobject

    Replacement custom context surfaced to webhooks as conversationState. Pass null explicitly to clear it; omitting it leaves it unchanged.

  • group_namestring

    Replacement 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_idstringObligatorio

    Existing conversation ID to update.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update SIP TrunkAGENTPHONE_UPDATE_SIP_TRUNKAcción

Update 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

  • namestring

    Replacement display name, up to 64 characters.

  • trunk_idstringObligatorio

    Existing AgentPhone SIP trunk ID.

  • transfersstringenum

    Which transfers the trunk permits.

    allsipnone
  • origination_urisobject[]

    Complete replacement list of inbound SIP destinations. An empty list clears them and is allowed only when no numbers are attached.

  • transfer_caller_idstringenum

    Caller ID presented on a transferred call leg.

    transfereetransferor

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Sub-AccountAGENTPHONE_UPDATE_SUB_ACCOUNTAcción

Rename an existing AgentPhone sub-account.

Parámetros de entrada

  • namestringObligatorio

    New name for the sub-account.

  • sub_account_idstringObligatorio

    Existing sub-account ID to rename.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not