Telerivet Webhooks API

Webhooks are HTTP POST requests that Telerivet sends to YOUR server when events occur. Unlike the REST API (where you call Telerivet), webhooks allow Telerivet to notify you of events in real-time. Configure webhook URLs in Project Settings or by creating a Webhook service.

GitHub OpenAPI

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/telerivet-com:telerivet-com-webhooks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

telerivet-com-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Telerivet Webhooks API
  description: 'Telerivet''s REST API and Webhook API provide programmatic access to messaging, contacts, automation, and analytics features.


    ## Authentication

    The API supports two authentication methods:


    **API Key (Basic Auth):** Use HTTP Basic Auth with your API key as the username (password is ignored). Each API key is associated with an API client, which has certain permissions for a Telerivet project or organization. You can manage API clients and generate API keys on the Developer API settings page.


    **OAuth 2.0 (Bearer Token):** Send an `Authorization: Bearer {access_token}` header. OAuth tokens are scoped to specific permissions and can optionally be restricted to a single organization. Supports authorization code flow (with PKCE), device authorization flow (RFC 8628), and refresh tokens. The API supports CORS for OAuth 2.0 Bearer token requests, enabling browser-based JavaScript applications to call the API directly. CORS is not supported for API key authentication. See the OAuth 2.0 Guide for details.


    ## Common Workflows


    Most operations require a project_id parameter. You can find the project ID from `GET /v1/projects`, or from the Developer API settings page at https://telerivet.com/dashboard/api#api_ids.


    **Send a message:**

    - Send an individual message with `POST /v1/projects/{project_id}/messages/send`

    - Send multiple messages with `POST /v1/projects/{project_id}/send_multi` or `POST /v1/projects/{project_id}/send_broadcast`

    - Schedule a message with `POST /v1/projects/{project_id}/scheduled`


    **Look up a contact:**

    - Look up a contact by phone number with `GET /v1/projects/{project_id}/contacts?phone_number={number}`

    - Or get a contact by ID with `GET /v1/projects/{project_id}/contacts/{contact_id}`


    **Create/update contacts:**

    - Use `POST /v1/projects/{project_id}/contacts` to create/update a contact by phone number

    - Or use `POST /v1/projects/{project_id}/contacts/{contact_id}` to update a contact by ID

    - Or use `POST /v1/projects/{project_id}/import_contacts` to import or update multiple contacts at once


    **Configure automated services:**

    - Use `POST /v1/projects/{project_id}/services` to create an automated service

    - Use `POST /v1/projects/{project_id}/services/{service_id}/config` to update the configuration for an existing automated service


    ## Resource Hierarchy

    - Organization (account) → Projects → Contacts, Messages, Groups, Services, etc.


    ## Documentation

    Full documentation: https://telerivet.com/api/rest


    ## Cloud Script API

    When creating Cloud Script services (`*_script` service types), your code can use the JavaScript API documented at https://api.telerivet.com/script.d.ts. This TypeScript declaration file describes all available classes, methods, service type contexts, and includes code examples.


    ## OpenAPI Spec

    This specification is available at `https://api.telerivet.com/openapi.json`'
  version: 1.9.10
  contact:
    name: Telerivet Support
    url: https://telerivet.com/contact
  x-llm-instructions: 'When using this API: 1) Always get project_id first if not provided. 2) Check response for ''error'' field to detect failures. 3) For list endpoints, use ''page_size'' parameter and check ''next_marker'' for pagination. 4) For Custom Actions services, use x-action-types to find available action types and their schemas.'
  x-service-types:
    incoming_message_actions:
      description: Custom Actions service triggered when incoming messages are received.
      config:
        $ref: '#/components/schemas/ServiceConfigIncomingMessageActions'
      example:
        service_type: incoming_message_actions
        name: My Custom Actions Service
        config:
          actions:
          - type: reply
            body:
              content: Hello! Reply with your name.
          - type: wait_response
            state_id: waiting_name
            timeout:
              interval: days
              days: 1
              subroutine: name_timeout
          response_handlers:
          - state_id: waiting_name
            actions:
            - type: set_contact_name
              name: '[[content]]'
            - type: reply
              body:
                content: Thanks, [[contact.name]]!
          subroutines:
          - name: name_timeout
            actions:
            - type: log
              value: Timeout while waiting for contact name.
    contact_actions:
      description: Custom Actions service that can be triggered for a contact.
      config:
        $ref: '#/components/schemas/ServiceConfigContactActions'
      example:
        service_type: contact_actions
        name: Welcome New Contacts
        config:
          actions:
          - type: condition
            conditions:
            - type: is
              variable: '[[contact.vars.welcomed]]'
              value: ''
            actions:
            - type: send_message
              body:
                content: Welcome, [[contact.name]]! Reply HELP for assistance.
            - type: set_variable
              variable: contact.vars.welcomed
              value: '1'
    message_actions:
      description: Custom Actions service that can be triggered for a message.
      config:
        $ref: '#/components/schemas/ServiceConfigMessageActions'
      example:
        service_type: message_actions
        config:
          actions:
          - type: log
            value: Service triggered
    project_actions:
      description: Custom Actions service that can be manually triggered for a project.
      config:
        $ref: '#/components/schemas/ServiceConfigProjectActions'
      example:
        service_type: project_actions
        config:
          actions:
          - type: log
            value: Service triggered
    message_status_actions:
      description: Custom Actions service triggered when outgoing message statuses change.
      config:
        $ref: '#/components/schemas/ServiceConfigMessageStatusActions'
      example:
        service_type: message_status_actions
        config:
          actions:
          - type: log
            value: Service triggered
    voice_actions:
      description: Custom Actions service triggered for voice call events.
      config:
        $ref: '#/components/schemas/ServiceConfigVoiceActions'
      example:
        service_type: voice_actions
        config:
          actions:
          - type: log
            value: Service triggered
    ussd_actions:
      description: Custom Actions service triggered for USSD session events.
      config:
        $ref: '#/components/schemas/ServiceConfigUssdActions'
      example:
        service_type: ussd_actions
        config:
          actions:
          - type: log
            value: Service triggered
    data_row_actions:
      description: Custom Actions service that can be triggered for data table rows.
      config:
        $ref: '#/components/schemas/ServiceConfigDataRowActions'
      example:
        service_type: data_row_actions
        config:
          actions:
          - type: log
            value: Service triggered
    incoming_message_webhook:
      description: Webhook service that sends HTTP POST notifications when incoming messages are received. Use this to integrate with external systems that need to process incoming text messages or call notifications.
      config:
        $ref: '#/components/schemas/ServiceConfigIncomingMessageWebhook'
      example:
        service_type: incoming_message_webhook
        name: My Webhook
        config:
          url: https://example.com/webhook
          secret: my_secret_123
    optin_optout:
      description: Service that lets contacts opt-in and opt-out by sending keywords (e.g., JOIN, STOP). When a contact sends a matching keyword, the service can add or remove the contact from groups, apply labels, block or unblock the contact, and send an automated reply.
      config:
        $ref: '#/components/schemas/ServiceConfigOptinOptout'
      example:
        service_type: optin_optout
        name: Newsletter Subscription
        config:
          subscribe_keywords:
          - JOIN
          - START
          subscribe_reply:
            content: You're subscribed! Reply STOP to unsubscribe.
          unsubscribe_keywords:
          - STOP
          - QUIT
          unsubscribe_reply:
            content: You've been unsubscribed.
          subscriber_group: Newsletter Subscribers
          unsubscriber_group: Newsletter Unsubscribers
          actions:
            add_subscriber: true
            remove_unsubscriber: true
            add_unsubscriber: true
            remove_subscriber: true
            add_subscribe_label: false
            add_unsubscribe_label: false
            subscribe_unblock: true
            unsubscribe_block: true
    keyword_auto_reply:
      description: Service that matches incoming messages against one or more keywords and sends an auto-reply if the message content matches one of the keywords.
      config:
        $ref: '#/components/schemas/ServiceConfigKeywordAutoReply'
      example:
        service_type: keyword_auto_reply
        name: Business Info
        config:
          items:
          - keywords:
            - HOURS
            - SCHEDULE
            reply:
              content: Our business hours are 9am - 5pm, Monday to Friday.
          - keywords:
            - LOCATION
            - ADDRESS
            reply:
              content: We are located at 123 Main St.
    messaging_poll:
      description: Messaging poll service that collects responses from contacts to one or more survey questions.
      config:
        $ref: '#/components/schemas/ServiceConfigMessagingPoll'
      example:
        service_type: messaging_poll
        name: Customer Survey
        config:
          response_mode: keyword
          trigger_keyword: SURVEY
          questions:
          - id: satisfaction
            question_type: multiple_choice
            body:
              content: How satisfied are you? Reply 1-5
            choices:
            - code: '5'
              conditions:
              - type: equals
                value: '5'
            - code: '4'
              conditions:
              - type: equals
                value: '4'
            - code: '3'
              conditions:
              - type: equals
                value: '3'
            - code: '2'
              conditions:
              - type: equals
                value: '2'
            - code: '1'
              conditions:
              - type: equals
                value: '1'
          response_actions:
          - type: condition
            conditions:
            - variable: '[[content]]'
              type: is
              value: END
            actions:
            - type: end_survey
          end_actions:
          - type: reply_simple
            body:
              content: Thank you for completing our survey!
    voice_poll:
      description: Voice poll service that collects responses from contacts via a voice call (IVR), using key presses, voice recordings, or speech-to-text answers to one or more questions.
      config:
        $ref: '#/components/schemas/ServiceConfigVoicePoll'
      example:
        service_type: voice_poll
        name: Customer Voice Survey
        config:
          incoming_call_mode: none
          start_actions:
          - type: play_audio
            mode: tts
            text: Welcome to our customer survey.
            language: en-US
          questions:
          - id: satisfaction
            question_type: keypress
            body:
              mode: tts
              text: Press 1 for satisfied, 2 for dissatisfied.
              language: en-US
            choices:
            - code: satisfied
              conditions:
              - type: equals
                value: '1'
            - code: dissatisfied
              conditions:
              - type: equals
                value: '2'
          end_actions:
          - type: play_audio
            mode: tts
            text: Thank you for completing our survey.
            language: en-US
    scheduled_actions:
      description: Custom Actions service triggered at scheduled times.
      config:
        $ref: '#/components/schemas/ServiceConfigScheduledActions'
      example:
        service_type: scheduled_actions
        config:
          actions:
          - type: log
            value: Service triggered
    auto_reply:
      description: Auto-reply service that sends a fixed text reply when an incoming message is received.
      config:
        $ref: '#/components/schemas/ServiceConfigAutoReply'
      example:
        service_type: auto_reply
        name: Thanks Auto-Reply
        config:
          reply:
            content: Thanks for your message! We will respond shortly.
    call_auto_reply:
      description: Auto-reply service that sends a fixed text reply when an incoming call is received.
      config:
        $ref: '#/components/schemas/ServiceConfigCallAutoReply'
      example:
        service_type: call_auto_reply
        name: Missed Call Reply
        config:
          reply:
            content: Sorry we missed your call. We'll get back to you shortly.
    incoming_message_script:
      description: Cloud Script service that runs JavaScript code when incoming messages are received.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: incoming_message_script
        name: My Script
        config:
          code: "function main() {\n    sendReply('Hello!');\n    return 'Message sent';\n}"
    contact_script:
      description: Cloud Script service that runs JavaScript code when triggered for a contact.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: contact_script
        name: Tag Inactive Contacts
        config:
          code: "function main() {\n    var lastMessage = project.getMessages({\n        contact_id: contact.id,\n        direction: 'incoming',\n        sort_dir: 'desc'\n    }).limit(1).next();\n\n    if (lastMessage) {\n        var daysSince = (Date.now() - lastMessage.time_created * 1000) / 86400000;\n        if (daysSince > 30) {\n            contact.addToGroup(project.getOrCreateGroup({name: 'Inactive'}));\n        }\n    }\n}"
    message_script:
      description: Cloud Script service that runs JavaScript code when triggered for a message.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: message_script
        config:
          code: "function main() {\n    // your code here\n}"
    data_row_script:
      description: Cloud Script service that runs JavaScript code when triggered for a data table row.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: data_row_script
        config:
          code: "function main() {\n    // your code here\n}"
    scheduled_script:
      description: Cloud Script service that runs JavaScript code at scheduled times.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: scheduled_script
        config:
          code: "function main() {\n    // your code here\n}"
    webhook_script:
      description: Cloud Script service that runs JavaScript code when triggered via webhook from external systems.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: webhook_script
        config:
          code: "function main() {\n    // your code here\n}"
    voice_script:
      description: Cloud Script service triggered when a voice call is received or answered.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: voice_script
        config:
          code: "function main() {\n    // your code here\n}"
    ussd_script:
      description: Cloud Script service triggered when a USSD session is received.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: ussd_script
        config:
          code: "function main() {\n    // your code here\n}"
    project_script:
      description: Cloud Script service that runs JavaScript code when triggered for the project.
      config:
        $ref: '#/components/schemas/ServiceConfigScript'
      example:
        service_type: project_script
        config:
          code: "function main() {\n    // your code here\n}"
    opt_out_page:
      description: Opt-Out Page service that provides a mobile web page allowing contacts to unsubscribe.
      config:
        $ref: '#/components/schemas/ServiceConfigOptOutPage'
      example:
        service_type: opt_out_page
        config:
          actions:
          - type: log
            value: Service triggered
    button_page:
      description: Button Page service that provides a mobile web page with a button that triggers actions when clicked.
      config:
        $ref: '#/components/schemas/ServiceConfigButtonPage'
      example:
        service_type: button_page
        config:
          actions:
          - type: log
            value: Service triggered
    custom_template_instance:
      description: Service instance created from a reusable service template. Templates allow creating standardized services with configurable parameters.
      config:
        $ref: '#/components/schemas/ServiceConfigCustomTemplateInstance'
      example:
        service_type: custom_template_instance
        name: My Template Instance
        config:
          template_service_id: SV0123456789abcdef
          params:
            welcome_message: Hello!
            timeout_hours: 24
  x-action-types:
    add_contact_to_group:
      description: 'Adds the current contact to a group. If the group doesn''t exist yet, Telerivet will create it.


        If you want to add a contact other than the one who sent the message, add a "Use another contact" rule before this rule.'
      schema:
        $ref: '#/components/schemas/ActionAddContactToGroup'
      example:
        type: add_contact_to_group
        group_name: subscribers
    add_label_to_message:
      description: Adds a label to the current message. This makes it easy to segment certain types of messages on your Messages page.
      schema:
        $ref: '#/components/schemas/ActionAddLabelToMessage'
      example:
        type: add_label_to_message
        label_name: support requests
    block_contact:
      description: Blocks the current contact.
      schema:
        $ref: '#/components/schemas/ActionBlockContact'
      example:
        type: block_contact
        send_blocked: true
    call_contact:
      description: Sends a voice call to the current contact using a specified IVR service.
      schema:
        $ref: '#/components/schemas/ActionCallContact'
    cancel_scheduled_messages:
      description: 'Cancels all scheduled messages to the current contact.


        Note this doesn''t cancel messages that are scheduled to an entire group. In this case, the contact would need to be removed from the group in order to cancel the message.

        '
      schema:
        $ref: '#/components/schemas/ActionCancelScheduledMessages'
      example:
        type: cancel_scheduled_messages
    condition:
      description: '

        A rule that only matches if a certain condition is true (e.g. the message has a particular keyword or sender). Always combined with one or more other rules.


        "If ... then ..." rules can use the following types of conditions:


        * is

        * is not

        * has word

        * does not have word

        * contains

        * does not contain

        * starts with

        * does not start with

        * ends with

        * does not end with

        * alphabetically before

        * alphabetically after

        * equals

        * does not equal

        * less than

        * greater than

        * less than or equal to

        * greater than or equal to

        * contact is in group

        * contact is not in group


        A single "If ... then ..." rule can contain multiple conditions, joined together with either ''and'' or ''or''.'
      schema:
        $ref: '#/components/schemas/ActionCondition'
    copy_message_to_project:
      description: 'Copies the current incoming message to another project within the same organization.


        This is useful for routing messages to different projects based on message content or contact information, while keeping the original message in the current project.'
      schema:
        $ref: '#/components/schemas/ActionCopyMessageToProject'
      example:
        type: copy_message_to_project
        project_id: PJxxxxxxxxxxxxxxxx
    end_session:
      description: Ends the current USSD session.
      schema:
        $ref: '#/components/schemas/ActionEndSession'
      example:
        type: end_session
    end_survey:
      description: Within a poll service, skips to the end of the survey.
      schema:
        $ref: '#/components/schemas/ActionEndSurvey'
      example:
        type: end_survey
    forward_call:
      description: Forwards the incoming call to another phone number.
      schema:
        $ref: '#/components/schemas/ActionForwardCall'
      example:
        type: forward_call
        phone_number: '+16505550123'
    hangup:
      description: Hangs up the phone call.
      schema:
        $ref: '#/components/schemas/ActionHangup'
      example:
        type: hangup
    ignore_message:
      description: Within a poll service, ignores the current message.
      schema:
        $ref: '#/components/schemas/ActionIgnoreMessage'
      example:
        type: ignore_message
    log:
      description: 'Adds a log message to Telerivet''s [service log](/dashboard/service_logs).


        To view the service log, open your [Services page](/dashboard/services) and click More > View logs.


        When using the "Test Service" feature, log messages will be displayed directly in the simulated phone dialog.

        '
      schema:
        $ref: '#/components/schemas/ActionLog'
      example:
        type: log
        value: word1 = [[word1]]
    play_audio:
      description: Plays an audio file in WAV or MP3 format in the voice call, which may be uploaded, linked, or recorded via the Telerivet web app. Alternatively, can use text-to-speech to speak a message.
      schema:
        $ref: '#/components/schemas/ActionPlayAudio'
      example:
        type: play_audio
        mode: file
        audio_url: http://localhost/_media/sounds/bell2.mp3
    push_to_hubspot:
      description: Pushes the message to a HubSpot Help Desk inbox, in a conversation associated with the current contact. HubSpot agents can reply directly to send a reply to the contact.
      schema:
        $ref: '#/components/schemas/ActionPushToHubspot'
      example:
        type: push_to_hubspot
        integration_id: null
        content: '[[content]]'
    push_to_zendesk:
      description: Pushes the message to a Zendesk support inbox, in a ticket associated with the current contact. Zendesk agents can reply directly to the Zendesk ticket to send a reply to the contact.
      schema:
        $ref: '#/components/schemas/ActionPushToZendesk'
      example:
        type: push_to_zendesk
        subdomain: example
        subject: Message from [[contact.name]]
        content: '[[content]]'
    record_audio:
      description: Records an audio response from the caller, saves the recording URL as a custom variable on the message, then triggers the associated response handler.
      schema:
        $ref: '#/components/schemas/ActionRecordAudio'
      example:
        type: record_audio
        state_id: input
    remove_contact_from_group:
      description: 'Removes the current contact from a group.


        If you want to remove a contact other than the one who sent the message, add a "Use another contact" rule before this rule.'
      schema:
        $ref: '#/components/schemas/ActionRemoveContactFromGroup'
      example:
        type: remove_contact_from_group
        group_name: subscribers
    repeat_question:
      description: Within a poll service, repeats the current question again.
      schema:
        $ref: '#/components/schemas/ActionRepeatQuestion'
      example:
        type: repeat_question
    reply:
      description: 'Sends a text reply to the sender.


        Optionally, the reply can be scheduled after a predefined delay, or sent via a different phone than the one that received the message.'
      schema:
        $ref: '#/components/schemas/ActionReply'
      example:
        type: reply
        body:
          content: Hello, [[contact.name]].
    reply_simple:
      description: Sends a text reply to the sender (simple version without labels, schedule, or route configuration).
      schema:
        $ref: '#/components/schemas/ActionReplySimple'
      example:
        type: reply_simple
        body:
          content: Hello, [[contact.name]].
    resend_message:
      description: Within a service triggered when a message status changes, will automatically resend the current message via the same route or a different route.
      schema:
        $ref: '#/components/schemas/ActionResendMessage'
      example:
        type: resend_message
    run_script:
      description: 'Runs custom JavaScript code on Telerivet''s servers using Telerivet''s Cloud Script API.


        This makes it possible to define custom actions such as calling the Telerivet REST API or third-party APIs, or parsing structured data from incoming messages.


        For more details, see the [Cloud Script API documentation](/api/script).

        '
      schema:
        $ref: '#/components/schemas/ActionRunScript'
      example:
        type: run_script
        code: "var response = httpClient.request(\n    \"http://api.coindesk.com/v1/bpi/currentprice.json\");\n\nvar bitcoinInfo = JSON.parse(response.content);\nsendReply(\"1 BTC = $\" + bitcoinInfo.bpi.USD.rate);"
    run_subroutine:
      description: Triggers a set of actions which can be reused multiple times in the same service.
      schema:
        $ref: '#/components/schemas/ActionRunSubroutine'
    send_airtime:
      description: Sends airtime to the current contact if they are on a particular mobile network. Acts like a condition, and allows running other actions if the contact is on one of the supported networks. An 'else' condition can be added below this action to handle contacts that are not on the supported mobile networks.
      schema:
        $ref: '#/components/schemas/ActionSendAirtime'
    send_email:
      description: 'Sends a plain-text email with custom subject line and body.


        Each rule can only send to a single email address; if you need multiple recipients, we recommend setting up a mailing list on your own server.


        When receiving MMS and chat messages, you can optionally send the multimedia files as email attachments.


        To prevent abuse, it isn''t possible to change the ''From'' name or email address of the email, although these settings can be configured when using Telerivet on a custom domain.'
      schema:
        $ref: '#/components/schemas/ActionSendEmail'
      example:
        type: send_email
        to_email: admin@example.com
        subject: New message from [[contact.name]]
        body_text: 'Phone Number: [[from_number]]


          [[content]]'
    send_text:
      description: 'Sends a text message to any phone number.


        Optionally, the message can be scheduled after a predefined delay, or sent via a different phone than the one that received the message.'
      schema:
        $ref: '#/components/schemas/ActionSendText'
      example:
        type: send_text
        body:
          content: '[[contact.name]] sent you a message: [[content]].'
        to_number: '+16505550123'
    send_text_to_contact:
      description: Sends a text message to the current contact.
      schema:
        $ref: '#/components/schemas/ActionSendTextToContact'
      example:
        type: send_text_to_contact
        body:
          content: Hello, [[contact.name]].
    send_text_to_group:
      description: 'Sends a SMS message to a group defined on your Contacts page.


        Optionally, you can exclude the message sender from receiving the message (common when implementing a group chat system).'
      schema:
        $ref: '#/components/schemas/ActionSendTextToGroup'
      example:
        type: send_text_to_group
        body:
          content: '[[contact.name]] said: [[content]].'
        group_name: subscribers
        exclude_sender: null
    send_ussd:
      description: 'Sends a USSD request from your Android phone to your mobile network.


        On some mobile networks, USSD requests can be used to check your airtime balance, transfer airtime to other phone numbers, and more.


        Note that this requires a compatible Android phone running the Telerivet Gateway app. Also, Telerivet cannot automatically invoke USSD requests that return menus or prompts.'
      schema:
        $ref: '#/components/schemas/ActionSendUssd'
      example:
        type: send_ussd
        mmi_code: '*104*1000*[[from_number.national_raw]]#'
    send_ussd_reply:
      description: Shows the specified text in the active USSD session. If this action is followed by a 'Wait for response' action, the text will be displayed as part of a USSD prompt.
      schema:
        $ref: '#/components/schemas/ActionSendUssdReply'
      example:
        type: send_ussd_reply
        text: Please enter a response on the keypad.
    set_contact:
      description: 'Creates or retrieves a contact with a particular phone number, and sets that as the "current" contact for subsequent rules.


        This rule is often used to allow your organization''s workers to register other people via SMS, and is typically combined with other rules to add the contact to a group and update their contact information.'
      schema:
        $ref: '#/components/schemas/ActionSetContact'
      example:
        type: set_contact
        phone_number: '[[word2]]'
    set_contact_name:
      description: Updates the name of the current contact in Telerivet.
      schema:
        $ref: '#/components/schemas/ActionSetContactName'
      example:
        type: set_contact_name
        name: '[[word3]]'
    set_contact_var:
      description: 'Updates custom contact information for the current contact (for example, email address or birthdate).


        The rules editor lists the current variable names available for your project. You can also use a new variable name consisting of letters, numbers, and underscores.'
      schema:
        $ref: '#/components/schemas/ActionSetContactVar'
      example:
        type: set_contact_var
        variable: email
        value: '[[word4]]'
    set_message_var:
      description: 'Updates a custom variable for the current message.


        When triggered from a service that has a response data table (such as a poll service or custom actions with response handlers), custom message variables set via this action are automatically copied as custom variables on the corresponding response data table row. This is the recommended way to store derived or computed values in the response data table.'
      schema:
        $ref: '#/components/schemas/ActionSetMessageVar'
      example:
        type: set_message_var
        variable: urgent
        value: 'yes'
    set_variable:
      description: 'Updates the value of any writable variable within the Rules Engine.


        Optionally, you can use this rule to perform simple numeric operations between two variables such as addition, subtraction, multiplication and division.


        Read-only variables cannot be updated via this rule.


        [See available variables](#message_variables)'
      schema:
        $ref: '#/components/schemas/ActionSetVariable'
      example:
        type: set_variable
        variable: $foo
        value: '[[word1]]'
    skip_to_question:
      description: Within a poll service, skips to a question outside the normal order.
      schema:
        $ref: '#/components/schemas/ActionSkipToQuestion'
      example:
        type: skip_to_question
        question_id: q3
    star_message:
      description: Adds a star to the current message. This makes it easy to segment important messages on your Messages page.
      schema:
        $ref: 

# --- truncated at 32 KB (53 KB total) ---
# Full source: https://artifacts.apis.io/telerivet-com/openapi/telerivet-com-webhooks-api-openapi.yml