provider Api20100401UserDefinedMessageSubscription POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json
@utdk/twilio /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json
Subscribe to User Defined Messages for a given Call SID.
Subscribe to User Defined Messages for a given Call SID.
AccountSid path required
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages.
string
CallSid path required
The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the Call SID that is producing the user defined messages.
string

Try it

Authentication
Configure credentials for Twilio - Api
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

createuserdefinedmessagesubscription
POST/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json
Subscribe to User Defined Messages for a given Call SID.

Parameters

required

The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages.

required

The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the Call SID that is producing the user defined messages.

Input

required

The URL we should call using the `method` to send user defined events to your application. URLs must contain a valid hostname (underscores are not permitted).

A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.

The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. Default is `POST`.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import twilio from '@utdk/twilio';

await twilio.createuserdefinedmessagesubscription()