Sign inGet Started

bird amb send

Usage

Exemple de code
bird amb send [flags]

Description

Reply to an Apple Messages conversation

Requires a configured, connected business account and an open conversation. Queues a billable message; sent means Apple gateway acceptance. The API validates native content. Send native content with --content, or a stored template with --template (browse them with "bird amb templates list"); the two are mutually exclusive, and a template send derives its category from the template.

Build the request from flags, a JSON AMBMessageSendRequest 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 amb send --example

# the body it prints:
Exemple de code
{
  "content": {
    "body": "Your order is ready.",
    "type": "text"
  },
  "from": "b52d6267-2b62-4f8a-8842-0533d0f1dc07",
  "to": "opaque-customer-id"
}
Exemple de code
# send by template with variable values
bird amb send --from b52d6267-2b62-4f8a-8842-0533d0f1dc07 --to opaque-customer --template bird_order_update --parameters '{"order_number":"1234"}'

Options

Message

NameDescription
--fromApple Business ID of a configured business (required; or in --body-file)
--toOpaque customer identifier from an open conversation (required; or in --body-file)
--contentNative text, rich_link, or interactive content as JSON (mutually exclusive with --template)
--templateSend by a stored template: its id (amt_…) or slug (mutually exclusive with --content)
--languageTemplate language as a BCP-47 tag (e.g. fr); template sends only
--parametersTemplate variable values as a JSON object; template sends only
--sourceSender identity permitted by the credential: api, automation, or operator

Labels

NameDescription
--categoryCategory label for statistics (rejected alongside --template, which derives its own category)
--groupDepartment identifier
--intentPurpose of the conversation
--localeApple locale identifier; omitted uses the conversation locale
--metadataPer-message context as a JSON object, up to 2 KB
--tagsStructured labels as a JSON array of name and value objects

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird amb getGet a message
bird amb listList messages
bird amb list-eventsList events for a message

Poursuivez avec la documentation, les guides et les exemples sur ce sujet.