Create a sender registration for a country
/v1/sms/senders/{sender_id}/registrationsawait bird.smsSenderRegistrations.create("snd_01krdgeqcxet5s7t44vh8rt9mg", {country_code: "NL"});client.sms_sender_registrations.create("snd_01krdgeqcxet5s7t44vh8rt9mg", country_code="NL")result, err := client.SmsSenderRegistrations.Create(ctx, "snd_01krdgeqcxet5s7t44vh8rt9mg", bird.SmsSenderRegistrationsCreateParams{CountryCode: "NL"})
if err != nil {
log.Fatal(err)
}
fmt.Println(result)$bird->smsSenderRegistrations->create('snd_01krdgeqcxet5s7t44vh8rt9mg', (new \MessageBird\Wire\Model\SMSCountryRegistrationCreate())->setCountryCode('NL'));bird sms senders registrations create <sender-id> \
--category transactional \
--country-code UScurl -X POST "https://us1.platform.bird.com/v1/sms/senders/{sender_id}/registrations" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"country_code": "US",
"category": "transactional"
}'{
"id": "scr_01krdgeqcxet5s7t44vh8rt9mg",
"country_code": "US",
"registration_mode": "none",
"sender_id_behavior": "unknown",
"program": "10dlc",
"category": "transactional",
"status": "pending"
}
Registers a sender for a destination country. If the country requires review, the sender can send there after approval. If registration is optional, it takes effect immediately and records the intended message category.
A priced alphanumeric sender incurs a setup fee and a recurring monthly charge, and needs
enough balance for both when it is billed: on this call where the country approves
immediately, or on approval where the country reviews, so a reviewed registration is created
unbilled. Insufficient balance at that moment returns 402. Registering a number is free.
A 412 means required identity verification is incomplete or organization eligibility
prevents registration. Follow the error's recovery guidance: complete missing verification,
or contact support about an eligibility review or denial. An eligibility assessment still
in progress returns 503; retry later. A registration that already exists for the country and is
neither rejected nor suspended returns 409, and that includes one still pending review; a
rejected registration is resubmitted, and a suspended one reactivated, by calling this again.
A sender covered by a dedicated program, such as a US 10DLC campaign or toll-free
verification, returns 422 and must use that program instead. Short-code registrations
are ones we manage, and they also return 422.
Parameter
sender_idstringID of the SMS sender (snd_ prefix), as returned when the sender was created.
Anfrage-Nutzlast
country_codeISO 3166-1 alpha-2 country code.
categoryMessage category to register the sender for. Omit to register the sender for all categories.
Antwort-Payload
idIdentifier of this country registration.
country_coderegistration_modeCurrent registration policy for this destination and sender type. Omitted if the policy or sender is no longer available.
sender_id_behaviorExpected sender ID behavior for this registration's message categories. Optional registration preserves the sender ID once approved. Required registration can still use an overwritten sender ID after approval. Omitted if the policy or sender is no longer available.
programThe registration program behind this row. Null for a country that required none, which is the state a row records rather than a program called "none".
categoryMessage category this registration is approved for. Null means the registration is unrestricted and admits any category.
Possible values (may grow over time): transactional, marketing, authentication, service
statusprogram_refThe program artifact that decided this registration, null where none produced it. Which resource it names follows from program, and its id prefix tells you too: a toll-free verification for tfn, or a campaign number link for 10dlc. The link connects this number to its campaign. Get the campaign from Get a 10DLC campaign number link. Worth following when the status is under_review, because that value covers both the carrier still reviewing and the carrier waiting on more information from you, and only the program's own resource tells those apart.
rejection_reasonReason the registration was rejected, shown when the status is rejected. Null for registrations that were never rejected.
created_atupdated_atVerwandte Ressourcen
Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema.