Response payload for a single Twilio integration account.
Expand All
Field
Type
Description
data [required]
object
Data envelope of a Twilio integration account, including server-assigned identity.
attributes [required]
object
Attributes of a Twilio integration account returned in responses.
authentication
<oneOf>
Authentication configured on the Twilio integration account.
<auth_type=basic>
object
The basic authentication method and username configured on the account.
auth_type [required]
enum
The authentication method type.
Allowed enum values: basic
default: basic
username [required]
string
Non-secret username or public identifier for the credential pair.
dataflows
object
Data Datadog collects from Twilio, keyed by dataflow id.
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.
enabled
boolean
Whether Datadog collects this data.
status
object
Read-only collection status of a dataflow.
health
enum
Collection health of a single dataflow.
Allowed enum values: DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN
message
string
Human-readable detail, populated when the dataflow is not healthy.
updated_at
date-time
Time the status was last computed.
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.
enabled
boolean
Whether Datadog collects this data.
status
object
Read-only collection status of a dataflow.
health
enum
Collection health of a single dataflow.
Allowed enum values: DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN
message
string
Human-readable detail, populated when the dataflow is not healthy.
updated_at
date-time
Time the status was last computed.
twilio-cloud-cost-metrics
object
Your Twilio cost data, so that Twilio spend can be broken down and attributed in Cloud Cost Management.
enabled
boolean
Whether Datadog collects this data.
status
object
Read-only collection status of a dataflow.
health
enum
Collection health of a single dataflow.
Allowed enum values: DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN
message
string
Human-readable detail, populated when the dataflow is not healthy.
updated_at
date-time
Time the status was last computed.
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 analyzes and correlates these logs to detect threats in real time.
enabled
boolean
Whether Datadog collects this data.
status
object
Read-only collection status of a dataflow.
health
enum
Collection health of a single dataflow.
Allowed enum values: DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN
message
string
Human-readable detail, populated when the dataflow is not healthy.
updated_at
date-time
Time the status was last computed.
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.
enabled
boolean
Whether Datadog collects this data.
status
object
Read-only collection status of a dataflow.
health
enum
Collection health of a single dataflow.
Allowed enum values: DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN
message
string
Human-readable detail, populated when the dataflow is not healthy.
updated_at
date-time
Time the status was last computed.
name [required]
string
Human-readable name of the Twilio integration account.
settings [required]
object
Settings configured on the Twilio integration account.
account_sid [required]
string
Twilio Account SID that uniquely identifies your Twilio account.
censor_logs
boolean
When enabled, Twilio phone numbers in the to field and SMS message bodies are censored for privacy.
id [required]
string
Server-generated unique identifier of the Twilio integration account.
type [required]
enum
The type of the integration account resource. Always integration-account.
Allowed enum values: integration-account
# Path parameters exportaccount_id="CHANGE_ME" # Use a Personal Access Token or Service Access Token exportDD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
"""
Get a Twilio integration account returns "OK" response
"""fromosimportenvironfromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.twilio_integration_apiimportTwilioIntegrationApiconfiguration=Configuration()configuration.access_token=environ["DD_BEARER_TOKEN"]configuration.unstable_operations["get_twilio_integration_account"]=TruewithApiClient(configuration)asapi_client:api_instance=TwilioIntegrationApi(api_client)response=api_instance.get_twilio_integration_account(account_id="account_id",)print(response)
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"python3"example.py"
# Get a Twilio integration account returns "OK" responserequire"datadog_api_client"DatadogAPIClient.configuredo|config|config.access_token=ENV["DD_BEARER_TOKEN"]config.unstable_operations["v2.get_twilio_integration_account".to_sym]=trueendapi_instance=DatadogAPIClient::V2::TwilioIntegrationAPI.newpapi_instance.get_twilio_integration_account("account_id")
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"rb"example.rb"
// Get a Twilio integration account returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())ctx=context.WithValue(ctx,datadog.ContextAccessToken,os.Getenv("DD_BEARER_TOKEN"))configuration:=datadog.NewConfiguration()configuration.SetUnstableOperationEnabled("v2.GetTwilioIntegrationAccount",true)apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewTwilioIntegrationApi(apiClient)resp,r,err:=api.GetTwilioIntegrationAccount(ctx,"account_id")iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `TwilioIntegrationApi.GetTwilioIntegrationAccount`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `TwilioIntegrationApi.GetTwilioIntegrationAccount`:\n%s\n",responseContent)}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"go run"main.go"
// Get a Twilio integration account returns "OK" responseimportcom.datadog.api.client.ApiClient;importcom.datadog.api.client.ApiException;importcom.datadog.api.client.v2.api.TwilioIntegrationApi;importcom.datadog.api.client.v2.model.TwilioIntegrationAccountResponse;publicclassExample{publicstaticvoidmain(String[]args){ApiClientdefaultClient=ApiClient.getDefaultApiClient();defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));defaultClient.setUnstableOperationEnabled("v2.getTwilioIntegrationAccount",true);TwilioIntegrationApiapiInstance=newTwilioIntegrationApi(defaultClient);try{TwilioIntegrationAccountResponseresult=apiInstance.getTwilioIntegrationAccount("account_id");System.out.println(result);}catch(ApiExceptione){System.err.println("Exception when calling TwilioIntegrationApi#getTwilioIntegrationAccount");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace();}}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"java"Example.java"
// Get a Twilio integration account returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_twilio_integration::TwilioIntegrationAPI;#[tokio::main]asyncfnmain(){letmutconfiguration=datadog::Configuration::new();configuration.set_unstable_operation_enabled("v2.get_twilio_integration_account",true);letapi=TwilioIntegrationAPI::with_config(configuration);letresp=api.get_twilio_integration_account("account_id".to_string()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Get a Twilio integration account returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration({authMethods:{AuthZ:{accessToken: process.env.DD_BEARER_TOKENasstring,},},});configuration.unstableOperations["v2.getTwilioIntegrationAccount"]=true;constapiInstance=newv2.TwilioIntegrationApi(configuration);constparams: v2.TwilioIntegrationApiGetTwilioIntegrationAccountRequest={accountId:"account_id",};apiInstance.getTwilioIntegrationAccount(params).then((data: v2.TwilioIntegrationAccountResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"tsc"example.ts"
Request a personalized demo
Get Started with Datadog
Ask AI
AI-generated responses may be inaccurate. Verify important info.