SenderPools resource
A SenderPool resource represents a group of senders that can be used together for messaging. Use SenderPools to organize and manage senders for different messaging use cases.
A reference to a SenderPool.
comms_senderpool_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_senderpool_[0-7][a-hjkmnpqrstv-z0-9]{25,34}Custom metadata in the form of key-value pairs. Maximum size of a tag key is 128 characters. Maximum size of a tag value is 256 characters. There can be a maximum of 10 key-value pairs.
This field can be templated with Liquid.
Specify variables with each recipient for personalization.
10POST https://comms.twilio.com/v1/SenderPools
Create a new SenderPool.
application/jsonThe list of Senders to add to the SenderPool.
0Max items: 10000Custom metadata in the form of key-value pairs. Maximum size of a tag key is 128 characters. Maximum size of a tag value is 256 characters. There can be a maximum of 10 key-value pairs.
This field can be templated with Liquid.
Specify variables with each recipient for personalization.
10The request was accepted and an Operation was created to track its progress. The response body contains the ID and link to the Operation resource.
Optional
The Operation ID is an identifier that can be used to correlate all of the resources created in a request.
Issue a GET request to the resource list location, using the Operation ID as a query parameter to retrieve the resources that correlate with the Operation.
comms_operation_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_operation_[0-7][a-hjkmnpqrstv-z0-9]{25,34}Optional
The location (uri) of the Operation resource identified by operationId.
1import { TwilioClient } from "twilio-comms";23async function main() {4const client = new TwilioClient({5accountId: "TWILIO_ACCOUNT_SID",6authToken: "TWILIO_AUTH_TOKEN",7});8await client.senderPools.create({9name: "Sales Leads - APAC",10tags: {11"region": "APAC",12},13});14}15main();
GET https://comms.twilio.com/v1/SenderPools/{senderPoolId}
Retrieve a SenderPool by its ID.
comms_senderpool_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_senderpool_[0-7][a-hjkmnpqrstv-z0-9]{25,34}OK
Optional
A reference to a SenderPool.
comms_senderpool_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_senderpool_[0-7][a-hjkmnpqrstv-z0-9]{25,34}Optional
Optional
Custom metadata in the form of key-value pairs. Maximum size of a tag key is 128 characters. Maximum size of a tag value is 256 characters. There can be a maximum of 10 key-value pairs.
This field can be templated with Liquid.
Specify variables with each recipient for personalization.
10Optional
Optional
GET https://comms.twilio.com/v1/SenderPools
Retrieve a list of all SenderPools.
Filter to SenderPools created after the specified date and time in ISO 8601 format.
Filter to SenderPools created before the specified date and time in ISO 8601 format.
Filter to SenderPools by SenderPool Operation ID.
comms_operation_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_operation_[0-7][a-hjkmnpqrstv-z0-9]{25,34}50Example: 50Minimum: 1Maximum: 1000OK
Optional
A list of SenderPools.
Optional
Metadata for paginated results. This object contains two tokens to navigate through paginated results.
- Use
nextto retrieve the 'next' page in the result list. - Use
selfto retrieve the same page of the result list again. - Supply the token in the
pageTokenquery param.
1import { TwilioClient } from "twilio-comms";23async function main() {4const client = new TwilioClient({5accountId: "TWILIO_ACCOUNT_SID",6authToken: "TWILIO_AUTH_TOKEN",7});8await client.senderPools.list({9startDate: new Date("2024-01-15T09:30:00Z"),10endDate: new Date("2024-01-15T09:30:00Z"),11operationId: "comms_operation_01h9krwprkeee8fzqspvwy6nq8",12pageToken: "pageToken",13pageSize: 50,14});15}16main();
PATCH https://comms.twilio.com/v1/SenderPools/{senderPoolId}
Update an existing SenderPool.
comms_senderpool_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_senderpool_[0-7][a-hjkmnpqrstv-z0-9]{25,34}application/jsonCustom metadata in the form of key-value pairs. Maximum size of a tag key is 128 characters. Maximum size of a tag value is 256 characters. There can be a maximum of 10 key-value pairs.
This field can be templated with Liquid.
Specify variables with each recipient for personalization.
10The request was accepted and a resource ID is available to check the result. The response body contains the resource ID and link to the resource.
Optional
The Resource ID is an identifier for the resource that was created or updated in response to the request.
Optional
The location (uri) of the resource identified by Resource-Id.
1import { TwilioClient } from "twilio-comms";23async function main() {4const client = new TwilioClient({5accountId: "TWILIO_ACCOUNT_SID",6authToken: "TWILIO_AUTH_TOKEN",7});8await client.senderPools.update("comms_senderpool_01h9krwprkeee8fzqspvwy6nq8", {9name: "Customer Support Senders - Tier 1",10tags: {11"tier": "1",12},13});14}15main();
DELETE https://comms.twilio.com/v1/SenderPools/{senderPoolId}
Delete a SenderPool by its ID.
comms_senderpool_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_senderpool_[0-7][a-hjkmnpqrstv-z0-9]{25,34}The request was accepted and a resource ID is available to check the result. The response body contains the resource ID and link to the resource.
Optional
The Resource ID is an identifier for the resource that was created or updated in response to the request.
Optional
The location (uri) of the resource identified by Resource-Id.