Surge
surgeSurge provides APIs for sending and managing text messages, contacts, phone numbers, campaigns, and related communications resources.
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ónAdd 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.
SURGE_ADD_CONTACT_TO_AUDIENCEAcciónAdd 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_idstringObligatorioExisting contact ID from the same account as the audience.
audience_idstringObligatorioSurge manual audience ID to which the contact should be added.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Archive AccountSURGE_ARCHIVE_ACCOUNTAcciónIrreversibly 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.
SURGE_ARCHIVE_ACCOUNTAcciónIrreversibly 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_idstringObligatorioSurge account ID to archive; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Block ContactSURGE_BLOCK_CONTACTAcciónBlock 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.
SURGE_BLOCK_CONTACTAcciónBlock 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
reasonstringOptional explanation for the block, or null.
account_idstringObligatorioSurge account ID in which to add the block.
phone_numberstringObligatorioPhone number to block. Surge normalizes it to E.164 and does not support short codes or alphanumeric sender IDs.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check Account StatusSURGE_CHECK_ACCOUNT_STATUSAcciónCheck a Surge account's readiness for local or toll-free messaging and return any errors or missing fields.
SURGE_CHECK_ACCOUNT_STATUSAcciónCheck a Surge account's readiness for local or toll-free messaging and return any errors or missing fields.
Parámetros de entrada
account_idstringObligatorioSurge 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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check VerificationSURGE_CHECK_VERIFICATIONAcciónCheck 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.
SURGE_CHECK_VERIFICATIONAcciónCheck 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
codestringObligatorioSix-digit one-time verification code received by the recipient.
verification_idstringObligatorioSurge verification ID whose received code should be checked.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create AccountSURGE_CREATE_ACCOUNTAcciónCreate 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.
SURGE_CREATE_ACCOUNTAcciónCreate 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
namestringObligatorioInternal account name and default public-facing brand when brand_name is omitted.
time_zonestringAccount headquarters time zone, such as America/Los_Angeles.
brand_namestringPublic-facing account brand name, or null.
organizationobjectLegal entity on whose behalf the account operates.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create AudienceSURGE_CREATE_AUDIENCEAcciónCreate 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.
SURGE_CREATE_AUDIENCEAcciónCreate 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
namestringObligatorioInternal audience name, up to 255 characters.
account_idstringObligatorioSurge account ID in which to create the audience.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create CampaignSURGE_CREATE_CAMPAIGNAcciónCreate 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.
SURGE_CREATE_CAMPAIGNAcciónCreate 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_idstringSeven-character Campaign Registry ID for import. Supply this alone instead of standard registration fields.
volumestringenumLow- or high-volume paid carrier registration tier.
highlowincludesstring[]Unique content properties that campaign messages may include.
use_casesstring[]One to five message use cases for carrier registration.
account_idstringObligatorioSurge account ID for which to create or import the campaign.
descriptionstringOrganization purpose and how it will use text messaging.
link_samplestringuriProduction URL sample; required when includes contains links.
consent_flowstringHow end users opt in to receive messages from the brand.
message_samplesstring[]Two to five representative messages sent by this campaign.
privacy_policy_urlstringuriBrand privacy-policy URL shown during opt-in.
terms_and_conditions_urlstringuriMessaging terms-and-conditions URL shown during opt-in.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ContactSURGE_CREATE_CONTACTAcciónCreate 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.
SURGE_CREATE_CONTACTAcciónCreate 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
emailstringemailContact email address, if known.
metadataobjectCustom metadata with up to 50 string values of at most 500 characters each.
last_namestringContact's last name, if known.
account_idstringObligatorioSurge account in which to create the contact.
first_namestringContact's first name, if known.
phone_numberstringObligatorioContact phone number in E.164 format, such as +18015551234.
outbound_disabledbooleanWhether Surge should manually disable outbound messaging to this contact.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Toll-Free CampaignSURGE_CREATE_TOLL_FREE_CAMPAIGNAcciónCreate 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.
SURGE_CREATE_TOLL_FREE_CAMPAIGNAcciónCreate 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[]ObligatorioMessaging use cases for the toll-free number.
account_idstringObligatorioSurge account for which the campaign will be created.
descriptionstringObligatorioExplanation of how the toll-free number will be used.
consent_flowsarrayObligatorioExactly one documented method used to collect messaging consent.
message_samplesstring[]ObligatorioExactly one sample message of at most 1,000 characters.
phone_number_idstringObligatorioPurchased toll-free phone number to register.
privacy_policy_urlstringObligatoriouriPublic privacy-policy URL.
terms_and_conditions_urlstringObligatoriouriPublic terms-and-conditions URL.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create UserSURGE_CREATE_USERAcciónCreate 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.
SURGE_CREATE_USERAcciónCreate 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
metadataobjectUp to 50 custom string values of at most 500 characters each.
last_namestringLast name for the new user.
photo_urlstringuriURI for the new user's avatar.
account_idstringObligatorioSurge account ID in which to create the user; obtain it from List Accounts.
first_namestringObligatorioFirst name for the new user.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create User TokenSURGE_CREATE_USER_TOKENAcciónIssue 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.
SURGE_CREATE_USER_TOKENAcciónIssue 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_idstringObligatorioSurge user ID for which to issue an embed token; obtain it from List Users.
read_onlybooleanWhether to restrict the token to viewing conversations and unread counts. Defaults to false; false permits sends, read-state changes, contact edits, and calls.
duration_secondsintegerToken lifetime in seconds, from 15 through 3600. Omit to use Surge's documented 900-second default.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create VerificationSURGE_CREATE_VERIFICATIONAcciónCreate 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.
SURGE_CREATE_VERIFICATIONAcciónCreate 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_idstringObligatorioSurge account to associate with the verification.
phone_numberstringObligatorioConsenting recipient's phone number in E.164 format.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete RecordingSURGE_DELETE_RECORDINGAcciónIrreversibly delete a Surge call recording. Surge removes the recording file from storage asynchronously, so file deletion may not be immediate.
SURGE_DELETE_RECORDINGAcciónIrreversibly 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_idstringObligatorioSurge recording ID to delete; obtain it from List Recordings.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete UserSURGE_DELETE_USERAcciónIrreversibly delete a Surge user and revoke their access to all embedded components. Subsequent access attempts for the deleted user return 404 Not Found.
SURGE_DELETE_USERAcciónIrreversibly 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_idstringObligatorioSurge user ID to delete; obtain it from List Users.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Attachment FileSURGE_DOWNLOAD_ATTACHMENT_FILEAcciónDownload a Surge message attachment up to 25 MB and return a downloadable file reference.
SURGE_DOWNLOAD_ATTACHMENT_FILEAcciónDownload a Surge message attachment up to 25 MB and return a downloadable file reference.
Parámetros de entrada
attachment_idstringObligatorioAttachment ID from a Surge message response.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Recording FileSURGE_DOWNLOAD_RECORDING_FILEAcciónDownload a Surge recording audio file up to 25 MB and return a downloadable file reference.
SURGE_DOWNLOAD_RECORDING_FILEAcciónDownload a Surge recording audio file up to 25 MB and return a downloadable file reference.
Parámetros de entrada
recording_idstringObligatorioSurge recording ID whose audio file should be downloaded; obtain it from List Recordings.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get AccountSURGE_GET_ACCOUNTAcciónRetrieve one Surge account by ID with its internal name, public brand name, time zone, and organization details.
SURGE_GET_ACCOUNTAcciónRetrieve one Surge account by ID with its internal name, public brand name, time zone, and organization details.
Parámetros de entrada
account_idstringObligatorioSurge account ID to retrieve; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CampaignSURGE_GET_CAMPAIGNAcciónRetrieve one Surge messaging campaign and its registration details.
SURGE_GET_CAMPAIGNAcciónRetrieve one Surge messaging campaign and its registration details.
Parámetros de entrada
campaign_idstringObligatorioSurge campaign ID from List Campaigns.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ContactSURGE_GET_CONTACTAcciónRetrieve one Surge contact by ID with phone number, profile fields, outbound messaging status, and metadata.
SURGE_GET_CONTACTAcciónRetrieve one Surge contact by ID with phone number, profile fields, outbound messaging status, and metadata.
Parámetros de entrada
contact_idstringObligatorioSurge contact ID to retrieve; obtain it from List Contacts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get MessageSURGE_GET_MESSAGEAcciónRetrieve one Surge message by ID with its current delivery status, body, conversation, attachments, metadata, and failure details.
SURGE_GET_MESSAGEAcciónRetrieve one Surge message by ID with its current delivery status, body, conversation, attachments, metadata, and failure details.
Parámetros de entrada
message_idstringObligatorioSurge message ID to retrieve; obtain it from List Messages.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Phone NumberSURGE_GET_PHONE_NUMBERAcciónRetrieve one phone number assigned to Surge by ID with its number, type, display name, metadata, and campaign attachment details.
SURGE_GET_PHONE_NUMBERAcciónRetrieve 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_idstringObligatorioSurge phone-number resource ID to retrieve; obtain it from List Phone Numbers.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get RecordingSURGE_GET_RECORDINGAcciónRetrieve one Surge call recording by ID with its duration and originating call.
SURGE_GET_RECORDINGAcciónRetrieve one Surge call recording by ID with its duration and originating call.
Parámetros de entrada
recording_idstringObligatorioSurge recording ID to retrieve; obtain it from List Recordings.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Toll-Free CampaignSURGE_GET_TOLL_FREE_CAMPAIGNAcciónRetrieve one Surge toll-free campaign by ID with registration and consent details.
SURGE_GET_TOLL_FREE_CAMPAIGNAcciónRetrieve one Surge toll-free campaign by ID with registration and consent details.
Parámetros de entrada
campaign_idstringObligatorioToll-free campaign ID to retrieve; obtain it from List Toll-Free Campaigns.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get UserSURGE_GET_USERAcciónRetrieve one Surge user by ID, including profile fields and metadata.
SURGE_GET_USERAcciónRetrieve one Surge user by ID, including profile fields and metadata.
Parámetros de entrada
user_idstringObligatorioSurge user ID to retrieve; obtain it from List Users.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List AccountsSURGE_LIST_ACCOUNTSAcciónReturn one page of Surge accounts available to the connected project, including the account IDs needed by account-scoped tools.
SURGE_LIST_ACCOUNTSAcciónReturn one page of Surge accounts available to the connected project, including the account IDs needed by account-scoped tools.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Audience ContactsSURGE_LIST_AUDIENCE_CONTACTSAcciónReturn one cursor-paginated page of contacts in a Surge audience.
SURGE_LIST_AUDIENCE_CONTACTSAcciónReturn one cursor-paginated page of contacts in a Surge audience.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
audience_idstringObligatorioSurge audience ID whose contacts should be listed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Available Phone NumbersSURGE_LIST_AVAILABLE_PHONE_NUMBERSAcciónReturn one page of phone numbers available for purchase from Surge inventory. This action only browses inventory and does not purchase a number.
SURGE_LIST_AVAILABLE_PHONE_NUMBERSAcciónReturn 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
typestringenumInventory type. US and Canada support local or toll_free; Australia defaults to mobile.
localtoll_freemobileafterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
countrystringenumCountry whose inventory should be searched.
USCAAUarea_codestringThree-digit area code for US or Canadian numbers.
account_idstringObligatorioSurge account ID whose purchasable phone-number inventory should be listed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Blocked ContactsSURGE_LIST_BLOCKED_CONTACTSAcciónReturn one page of an account's blocked contacts, newest first.
SURGE_LIST_BLOCKED_CONTACTSAcciónReturn one page of an account's blocked contacts, newest first.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose blocked contacts should be listed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CampaignsSURGE_LIST_CAMPAIGNSAcciónReturn one page of messaging campaigns registered for a Surge account.
SURGE_LIST_CAMPAIGNSAcciónReturn one page of messaging campaigns registered for a Surge account.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose messaging campaigns should be listed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ContactsSURGE_LIST_CONTACTSAcciónReturn one page of contacts for a Surge account, including IDs, phone numbers, names, messaging status, and metadata.
SURGE_LIST_CONTACTSAcciónReturn one page of contacts for a Surge account, including IDs, phone numbers, names, messaging status, and metadata.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose contacts should be listed; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List MessagesSURGE_LIST_MESSAGESAcciónReturn one page of sent and received messages for a Surge account with status, body, conversation, attachment, failure, and metadata details.
SURGE_LIST_MESSAGESAcciónReturn one page of sent and received messages for a Surge account with status, body, conversation, attachment, failure, and metadata details.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose messages should be listed; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Phone NumbersSURGE_LIST_PHONE_NUMBERSAcciónReturn one page of phone numbers already assigned to a Surge account, including type, display name, metadata, and campaign attachment details.
SURGE_LIST_PHONE_NUMBERSAcciónReturn one page of phone numbers already assigned to a Surge account, including type, display name, metadata, and campaign attachment details.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose assigned phone numbers should be listed; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List RecordingsSURGE_LIST_RECORDINGSAcciónReturn one cursor-paginated page of call recordings for a Surge account.
SURGE_LIST_RECORDINGSAcciónReturn one cursor-paginated page of call recordings for a Surge account.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose recordings should be listed; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Toll-Free CampaignsSURGE_LIST_TOLL_FREE_CAMPAIGNSAcciónReturn one cursor-paginated page of toll-free campaigns for a Surge account.
SURGE_LIST_TOLL_FREE_CAMPAIGNSAcciónReturn one cursor-paginated page of toll-free campaigns for a Surge account.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose toll-free campaigns should be listed; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List UsersSURGE_LIST_USERSAcciónReturn one cursor-paginated page of users belonging to a Surge account.
SURGE_LIST_USERSAcciónReturn one cursor-paginated page of users belonging to a Surge account.
Parámetros de entrada
afterstringCursor returned as next_cursor to retrieve the next page.
beforestringCursor returned as previous_cursor to retrieve the previous page.
account_idstringObligatorioSurge account ID whose users should be listed; obtain it from List Accounts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Purchase Phone NumberSURGE_PURCHASE_PHONE_NUMBERAcciónPurchase 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.
SURGE_PURCHASE_PHONE_NUMBERAcciónPurchase 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
namestringHuman-readable name for the phone number.
typestringenumInventory type; Surge can infer it for some country or location searches.
localtoll_freemobilecountrystringenumInventory country; AU requires approved registration and mobile inventory.
USCAAUlatitudenumberLatitude for a nearby-number search; provide longitude with it.
metadataobjectMetadata with up to 50 string values of at most 500 characters each.
area_codestringDesired three-digit area code; Surge can infer the number type from it.
longitudenumberLongitude for a nearby-number search; provide latitude with it.
account_idstringObligatorioSurge account for which the phone number will be purchased.
phone_numberstringExact inventory number in E.164 format. When supplied, Surge ignores all search parameters.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Release Phone NumberSURGE_RELEASE_PHONE_NUMBERAcciónIrreversibly 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.
SURGE_RELEASE_PHONE_NUMBERAcciónIrreversibly 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_idstringObligatorioSurge phone-number resource ID to release; obtain it from List Phone Numbers.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Resend Brand Verification OTPSURGE_RESEND_BRAND_VERIFICATION_OTPAcciónEnqueue 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.
SURGE_RESEND_BRAND_VERIFICATION_OTPAcciónEnqueue 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_idstringObligatorioSurge account whose pending brand-verification OTP should be resent.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Retrieve Account UsageSURGE_RETRIEVE_ACCOUNT_USAGEAcciónReturn priced Surge usage for an account over an inclusive-start, exclusive-end UTC window of at most 90 days.
SURGE_RETRIEVE_ACCOUNT_USAGEAcciónReturn 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-timeExclusive end of the usage window as a whole UTC minute. The window may span at most 90 days.
account_idstringObligatorioSurge account ID whose priced usage should be retrieved.
start_timestringObligatoriodate-timeInclusive start of the usage window as a whole UTC minute no more than one year old.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send BlastSURGE_SEND_BLASTAcciónCreate 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.
SURGE_SEND_BLASTAcciónCreate 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.
bodystringMessage body, or null.
namestringOptional internal name for the blast.
senderstringSender 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-timeISO 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_idstringObligatorioSurge account from which to send the blast.
attachmentsobject[]Attachments Surge should download from public URLs and send.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send MessageSURGE_SEND_MESSAGEAcciónCreate 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.
SURGE_SEND_MESSAGEAcciónCreate 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
tostringDirect recipient in E.164 format. Required when conversation is omitted.
bodystringSMS or MMS text body.
senderstringDirect 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-timeISO 8601 timezone-aware send time strictly in the future and no more than 60 days ahead. Omit to enqueue immediately.
metadataobjectMessage metadata with up to 50 string values of at most 500 characters each.
settingsobjectPer-message setting overrides.
account_idstringObligatorioSurge account from which to send the message.
attachmentsobject[]Attachments Surge should download from public URLs and send.
conversationobjectConversation recipient details. Use this or direct `to`, never both; when set, choose the sender with `conversation.phone_number`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Unblock ContactSURGE_UNBLOCK_CONTACTAcciónRemove 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.
SURGE_UNBLOCK_CONTACTAcciónRemove 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_idstringObligatorioSurge blocked-contact ID to unblock; obtain it from List Blocked Contacts.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update AccountSURGE_UPDATE_ACCOUNTAcciónUpdate 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.
SURGE_UPDATE_ACCOUNTAcciónUpdate 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
namestringInternal organizational account name and default public-facing brand when brand_name is omitted.
time_zonestringAccount headquarters time zone, or null to clear the current value.
account_idstringObligatorioSurge account ID to update; obtain it from List Accounts.
brand_namestringPublic-facing account brand name.
organizationobjectLegal entity on whose behalf the account operates.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update CampaignSURGE_UPDATE_CAMPAIGNAcciónUpdate 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.
SURGE_UPDATE_CAMPAIGNAcciónUpdate 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
volumestringenumReplacement low- or high-volume registration tier.
highlowincludesstring[]Complete replacement inclusion list; an empty list clears all flags.
use_casesstring[]Complete replacement list of one to five messaging use cases.
campaign_idstringObligatorioSurge campaign ID to update and resubmit for carrier review.
descriptionstringReplacement organization purpose and messaging explanation.
link_samplestringuriReplacement production URL sample, or null to clear it when links are not included.
consent_flowstringReplacement explanation of how end users opt in.
message_samplesstring[]Complete replacement list of two to five representative messages.
privacy_policy_urlstringuriReplacement brand privacy-policy URL.
terms_and_conditions_urlstringuriReplacement messaging terms-and-conditions URL.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update ContactSURGE_UPDATE_CONTACTAcciónUpdate 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.
SURGE_UPDATE_CONTACTAcciónUpdate 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
emailstringemailContact email address, if updating it.
metadataobjectComplete replacement metadata map with up to 50 string values of at most 500 characters each. Include every existing key that should remain.
last_namestringContact's last name, if updating it.
contact_idstringObligatorioSurge contact ID to update; obtain it from List Contacts.
first_namestringContact's first name, if updating it.
phone_numberstringObligatorioContact phone number in E.164 format, such as +18015551234.
outbound_disabledbooleanWhether Surge should manually disable outbound messaging to this contact.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Phone NumberSURGE_UPDATE_PHONE_NUMBERAcciónUpdate 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.
SURGE_UPDATE_PHONE_NUMBERAcciónUpdate 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
namestringNew human-readable phone-number name.
metadataobjectComplete replacement metadata map. Include existing keys that should remain; supports up to 50 string values of at most 500 characters each.
campaign_idstringCampaign ID to attach to the phone number. Attachment can enter a paid carrier-registration workflow and may change ongoing number charges.
phone_number_idstringObligatorioSurge phone-number resource ID to update; obtain it from List Phone Numbers.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Toll-Free CampaignSURGE_UPDATE_TOLL_FREE_CAMPAIGNAcciónUpdate 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.
SURGE_UPDATE_TOLL_FREE_CAMPAIGNAcciónUpdate 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_idstringObligatorioToll-free campaign ID to update.
descriptionstringReplacement explanation of how the toll-free number will be used.
consent_flowsarrayReplacement single method used to collect messaging consent.
message_samplesstring[]Replacement single sample message of at most 1,000 characters.
privacy_policy_urlstringuriReplacement public privacy-policy URL.
terms_and_conditions_urlstringuriReplacement public terms-and-conditions URL.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update UserSURGE_UPDATE_USERAcciónUpdate 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.
SURGE_UPDATE_USERAcciónUpdate 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_idstringObligatorioSurge user ID to update; obtain it from List Users.
metadataobjectComplete replacement metadata map. Include existing keys that should remain; supports up to 50 string values of at most 500 characters each.
last_namestringNew last name for the user.
photo_urlstringuriNew URI for the user's avatar.
first_namestringObligatorioNew first name for the user.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not