Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Resolve Senders resource


Resolve senders for a list of recipient addresses and channels.


Resolve Properties

resolve-properties page anchor
Property nameTypeRequiredPIIDescriptionChild properties
fromResolveSendersResponsePairFrom
required
Not PII

The Sender that is eligible to communicate with the recipient endpoint in the to field.


toResolveSendersResponsePairTo
required

The recipient endpoint that is reachable by the Sender in the from field.


priorityinteger
required

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.

Request body parameters

request-body-parameters page anchor
Encoding type:application/json
SchemaExample
View the Swagger documentation for oneOf
Property nameTypeRequiredPIIDescriptionChild properties
senderPoolIdstring

Optional

A reference to a SenderPool.

Example: comms_senderpool_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_senderpool_[0-7][a-hjkmnpqrstv-z0-9]{25,34}

recipientAddressesarray[CommunicationRecipient]
required

A collection of addresses for a single human used to resolve Senders.

Min items: 1Max items: 100

channelsSenderChannelControl

Optional

Define controls to filter and prioritize Senders based on their channel.

200400409429500503

OK

SchemaExample
Property nameTypeRequiredDescriptionChild properties
resultsarray[ResolveSendersResponseResult]

Optional

An array of compatible Sender-Recipient pairs to communicate from and to. Limited to the top 10 highest priority results.

Resolve SendersLink to code sample: Resolve Senders
1
import { TwilioClient } from "twilio-comms";
2
3
async function main() {
4
const client = new TwilioClient({
5
accountId: "TWILIO_ACCOUNT_SID",
6
authToken: "TWILIO_AUTH_TOKEN",
7
});
8
await client.senders.resolve({
9
recipientAddresses: [
10
{
11
address: "+14153902337",
12
channel: "PHONE",
13
},
14
{
15
address: "+14153902337",
16
channel: "WHATSAPP",
17
},
18
{
19
address: "davidpletnjov@example.com",
20
channel: "EMAIL",
21
},
22
],
23
});
24
}
25
main();