bird trust gates verification create
Usage
Ejemplo de código
bird trust gates verification create <slug> [flags]Description
Create a trust-gate verification
What comes back decides who finishes it. A provider-hosted requirement answers with hosted_url: hand that link to the person whose identity is being checked and stop there, because only they can complete it. A requirement verified with a one-time code answers with the channel and a masked destination instead, and you finish it with bird trust gates verification check once they read the code back to you. Pass no destination for the hosted kind.
Build the request from flags, a JSON TrustVerificationStart 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
Ejemplo de código
# print the body shape (no credentials needed)
bird trust gates verification create --example
# the body it prints:Ejemplo de código
{
"email": "alex@example.com"
}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 |
|---|---|
| Where to send the one-time code, for a requirement verified that way. Omit for a provider-hosted requirement, which returns a link instead. Pass this or --phone-number, never both. | |
| --phone-number | Where to send the one-time code, in E.164. Omit for a provider-hosted requirement. Pass this or --email, never both. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird trust gates verification check | Verify a trust-gate code |