bird sms 10dlc campaigns numbers assign
Usage
Exemple de code
bird sms 10dlc campaigns numbers assign <campaign-id> [flags]Description
Assign numbers to a 10DLC campaign
Assign the workspace's US long codes to a 10DLC campaign so they can send to US recipients once the carriers confirm each number. Either every number in the request is assigned or none is.
Build the request from flags, a JSON TCRCampaignNumberLinkCreate body via --body-file ("-" reads
stdin), or both — a flag overrides the matching body field. Run --example to
print a ready-to-edit body, or --dry-run to print the resolved request without
sending it.
Examples
Exemple de code
# print the body shape (no credentials needed)
bird sms 10dlc campaigns numbers assign --example
# the body it prints:Exemple de code
{
"sender_ids": ["snd_01krdgeqcxet5s7t44vh8rt9mg"]
}Options
Request
| Name | Description |
|---|---|
| --body-file | Read the JSON request body from this file; "-" reads stdin |
| --example | Print a complete example request body, then exit |
| --dry-run | Print the resolved request without sending it, then exit |
| --idempotency-key | Deduplication key; a retry with the same key won't act twice |
Options
| Name | Description |
|---|---|
| --sender-ids <value>… | The senders to register under this campaign. Each must be a US long code the workspace owns. Toll-free numbers and alphanumeric senders use their own registration. (required; or in --body-file) |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird sms 10dlc campaigns numbers get | Get a 10DLC campaign number |
| bird sms 10dlc campaigns numbers list | List a 10DLC campaign's numbers |
| bird sms 10dlc campaigns numbers unassign | Unassign a number from a 10DLC campaign |
Ressources associées
Poursuivez avec la documentation, les guides et les exemples sur ce sujet. Les ressources sont en anglais.
Regarder le guideSending your first SMSComprendre le conceptWhat does SMS mean?Explorer la fonctionnalitéSMSSuivre le parcours d'apprentissageBuild your first integration
Essayez la pratique et obtenez un guide d'implémentation