# Send data to Twilio

{% hint style="info" %}
See the changelog of this Data sink type [here](/data-sinks/twilio-data-sink.md).
{% endhint %}

## Overview

Onum supports integration with [Twilio](https://www.twilio.com/en-us).

Twilio is a cloud communications platform-as-a-service (PaaS) that provides developers with programmable communication tools for building and scaling communication features into their applications.

## Onum Setup

{% stepper %}
{% step %}
Log in to your Onum tenant and click **Data Sinks> New Data sink**.
{% endstep %}

{% step %}
Double-click the **Twilio** Sink.
{% endstep %}

{% step %}
Enter a **Name** for the new Data Sink. Optionally, add a **Description** and some **Tags** to identify the Sink.
{% endstep %}

{% step %}
Decide whether or not to include this Data sink info in the metrics and graphs of the [**Home**](/the-workspace/home.md) area.
{% endstep %}

{% step %}
Enter your **Twilio account SID**<mark style="color:red;">**\***</mark> [string identifier](https://www.twilio.com/docs/glossary/what-is-a-sid). Select it from your [Secrets](/administration/global-settings/organization-settings/secrets-management.md) or create a new one.

Enter your [Twilio authorization token](https://help.twilio.com/articles/223136027-Auth-Tokens-and-How-to-Change-Them). Select it from your [Secrets](/administration/global-settings/organization-settings/secrets-management.md) or create a new one.
{% endstep %}

{% step %}
In the [Secrets](/administration/global-settings/organization-settings/secrets-management.md) area, **New secret** to create a new one:

* Give the secret a **Name**.
* Turn off the **Expiration date** option.
* Click **Add new value** and paste the corresponding value.
* Click **Save**.

<figure><picture><source srcset="/files/NeeWsSQzoChVxRIY76Nt" media="(prefers-color-scheme: dark)"><img src="/files/1oTccyPmgZJ1laY7IhZH" alt=""></picture><figcaption></figcaption></figure>

{% hint style="info" %}
Learn more about secrets in Onum in [this article](/administration/global-settings/organization-settings/secrets-management.md).
{% endhint %}

You can now select the created secrets in the configuration.
{% endstep %}

{% step %}
Toggle **SMS** or **WhatsApp** and enter the **Phone number**<mark style="color:red;">**\***</mark> used to send the message.
{% endstep %}

{% step %}
Specify the **Maximum requests per second**<mark style="color:red;">**\***</mark>. The minimum value is `1`, and the maximum value is `100`.
{% endstep %}

{% step %}
If your organization uses proxy servers, activate the **Proxy configuration** toggle and establish the connection here:

* **Scheme**<mark style="color:red;">**\***</mark> - Choose the required proxy scheme (**HTTP** or **HTTPS**).
* **Host**<mark style="color:red;">**\***</mark> - Set the required proxy address.
* **Port**<mark style="color:red;">**\***</mark> - Set the required proxy port.
* **Username** - Enter your proxy username.
* **Password** - Select your proxy password from the list of your tenant's [Secrets](/administration/global-settings/organization-settings/secrets-management.md) or create a new one.
  {% endstep %}
  {% endstepper %}

Click **Finish** when complete. Your new Data sink will appear in the **Data sinks** area list.

## Pipeline configuration

When it comes to using this Data sink in a [Pipeline](/the-workspace/pipelines.md), you must configure the following output parameters. To do it, simply click the Data sink on the canvas and select **Configuration**.

### Output configuration

<table><thead><tr><th width="169.859375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Event field</strong><mark style="color:red;">*</mark></td><td>Select the incoming field containing the message to send on.</td></tr></tbody></table>

#### **Destination phone numbers**

<table><thead><tr><th width="169.8125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Phone number</strong><mark style="color:red;">*</mark></td><td>Select the incoming field containing the destination phone numbers.</td></tr></tbody></table>

Click **Save** to save your configuration.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onum.com/the-workspace/data-sinks/data-sink-integrations/send-data-to-twilio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
