Documentation
Sign inGet started

bird verify verifications next-channel

Usage

Code example
bird verify verifications next-channel [flags]

Description

Send a fresh passcode on the next channel, for a recipient who never received it
Identify the verification by the same recipient it was started for (--phone-number and/or --email); no verification id is needed. The send skips the resend cooldown, and every passcode already sent stays valid, so a late arrival can still be checked. The result is the verification with "last_channel" set to the channel the new passcode went to. A verification whose channel plan is exhausted returns 422 NoNextChannel — re-create the verification to resend on the current channel.
Build the request from flags, a JSON VerificationNextChannelRequest 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.

Procedure

Step 3 of 3 of "Verify a recipient with a one-time passcode". Previous: bird verify verifications check.

Examples

Code example
# print the body shape (no credentials needed)
bird verify verifications next-channel --example

# the body it prints:
Code example
{
  "to": {
    "phone_number": "+15551234567"
  }
}
Code example
# the recipient says the SMS never arrived
bird verify verifications next-channel --phone-number +15551234567

Options

Recipient

NameDescription
--emailRecipient email address the verification was started for
--phone-numberRecipient phone number (E.164) the verification was started for

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 verify verifications checkCheck a passcode a recipient submitted for their verification
bird verify verifications createStart a verification and send a one-time passcode to a recipient