Senders resource
A Sender resource represents a messaging sender identity available for use with the Bulk Messaging API. Use the Senders resource to list, fetch, resolve, and search your available senders.
A reference to a Sender.
comms_sender_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_sender_[0-7][a-hjkmnpqrstv-z0-9]{25,34}The name associated with the address inventory, such as phone number or email address.
This name might be visible to recipients in certain communications, such as Email, and helps identify the sender.
Note: To update this value, use the appropriate Twilio API for the inventory type. For example, for Senders with the channel email, update displayName using the EmailSenders API.
The Sender’s communication address within a channel, such as a phone number, email address, or device token.
The medium which a unit of communication is transmitted through. These are differentiated by a mix of transmission protocol, network controller/owner, endpoint and address model, as well as the model for content of the atomic unit of communication itself.
SMSRCSEMAILWHATSAPPPUSHThe status of a Sender.
If a Sender is activated, it is available to send and receive communications.
If a Sender is deactivated, it is not available to send or receive communications.
ACTIVATEDDEACTIVATEDCustom 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.
10GET https://comms.twilio.com/v1/Senders/{senderId}
Retrieve a Sender by its ID.
comms_sender_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_sender_[0-7][a-hjkmnpqrstv-z0-9]{25,34}OK
Optional
A reference to a Sender.
comms_sender_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_sender_[0-7][a-hjkmnpqrstv-z0-9]{25,34}Optional
The name associated with the address inventory, such as phone number or email address.
This name might be visible to recipients in certain communications, such as Email, and helps identify the sender.
Note: To update this value, use the appropriate Twilio API for the inventory type. For example, for Senders with the channel email, update displayName using the EmailSenders API.
Optional
The Sender’s communication address within a channel, such as a phone number, email address, or device token.
Optional
The medium which a unit of communication is transmitted through. These are differentiated by a mix of transmission protocol, network controller/owner, endpoint and address model, as well as the model for content of the atomic unit of communication itself.
SMSRCSEMAILWHATSAPPPUSHOptional
The status of a Sender.
If a Sender is activated, it is available to send and receive communications.
If a Sender is deactivated, it is not available to send or receive communications.
ACTIVATEDDEACTIVATEDOptional
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/Senders
Retrieve a list of all Senders available for messaging.
Filter to Senders that match a specific channel.
SMSRCSEMAILWHATSAPPPUSHFilter to Senders with the specified status.
ACTIVATEDDEACTIVATEDFilter to Senders created after the specified date and time in ISO 8601 format.
Filter to Senders created before the specified date and time in ISO 8601 format.
50Example: 50Minimum: 1Maximum: 1000OK
Optional
A list of Senders
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.senders.list({9channel: "SMS",10status: "ACTIVATED",11startDate: new Date("2024-01-15T09:30:00Z"),12endDate: new Date("2024-01-15T09:30:00Z"),13pageToken: "pageToken",14pageSize: 50,15});16}17main();