Sign inGet Started

bird voice calls create

Usage

कोड उदाहरण
bird voice calls create [flags]

Description

Create a call
Preview: run bird voice --help to discover installed commands and bird update --check for newer releases. Installation: https://bird.com/docs/cli. If calls create is absent, use the HTTP API or SDKs. Places a real outbound call after browser confirmation and starts the active published sequence after the recipient answers. Requires voice_management:write and voice:write. Normal calling charges apply. Reuse the idempotency key and the same input for retries. Confirmation expires after 90 minutes; a missing result does not prove the call never ran. Acceptance does not prove a connected call.
Build the request from flags, a JSON CreateVoiceCallRequest 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

कोड उदाहरण
# print the body shape (no credentials needed)
bird voice calls create --example

# the body it prints:
कोड उदाहरण
{
  "from": "+12025550100",
  "sequence": {
    "entry_node_id": "start",
    "id": "vsq_01krdgeqcxet5s7t44vh8rt9mg",
    "trigger_data": {}
  },
  "to": "+12025550101"
}
कोड उदाहरण
# prepare a call for browser confirmation
bird voice calls create --body-file call.json --idempotency-key "${IDEMPOTENCY_KEY:?Set a fresh key for a new call; reuse it for retries}"

# inspect the same request without creating a confirmation
bird voice calls create --body-file call.json --idempotency-key "${IDEMPOTENCY_KEY:?Set a fresh key for a new call; reuse it for retries}" --dry-run

Options

Call

NameDescription
--fromPermitted caller number in E.164 format (required; or in --body-file)
--toRecipient number in E.164 format (required; or in --body-file)
--sequence-idPublished voice sequence to run (vsq_ prefix) (required; or in --body-file)
--entry-node-idVoice call entry node in the published sequence (required; or in --body-file)
--trigger-dataEntry data as a JSON object; use {} when no data is needed (required; or in --body-file)
--ringing-timeout-seconds <n>Ringing timeout in seconds, from 5 to 120 (default 30)

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-keyStable key for this intended call; reuse with identical input to retrieve the same confirmation (required)

Options

NameDescription
--response-schemaPrint the fields this command returns, then exit
--confirmation-idWait for an existing confirmation of this exact request

संबंधित संसाधन

इस विषय के लिए डॉक्यूमेंटेशन, गाइड और उदाहरणों के साथ आगे बढ़ें। संसाधन अंग्रेज़ी में हैं।

इम्प्लीमेंटेशन ब्रीफ़ पाएँ