Volver al catálogo

Surge

surge

Surge provides APIs for sending and managing text messages, contacts, phone numbers, campaigns, and related communications resources.

Acciones
49
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 (49)

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.

Add Contact to AudienceSURGE_ADD_CONTACT_TO_AUDIENCEAcción

Add an existing same-account contact to a manual audience. This changes audience membership, may affect future targeting, and cannot be reversed through the documented Surge API because no membership-removal operation exists.

Parámetros de entrada

  • contact_idstringObligatorio

    Existing contact ID from the same account as the audience.

  • audience_idstringObligatorio

    Surge manual audience ID to which the contact should be added.

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

Archive AccountSURGE_ARCHIVE_ACCOUNTAcción

Irreversibly archive a Surge account. This releases every associated phone number, deactivates every campaign, and makes the account unusable for sending messages; future messaging requires new numbers and campaigns.

Parámetros de entrada

  • account_idstringObligatorio

    Surge account ID to archive; obtain it from List Accounts.

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

Block ContactSURGE_BLOCK_CONTACTAcción

Block incoming Surge-handled calls and SMS/MMS from a number across an account. This changes inbound handling; direct SIP-trunk and AI-agent SIP calls are not filtered, blocked messages still count toward inbound usage, and STOP/START consent handling still applies. Use Unblock Contact to remove the block. Repeating an existing block returns it without changing its reason or creation time.

Parámetros de entrada

  • reasonstring

    Optional explanation for the block, or null.

  • account_idstringObligatorio

    Surge account ID in which to add the block.

  • phone_numberstringObligatorio

    Phone number to block. Surge normalizes it to E.164 and does not support short codes or alphanumeric sender IDs.

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

Check Account StatusSURGE_CHECK_ACCOUNT_STATUSAcción

Check a Surge account's readiness for local or toll-free messaging and return any errors or missing fields.

Parámetros de entrada

  • account_idstringObligatorio

    Surge account ID to check; obtain it from List Accounts.

  • capabilitiesstring[]

    Capabilities to check. Omit this field to return the account's available capability status map.

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

Check VerificationSURGE_CHECK_VERIFICATIONAcción

Check a recipient-provided six-digit OTP against an existing Surge verification. A correct code marks it verified; an incorrect code increments the attempt count and can exhaust it. Expired, exhausted, and already-verified outcomes are returned as results. This action does not send another code.

Parámetros de entrada

  • codestringObligatorio

    Six-digit one-time verification code received by the recipient.

  • verification_idstringObligatorio

    Surge verification ID whose received code should be checked.

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

Create a persistent Surge account. Surge documents no non-destructive cleanup: the only account cleanup is irreversible archive, which can release numbers. Supplying organization.mobile_number for a sole proprietor may send an external verification SMS that cannot be recalled.

Parámetros de entrada

  • namestringObligatorio

    Internal account name and default public-facing brand when brand_name is omitted.

  • time_zonestring

    Account headquarters time zone, such as America/Los_Angeles.

  • brand_namestring

    Public-facing account brand name, or null.

  • organizationobject

    Legal entity on whose behalf the account operates.

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

Create a persistent manual audience in a Surge account. Surge documents no audience delete or archive operation, so this action cannot clean up the created audience.

Parámetros de entrada

  • namestringObligatorio

    Internal audience name, up to 255 characters.

  • account_idstringObligatorio

    Surge account ID in which to create the audience.

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

Create and submit a Surge messaging campaign for carrier registration, or import one using its TCR ID. Standard low- and high-volume registration incurs the corresponding paid carrier setup fee when Surge receives the request; high-volume phone numbers are also charged at the high-volume rate.

Parámetros de entrada

  • tcr_idstring

    Seven-character Campaign Registry ID for import. Supply this alone instead of standard registration fields.

  • volumestringenum

    Low- or high-volume paid carrier registration tier.

    highlow
  • includesstring[]

    Unique content properties that campaign messages may include.

  • use_casesstring[]

    One to five message use cases for carrier registration.

  • account_idstringObligatorio

    Surge account ID for which to create or import the campaign.

  • descriptionstring

    Organization purpose and how it will use text messaging.

  • link_samplestringuri

    Production URL sample; required when includes contains links.

  • consent_flowstring

    How end users opt in to receive messages from the brand.

  • message_samplesstring[]

    Two to five representative messages sent by this campaign.

  • privacy_policy_urlstringuri

    Brand privacy-policy URL shown during opt-in.

  • terms_and_conditions_urlstringuri

    Messaging terms-and-conditions URL shown during opt-in.

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

Create a persistent Surge contact. Creating a contact does not prove recipient consent, and outbound_disabled changes whether the new contact may receive outbound messages. Surge documents no non-destructive contact deletion operation; this action does not itself send a message.

Parámetros de entrada

  • emailstringemail

    Contact email address, if known.

  • metadataobject

    Custom metadata with up to 50 string values of at most 500 characters each.

  • last_namestring

    Contact's last name, if known.

  • account_idstringObligatorio

    Surge account in which to create the contact.

  • first_namestring

    Contact's first name, if known.

  • phone_numberstringObligatorio

    Contact phone number in E.164 format, such as +18015551234.

  • outbound_disabledboolean

    Whether Surge should manually disable outbound messaging to this contact.

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 Toll-Free CampaignSURGE_CREATE_TOLL_FREE_CAMPAIGNAcción

Create a registration for an already purchased toll-free number and submit it for carrier review. This paid workflow creates a persistent campaign; review can reject the submitted registration, and HTTP 409 means the phone number already has a toll-free campaign.

Parámetros de entrada

  • includesstring[]

    Optional unique special-content categories.

  • use_casesstring[]Obligatorio

    Messaging use cases for the toll-free number.

  • account_idstringObligatorio

    Surge account for which the campaign will be created.

  • descriptionstringObligatorio

    Explanation of how the toll-free number will be used.

  • consent_flowsarrayObligatorio

    Exactly one documented method used to collect messaging consent.

  • message_samplesstring[]Obligatorio

    Exactly one sample message of at most 1,000 characters.

  • phone_number_idstringObligatorio

    Purchased toll-free phone number to register.

  • privacy_policy_urlstringObligatoriouri

    Public privacy-policy URL.

  • terms_and_conditions_urlstringObligatoriouri

    Public terms-and-conditions 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

Create UserSURGE_CREATE_USERAcción

Create a persistent embedded-component user in a Surge account. The user can later receive signed embed credentials. Use Delete User for permanent cleanup; deletion also revokes access to embedded components.

Parámetros de entrada

  • metadataobject

    Up to 50 custom string values of at most 500 characters each.

  • last_namestring

    Last name for the new user.

  • photo_urlstringuri

    URI for the new user's avatar.

  • account_idstringObligatorio

    Surge account ID in which to create the user; obtain it from List Accounts.

  • first_namestringObligatorio

    First name for the new user.

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

Issue a signed bearer token for a Surge embedded user. By default the credential is write-capable and permits sends, read-state changes, contact edits, and calls; set read_only=true to disable those operations. The token uses a 900-second lifetime when duration_seconds is omitted, cannot be revoked through the documented API, and remains valid until expiry. Never log, store, or expose it beyond the intended embed client.

Parámetros de entrada

  • user_idstringObligatorio

    Surge user ID for which to issue an embed token; obtain it from List Users.

  • read_onlyboolean

    Whether to restrict the token to viewing conversations and unread counts. Defaults to false; false permits sends, read-state changes, contact edits, and calls.

  • duration_secondsinteger

    Token lifetime in seconds, from 15 through 3600. Omit to use Surge's documented 900-second default.

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

Create a phone-number verification and immediately send an external SMS containing a one-time verification code. The send cannot be recalled, repeated requests are rate limited, and Surge documents billing for successful verifications. Use only with the recipient's consent to receive the code.

Parámetros de entrada

  • account_idstringObligatorio

    Surge account to associate with the verification.

  • phone_numberstringObligatorio

    Consenting recipient's phone number in E.164 format.

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

Irreversibly delete a Surge call recording. Surge removes the recording file from storage asynchronously, so file deletion may not be immediate.

Parámetros de entrada

  • recording_idstringObligatorio

    Surge recording ID to delete; obtain it from List Recordings.

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

Irreversibly delete a Surge user and revoke their access to all embedded components. Subsequent access attempts for the deleted user return 404 Not Found.

Parámetros de entrada

  • user_idstringObligatorio

    Surge user ID to delete; obtain it from List Users.

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

Download a Surge message attachment up to 25 MB and return a downloadable file reference.

Parámetros de entrada

  • attachment_idstringObligatorio

    Attachment ID from a Surge message 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

Download Recording FileSURGE_DOWNLOAD_RECORDING_FILEAcción

Download a Surge recording audio file up to 25 MB and return a downloadable file reference.

Parámetros de entrada

  • recording_idstringObligatorio

    Surge recording ID whose audio file should be downloaded; obtain it from List Recordings.

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

Retrieve one Surge account by ID with its internal name, public brand name, time zone, and organization details.

Parámetros de entrada

  • account_idstringObligatorio

    Surge account ID to retrieve; obtain it from List Accounts.

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

Retrieve one Surge messaging campaign and its registration details.

Parámetros de entrada

  • campaign_idstringObligatorio

    Surge campaign ID from List Campaigns.

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

Retrieve one Surge contact by ID with phone number, profile fields, outbound messaging status, and metadata.

Parámetros de entrada

  • contact_idstringObligatorio

    Surge contact ID to retrieve; obtain it from List Contacts.

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

Retrieve one Surge message by ID with its current delivery status, body, conversation, attachments, metadata, and failure details.

Parámetros de entrada

  • message_idstringObligatorio

    Surge message ID to retrieve; obtain it from List Messages.

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

Retrieve one phone number assigned to Surge by ID with its number, type, display name, metadata, and campaign attachment details.

Parámetros de entrada

  • phone_number_idstringObligatorio

    Surge phone-number resource ID to retrieve; obtain it from List Phone Numbers.

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

Retrieve one Surge call recording by ID with its duration and originating call.

Parámetros de entrada

  • recording_idstringObligatorio

    Surge recording ID to retrieve; obtain it from List Recordings.

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 Toll-Free CampaignSURGE_GET_TOLL_FREE_CAMPAIGNAcción

Retrieve one Surge toll-free campaign by ID with registration and consent details.

Parámetros de entrada

  • campaign_idstringObligatorio

    Toll-free campaign ID to retrieve; obtain it from List Toll-Free Campaigns.

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

Retrieve one Surge user by ID, including profile fields and metadata.

Parámetros de entrada

  • user_idstringObligatorio

    Surge user ID to retrieve; obtain it from List Users.

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

Return one page of Surge accounts available to the connected project, including the account IDs needed by account-scoped tools.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous 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 Audience ContactsSURGE_LIST_AUDIENCE_CONTACTSAcción

Return one cursor-paginated page of contacts in a Surge audience.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • audience_idstringObligatorio

    Surge audience ID whose contacts should be listed.

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 Available Phone NumbersSURGE_LIST_AVAILABLE_PHONE_NUMBERSAcción

Return one page of phone numbers available for purchase from Surge inventory. This action only browses inventory and does not purchase a number.

Parámetros de entrada

  • typestringenum

    Inventory type. US and Canada support local or toll_free; Australia defaults to mobile.

    localtoll_freemobile
  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • countrystringenum

    Country whose inventory should be searched.

    USCAAU
  • area_codestring

    Three-digit area code for US or Canadian numbers.

  • account_idstringObligatorio

    Surge account ID whose purchasable phone-number inventory should be listed.

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

Return one page of an account's blocked contacts, newest first.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose blocked contacts should be listed.

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

Return one page of messaging campaigns registered for a Surge account.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose messaging campaigns should be listed.

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

Return one page of contacts for a Surge account, including IDs, phone numbers, names, messaging status, and metadata.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose contacts should be listed; obtain it from List Accounts.

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

Return one page of sent and received messages for a Surge account with status, body, conversation, attachment, failure, and metadata details.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose messages should be listed; obtain it from List Accounts.

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

Return one page of phone numbers already assigned to a Surge account, including type, display name, metadata, and campaign attachment details.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose assigned phone numbers should be listed; obtain it from List Accounts.

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

Return one cursor-paginated page of call recordings for a Surge account.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose recordings should be listed; obtain it from List Accounts.

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 Toll-Free CampaignsSURGE_LIST_TOLL_FREE_CAMPAIGNSAcción

Return one cursor-paginated page of toll-free campaigns for a Surge account.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose toll-free campaigns should be listed; obtain it from List Accounts.

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

Return one cursor-paginated page of users belonging to a Surge account.

Parámetros de entrada

  • afterstring

    Cursor returned as next_cursor to retrieve the next page.

  • beforestring

    Cursor returned as previous_cursor to retrieve the previous page.

  • account_idstringObligatorio

    Surge account ID whose users should be listed; obtain it from List Accounts.

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

Purchase Phone NumberSURGE_PURCHASE_PHONE_NUMBERAcción

Purchase a Surge phone number for an account. This is a paid purchase that requires an active paid plan and starts recurring monthly number charges. Providing phone_number selects that exact inventory number and causes Surge to ignore the other search parameters.

Parámetros de entrada

  • namestring

    Human-readable name for the phone number.

  • typestringenum

    Inventory type; Surge can infer it for some country or location searches.

    localtoll_freemobile
  • countrystringenum

    Inventory country; AU requires approved registration and mobile inventory.

    USCAAU
  • latitudenumber

    Latitude for a nearby-number search; provide longitude with it.

  • metadataobject

    Metadata with up to 50 string values of at most 500 characters each.

  • area_codestring

    Desired three-digit area code; Surge can infer the number type from it.

  • longitudenumber

    Longitude for a nearby-number search; provide latitude with it.

  • account_idstringObligatorio

    Surge account for which the phone number will be purchased.

  • phone_numberstring

    Exact inventory number in E.164 format. When supplied, Surge ignores all search parameters.

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

Irreversibly release a phone number from the Surge account so it can no longer be used there. The released number remains billable for the current month.

Parámetros de entrada

  • phone_number_idstringObligatorio

    Surge phone-number resource ID to release; obtain it from List Phone Numbers.

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

Resend Brand Verification OTPSURGE_RESEND_BRAND_VERIFICATION_OTPAcción

Enqueue an external SMS containing a brand-verification one-time password for a sole-proprietor Surge account awaiting identity verification. This asynchronous send cannot be recalled; repeated calls can send another OTP and may consume messaging usage.

Parámetros de entrada

  • account_idstringObligatorio

    Surge account whose pending brand-verification OTP should be resent.

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

Retrieve Account UsageSURGE_RETRIEVE_ACCOUNT_USAGEAcción

Return priced Surge usage for an account over an inclusive-start, exclusive-end UTC window of at most 90 days.

Parámetros de entrada

  • end_timestringObligatoriodate-time

    Exclusive end of the usage window as a whole UTC minute. The window may span at most 90 days.

  • account_idstringObligatorio

    Surge account ID whose priced usage should be retrieved.

  • start_timestringObligatoriodate-time

    Inclusive start of the usage window as a whole UTC minute no more than one year old.

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

Create a Surge blast that performs an irreversible bulk external SMS/MMS send, immediately or at send_at. A successful blast cannot be recalled, can consume billed messaging usage, and may expand audience IDs to many recipients. Use only when every recipient has consented and the sender is authorized. Surge downloads supplied attachment URLs.

Parámetros de entrada

  • tostring[]

    Recipients as any combination of contact IDs, audience IDs, and E.164 numbers.

  • bodystring

    Message body, or null.

  • namestring

    Optional internal name for the blast.

  • senderstring

    Sender written to the provider's `from` field: an E.164 number, 5-6 digit short code, or Surge phone-number ID. Omit to use the account default.

  • send_atstringdate-time

    ISO 8601 timezone-aware time to send the blast; omit to send immediately.

  • contactsstring[]

    Deprecated contact-ID recipients. Use `to` instead.

  • segmentsstring[]

    Deprecated audience-ID recipients. Use `to` instead.

  • account_idstringObligatorio

    Surge account from which to send the blast.

  • attachmentsobject[]

    Attachments Surge should download from public URLs and send.

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

Create and enqueue an external SMS or MMS through Surge, immediately or up to 60 days in the future. A valid send cannot be recalled, can consume trial or paid messaging usage, and remains asynchronous. Conversation details may create contact/conversation state, and Surge downloads supplied attachment URLs. Use only with confirmed recipient consent and sender authorization.

Parámetros de entrada

  • tostring

    Direct recipient in E.164 format. Required when conversation is omitted.

  • bodystring

    SMS or MMS text body.

  • senderstring

    Direct sender written to the provider's `from` field: an E.164 number, 5-6 digit short code, or Surge phone-number ID (`pn_` plus 26 alphanumeric characters). Omit to use the account default.

  • send_atstringdate-time

    ISO 8601 timezone-aware send time strictly in the future and no more than 60 days ahead. Omit to enqueue immediately.

  • metadataobject

    Message metadata with up to 50 string values of at most 500 characters each.

  • settingsobject

    Per-message setting overrides.

  • account_idstringObligatorio

    Surge account from which to send the message.

  • attachmentsobject[]

    Attachments Surge should download from public URLs and send.

  • conversationobject

    Conversation recipient details. Use this or direct `to`, never both; when set, choose the sender with `conversation.phone_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

Unblock ContactSURGE_UNBLOCK_CONTACTAcción

Remove an account-level phone-number block. This changes the block relation only: it does not delete the contact, message history, or messaging consent, and the number can be blocked again.

Parámetros de entrada

  • blocked_contact_idstringObligatorio

    Surge blocked-contact ID to unblock; obtain it from List Blocked Contacts.

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

Update an account's internal name, public-facing brand name, legal organization details, or headquarters time zone. Omitted fields are preserved; set time_zone to null to clear it. Supplying organization.mobile_number for a sole proprietor may send an external verification SMS.

Parámetros de entrada

  • namestring

    Internal organizational account name and default public-facing brand when brand_name is omitted.

  • time_zonestring

    Account headquarters time zone, or null to clear the current value.

  • account_idstringObligatorio

    Surge account ID to update; obtain it from List Accounts.

  • brand_namestring

    Public-facing account brand name.

  • organizationobject

    Legal entity on whose behalf the account operates.

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

Update supplied campaign registration fields and resubmit the campaign for carrier review. Omitted fields keep their stored values; arrays replace stored arrays, includes=[] clears all inclusion flags, and an empty update still resubmits the existing registration. Re-read and compare the campaign immediately before this call and abort on drift. Changing the volume tier may affect paid carrier setup and ongoing number charges.

Parámetros de entrada

  • volumestringenum

    Replacement low- or high-volume registration tier.

    highlow
  • includesstring[]

    Complete replacement inclusion list; an empty list clears all flags.

  • use_casesstring[]

    Complete replacement list of one to five messaging use cases.

  • campaign_idstringObligatorio

    Surge campaign ID to update and resubmit for carrier review.

  • descriptionstring

    Replacement organization purpose and messaging explanation.

  • link_samplestringuri

    Replacement production URL sample, or null to clear it when links are not included.

  • consent_flowstring

    Replacement explanation of how end users opt in.

  • message_samplesstring[]

    Complete replacement list of two to five representative messages.

  • privacy_policy_urlstringuri

    Replacement brand privacy-policy URL.

  • terms_and_conditions_urlstringuri

    Replacement messaging terms-and-conditions 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 ContactSURGE_UPDATE_CONTACTAcción

Update a Surge contact's phone number, email, name, metadata, or outbound messaging setting. Surge requires phone_number on every update; omitted optional fields remain unchanged, but supplied metadata replaces the complete metadata map. Include every existing metadata key that should remain. This action does not send a message.

Parámetros de entrada

  • emailstringemail

    Contact email address, if updating it.

  • metadataobject

    Complete replacement metadata map with up to 50 string values of at most 500 characters each. Include every existing key that should remain.

  • last_namestring

    Contact's last name, if updating it.

  • contact_idstringObligatorio

    Surge contact ID to update; obtain it from List Contacts.

  • first_namestring

    Contact's first name, if updating it.

  • phone_numberstringObligatorio

    Contact phone number in E.164 format, such as +18015551234.

  • outbound_disabledboolean

    Whether Surge should manually disable outbound messaging to this contact.

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

Update any supplied phone-number fields and resubmit an empty body when no fields are supplied. name changes the display name, metadata is a complete replacement metadata map, and campaign_id attaches a campaign through a paid carrier-registration workflow that may change ongoing number charges. Retrieve the number, re-read and compare its name and metadata immediately before this call, and abort on drift.

Parámetros de entrada

  • namestring

    New human-readable phone-number name.

  • metadataobject

    Complete replacement metadata map. Include existing keys that should remain; supports up to 50 string values of at most 500 characters each.

  • campaign_idstring

    Campaign ID to attach to the phone number. Attachment can enter a paid carrier-registration workflow and may change ongoing number charges.

  • phone_number_idstringObligatorio

    Surge phone-number resource ID to update; obtain it from List Phone Numbers.

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 Toll-Free CampaignSURGE_UPDATE_TOLL_FREE_CAMPAIGNAcción

Update a toll-free campaign awaiting customer fixes and resubmit the paid registration for carrier review. Re-read and compare the campaign immediately before this call and abort on drift. HTTP 409 means the campaign is not in an updatable status.

Parámetros de entrada

  • includesstring[]

    Replacement unique special-content categories.

  • use_casesstring[]

    Replacement messaging use cases for the toll-free number.

  • campaign_idstringObligatorio

    Toll-free campaign ID to update.

  • descriptionstring

    Replacement explanation of how the toll-free number will be used.

  • consent_flowsarray

    Replacement single method used to collect messaging consent.

  • message_samplesstring[]

    Replacement single sample message of at most 1,000 characters.

  • privacy_policy_urlstringuri

    Replacement public privacy-policy URL.

  • terms_and_conditions_urlstringuri

    Replacement public terms-and-conditions 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 UserSURGE_UPDATE_USERAcción

Update a Surge user's documented profile fields. For a reversible change, retrieve the user, re-read and compare the complete snapshot immediately before this call, and abort on drift. Omitted optional fields are preserved.

Parámetros de entrada

  • user_idstringObligatorio

    Surge user ID to update; obtain it from List Users.

  • metadataobject

    Complete replacement metadata map. Include existing keys that should remain; supports up to 50 string values of at most 500 characters each.

  • last_namestring

    New last name for the user.

  • photo_urlstringuri

    New URI for the user's avatar.

  • first_namestringObligatorio

    New first name for the user.

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