Resolve Senders resource
Resolve senders for a list of recipient addresses and channels.
The Sender that is eligible to communicate with the recipient endpoint in the to field.
The recipient endpoint that is reachable by the Sender in the from field.
The priority of the result pair, the lower the value, the more preferred the result. This is useful when there are multiple viable options to reach the intended recipient.
POST https://comms.twilio.com/v1/Senders/Resolve
Resolve senders for a list of recipient addresses and channels.
application/jsonA reference to a SenderPool.
comms_senderpool_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_senderpool_[0-7][a-hjkmnpqrstv-z0-9]{25,34}A collection of addresses for a single human used to resolve Senders.
1Max items: 100Define controls to filter and prioritize Senders based on their channel.
OK
Optional
An array of compatible Sender-Recipient pairs to communicate from and to. Limited to the top 10 highest priority results.
1import { TwilioClient } from "twilio-comms";23async function main() {4const client = new TwilioClient({5accountId: "TWILIO_ACCOUNT_SID",6authToken: "TWILIO_AUTH_TOKEN",7});8await client.senders.resolve({9recipientAddresses: [10{11address: "+14153902337",12channel: "PHONE",13},14{15address: "+14153902337",16channel: "WHATSAPP",17},18{19address: "davidpletnjov@example.com",20channel: "EMAIL",21},22],23});24}25main();