List what a sender needs to send
/v1/sms/senders/{sender_id}/requirementsawait bird.smsSenderRequirements.list("snd_01krdgeqcxet5s7t44vh8rt9mg");client.sms_sender_requirements.list("snd_01krdgeqcxet5s7t44vh8rt9mg")result, err := client.SmsSenderRequirements.List(ctx, "snd_01krdgeqcxet5s7t44vh8rt9mg", bird.SmsSenderRequirementsListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Println(result)$bird->smsSenderRequirements->list('snd_01krdgeqcxet5s7t44vh8rt9mg');bird sms senders requirements <sender-id>curl -X GET "https://us1.platform.bird.com/v1/sms/senders/{sender_id}/requirements" \
-H "Authorization: Bearer $TOKEN"{
"data": [
{
"sender_id": "snd_01krdgeqcxet5s7t44vh8rt9mg",
"country_code": "US",
"registration_mode": "none",
"sender_id_behavior": "unknown",
"program": "10dlc",
"status": "pending",
"next": [
{
"kind": "operation"
}
],
"category": "transactional",
"registration_id": "scr_01krdgeqcxet5s7t44vh8rt9mg",
"program_entry": "none"
}
],
"programs": [
{
"program": "10dlc",
"countries": [
"US"
],
"status": "pending"
}
]
}
Returns the countries a sender can reach, each country's requirements, and the current registration status. Omit country_code for the full list. An empty filtered result means the sender has no route to that country.
registration_mode distinguishes optional registration from registration required before sending. status reports registration progress. Optional registration can be pending while messages are accepted with an overwritten sender ID. sender_id_behavior reports the effective behavior without overwrite details; those are published in the country messaging context. Check destination_enabled and other sending restrictions before sending.
Each row's next lists actions for that country, including starting an optional registration. An empty list means there is no next registration action; an absent one means this read does not report it.
The operation depends on program: alpha and numeric use compliance submissions, tfn uses toll-free verification, and 10dlc uses campaign assignment. short_code is filed and maintained by Bird: no API action exists, and a rejected one is resolved through support, as the row's next says. Read each row's next after each operation for the next step.
Parâmetros
sender_idstringID of the SMS sender (snd_ prefix), as returned when the sender was created.
Parâmetros de consulta
country_codestringAsk about one destination country. Omit to return every country relevant to the sender.
Payload de resposta
dataOne entry per destination country this sender can reach, which is the level the decision to carry your message is made at. Ask this list whether you can send somewhere, and what it takes first. A country missing from it is one this sender has no route to at all, so no registration would open it.
programsThe same countries seen as the registrations they belong to, one entry per registration, with the countries each one covers. Ask this list what to do next: an entry whose status is registration_required is a registration you still have to make, and its countries are the ones it would open. Every other entry is a registration you have already made, so this list is the whole picture rather than only the part you have finished.
Recursos relacionados
Continue com a documentação, guias e exemplos sobre este tópico.