---
title: Update a Twilio integration account
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Twilio Integration
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Update a Twilio integration account{% #update-a-twilio-integration-account %}
Copy pageCopied
{% tab title="v2" %}
**Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
| Datadog site      | API endpoint                                                                                   |
| ----------------- | ---------------------------------------------------------------------------------------------- |
| ap1.datadoghq.com | PATCH https://api.ap1.datadoghq.com/api/v2/integration-interfaces/twilio/accounts/{account_id} |
| ap2.datadoghq.com | PATCH https://api.ap2.datadoghq.com/api/v2/integration-interfaces/twilio/accounts/{account_id} |
| app.datadoghq.eu  | PATCH https://api.datadoghq.eu/api/v2/integration-interfaces/twilio/accounts/{account_id}      |
| app.ddog-gov.com  | PATCH https://api.ddog-gov.com/api/v2/integration-interfaces/twilio/accounts/{account_id}      |
| us2.ddog-gov.com  | PATCH https://api.us2.ddog-gov.com/api/v2/integration-interfaces/twilio/accounts/{account_id}  |
| uk1.datadoghq.com | PATCH https://api.uk1.datadoghq.com/api/v2/integration-interfaces/twilio/accounts/{account_id} |
| app.datadoghq.com | PATCH https://api.datadoghq.com/api/v2/integration-interfaces/twilio/accounts/{account_id}     |
| us3.datadoghq.com | PATCH https://api.us3.datadoghq.com/api/v2/integration-interfaces/twilio/accounts/{account_id} |
| us5.datadoghq.com | PATCH https://api.us5.datadoghq.com/api/v2/integration-interfaces/twilio/accounts/{account_id} |

### Overview

Update a Twilio integration account. Only the fields provided are changed. This endpoint requires the `manage_integrations` permission.

### Arguments

#### Path Parameters

| Name                         | Type   | Description                                   |
| ---------------------------- | ------ | --------------------------------------------- |
| account_id [*required*] | string | Unique identifier of the integration account. |

### Request

#### Body Data (required)



{% tab title="Model" %}

| Parent field               | Field                        | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------- | ---------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|                            | data [*required*]       | object        | Data envelope for updating a Twilio integration account.                                                                                                                                                                                                                                                                                                                                                                                         |
| data                       | attributes [*required*] | object        | Writable attributes used to update a Twilio integration account. Every field is optional; only the fields provided are changed. When `dataflows` is provided, only the dataflow ids included in the request are modified; dataflows omitted from the map keep their current configuration.                                                                                                                                                       |
| attributes                 | authentication               |  <oneOf> | Authentication for updating the Twilio integration account. Exactly one method is set.                                                                                                                                                                                                                                                                                                                                                           |
| authentication             | <auth_type=basic>            | object        | Username and password authentication. Only the fields provided are changed; omit `password` to keep the stored one.                                                                                                                                                                                                                                                                                                                              |
| <auth_type=basic>          | auth_type [*required*]  | enum          | The authentication method type. Allowed enum values: `basic`                                                                                                                                                                                                                                                                                                                                                                                     |
| <auth_type=basic>          | password                     | string        | Secret password or private key.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <auth_type=basic>          | username                     | string        | Non-secret username or public identifier for the credential pair.                                                                                                                                                                                                                                                                                                                                                                                |
| attributes                 | dataflows                    | object        | Data Datadog collects from Twilio, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set `enabled` to start or stop it. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Where a dataflow depends on a Twilio feature being enabled, that prerequisite is noted on the dataflow; a dataflow enabled without it is stored but collects no data. |
| dataflows                  | twilio-alerts-logs           | object        | Twilio Alert resource logs, which detail the errors and warnings raised when Twilio makes a webhook request to your server or when your application calls the Twilio REST API. This is the one kind of data the integration collects by default.                                                                                                                                                                                                 |
| twilio-alerts-logs         | enabled                      | boolean       | Whether Datadog collects this data. Defaults to `true`; set to `false` to stop collection.                                                                                                                                                                                                                                                                                                                                                       |
| dataflows                  | twilio-call-summaries-logs   | object        | Twilio Call Summary resource logs, covering the metadata and performance of the calls made from your Twilio account. Requires Voice Insights Advanced Features to be enabled on the Twilio account; without it this dataflow collects no data.                                                                                                                                                                                                   |
| twilio-call-summaries-logs | enabled                      | boolean       | Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection.                                                                                                                                                                                                                                                                                                                                                      |
| dataflows                  | twilio-cloud-cost-metrics    | object        | Your Twilio cost data, so that Twilio spend can be broken down and attributed in [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management.md). Cost data appears in Cloud Cost Management within 24 hours of enabling this dataflow.                                                                                                                                                                                             |
| twilio-cloud-cost-metrics  | enabled                      | boolean       | Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection.                                                                                                                                                                                                                                                                                                                                                      |
| dataflows                  | twilio-events-logs           | object        | Twilio Event resource logs, which record virtually every action taken in your Twilio account, such as provisioning a phone number, changing account security settings, or deleting a recording. Actions are recorded whether they came from the REST API, a user in the Twilio Console, or Twilio itself. [Cloud SIEM](https://docs.datadoghq.com/security/cloud_siem.md) analyzes and correlates these logs to detect threats in real time.     |
| twilio-events-logs         | enabled                      | boolean       | Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection.                                                                                                                                                                                                                                                                                                                                                      |
| dataflows                  | twilio-messages-logs         | object        | Twilio Message resource logs for inbound and outbound messages, used to track delivery and troubleshoot message errors. A log is produced when you send a message through the REST API, when Twilio executes a TwiML instruction, and when someone messages one of your Twilio numbers or channel addresses. Message bodies are never collected.                                                                                                 |
| twilio-messages-logs       | enabled                      | boolean       | Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection.                                                                                                                                                                                                                                                                                                                                                      |
| attributes                 | name                         | string        | Human-readable name of the Twilio integration account.                                                                                                                                                                                                                                                                                                                                                                                           |
| attributes                 | settings                     | object        | Settings for updating the Twilio integration account. Only the fields provided are changed.                                                                                                                                                                                                                                                                                                                                                      |
| settings                   | account_sid                  | string        | Twilio Account SID that uniquely identifies your Twilio account.                                                                                                                                                                                                                                                                                                                                                                                 |
| settings                   | censor_logs                  | boolean       | When enabled, Twilio phone numbers in the `to` field and SMS message bodies are censored for privacy.                                                                                                                                                                                                                                                                                                                                            |
| data                       | id [*required*]         | string        | Unique identifier of the Twilio integration account to update.                                                                                                                                                                                                                                                                                                                                                                                   |
| data                       | type [*required*]       | enum          | The type of the integration account resource. Always `integration-account`. Allowed enum values: `integration-account`                                                                                                                                                                                                                                                                                                                           |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": {
    "attributes": {
      "authentication": {
        "auth_type": "basic",
        "password": "your-password",
        "username": "datadog"
      },
      "dataflows": {
        "twilio-alerts-logs": {
          "enabled": true
        },
        "twilio-call-summaries-logs": {
          "enabled": true
        },
        "twilio-cloud-cost-metrics": {
          "enabled": true
        },
        "twilio-events-logs": {
          "enabled": true
        },
        "twilio-messages-logs": {
          "enabled": true
        }
      },
      "name": "twilio-prod",
      "settings": {
        "account_sid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "censor_logs": true
      }
    },
    "id": "953a0060-81ec-4221-aed4-d4733b59cd96",
    "type": "integration-account"
  }
}
```

{% /tab %}

### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
Response payload for a single Twilio integration account.

| Parent field               | Field                         | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| -------------------------- | ----------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                            | data [*required*]        | object        | Data envelope of a Twilio integration account, including server-assigned identity.                                                                                                                                                                                                                                                                                                                                                           |
| data                       | attributes [*required*]  | object        | Attributes of a Twilio integration account returned in responses.                                                                                                                                                                                                                                                                                                                                                                            |
| attributes                 | authentication                |  <oneOf> | Authentication configured on the Twilio integration account.                                                                                                                                                                                                                                                                                                                                                                                 |
| authentication             | <auth_type=basic>             | object        | The basic authentication method and username configured on the account.                                                                                                                                                                                                                                                                                                                                                                      |
| <auth_type=basic>          | auth_type [*required*]   | enum          | The authentication method type. Allowed enum values: `basic`                                                                                                                                                                                                                                                                                                                                                                                 |
| <auth_type=basic>          | username [*required*]    | string        | Non-secret username or public identifier for the credential pair.                                                                                                                                                                                                                                                                                                                                                                            |
| attributes                 | dataflows                     | object        | Data Datadog collects from Twilio, keyed by dataflow id.                                                                                                                                                                                                                                                                                                                                                                                     |
| dataflows                  | twilio-alerts-logs            | object        | Twilio Alert resource logs, which detail the errors and warnings raised when Twilio makes a webhook request to your server or when your application calls the Twilio REST API.                                                                                                                                                                                                                                                               |
| twilio-alerts-logs         | enabled                       | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                                                                                                          |
| twilio-alerts-logs         | status                        | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                                                                                                                                                                                                   |
| status                     | health                        | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                                                                                                                                                                                             |
| status                     | message                       | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                                                                                                                                                                                           |
| status                     | updated_at                    | date-time     | Time the status was last computed.                                                                                                                                                                                                                                                                                                                                                                                                           |
| dataflows                  | twilio-call-summaries-logs    | object        | Twilio Call Summary resource logs, covering the metadata and performance of the calls made from your Twilio account. Requires Voice Insights Advanced Features to be enabled on the Twilio account; without it this dataflow collects no data.                                                                                                                                                                                               |
| twilio-call-summaries-logs | enabled                       | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                                                                                                          |
| twilio-call-summaries-logs | status                        | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                                                                                                                                                                                                   |
| status                     | health                        | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                                                                                                                                                                                             |
| status                     | message                       | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                                                                                                                                                                                           |
| status                     | updated_at                    | date-time     | Time the status was last computed.                                                                                                                                                                                                                                                                                                                                                                                                           |
| dataflows                  | twilio-cloud-cost-metrics     | object        | Your Twilio cost data, so that Twilio spend can be broken down and attributed in [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management.md).                                                                                                                                                                                                                                                                               |
| twilio-cloud-cost-metrics  | enabled                       | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                                                                                                          |
| twilio-cloud-cost-metrics  | status                        | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                                                                                                                                                                                                   |
| status                     | health                        | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                                                                                                                                                                                             |
| status                     | message                       | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                                                                                                                                                                                           |
| status                     | updated_at                    | date-time     | Time the status was last computed.                                                                                                                                                                                                                                                                                                                                                                                                           |
| dataflows                  | twilio-events-logs            | object        | Twilio Event resource logs, which record virtually every action taken in your Twilio account, such as provisioning a phone number, changing account security settings, or deleting a recording. Actions are recorded whether they came from the REST API, a user in the Twilio Console, or Twilio itself. [Cloud SIEM](https://docs.datadoghq.com/security/cloud_siem.md) analyzes and correlates these logs to detect threats in real time. |
| twilio-events-logs         | enabled                       | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                                                                                                          |
| twilio-events-logs         | status                        | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                                                                                                                                                                                                   |
| status                     | health                        | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                                                                                                                                                                                             |
| status                     | message                       | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                                                                                                                                                                                           |
| status                     | updated_at                    | date-time     | Time the status was last computed.                                                                                                                                                                                                                                                                                                                                                                                                           |
| dataflows                  | twilio-messages-logs          | object        | Twilio Message resource logs for inbound and outbound messages, used to track delivery and troubleshoot message errors. A log is produced when you send a message through the REST API, when Twilio executes a TwiML instruction, and when someone messages one of your Twilio numbers or channel addresses. Message bodies are never collected.                                                                                             |
| twilio-messages-logs       | enabled                       | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                                                                                                          |
| twilio-messages-logs       | status                        | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                                                                                                                                                                                                   |
| status                     | health                        | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                                                                                                                                                                                             |
| status                     | message                       | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                                                                                                                                                                                           |
| status                     | updated_at                    | date-time     | Time the status was last computed.                                                                                                                                                                                                                                                                                                                                                                                                           |
| attributes                 | name [*required*]        | string        | Human-readable name of the Twilio integration account.                                                                                                                                                                                                                                                                                                                                                                                       |
| attributes                 | settings [*required*]    | object        | Settings configured on the Twilio integration account.                                                                                                                                                                                                                                                                                                                                                                                       |
| settings                   | account_sid [*required*] | string        | Twilio Account SID that uniquely identifies your Twilio account.                                                                                                                                                                                                                                                                                                                                                                             |
| settings                   | censor_logs                   | boolean       | When enabled, Twilio phone numbers in the `to` field and SMS message bodies are censored for privacy.                                                                                                                                                                                                                                                                                                                                        |
| data                       | id [*required*]          | string        | Server-generated unique identifier of the Twilio integration account.                                                                                                                                                                                                                                                                                                                                                                        |
| data                       | type [*required*]        | enum          | The type of the integration account resource. Always `integration-account`. Allowed enum values: `integration-account`                                                                                                                                                                                                                                                                                                                       |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": {
    "attributes": {
      "authentication": {
        "auth_type": "basic",
        "username": "datadog"
      },
      "dataflows": {
        "twilio-alerts-logs": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "twilio-call-summaries-logs": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "twilio-cloud-cost-metrics": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "twilio-events-logs": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "twilio-messages-logs": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        }
      },
      "name": "twilio-prod",
      "settings": {
        "account_sid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "censor_logs": true
      }
    },
    "id": "953a0060-81ec-4221-aed4-d4733b59cd96",
    "type": "integration-account"
  }
}
```

{% /tab %}

{% /tab %}

{% tab title="400" %}
Bad Request
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Forbidden
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="404" %}
Not Found
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="422" %}
The server cannot process the request because it contains invalid data.
{% tab title="Model" %}
API error response.

| Parent field | Field                    | Type     | Description                                                                     |
| ------------ | ------------------------ | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | detail                   | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                     | object   | Non-standard meta-information about the error                                   |
| errors       | source                   | object   | References to the source of the error.                                          |
| source       | header                   | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter                | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer                  | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status                   | string   | Status code of the response.                                                    |
| errors       | title                    | string   | Short human-readable summary of the error.                                      |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    {
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Path parameters export account_id="CHANGE_ME" \# Curl command curl -X PATCH "https://api.datadoghq.com/api/v2/integration-interfaces/twilio/accounts/${account_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d @- << EOF
{
  "data": {
    "attributes": {},
    "id": "953a0060-81ec-4221-aed4-d4733b59cd96",
    "type": "integration-account"
  }
}
EOF 
                
{% /tab %}
