verify_email_code
Use this after create_invoice returns verification_required. Arguments: { challenge_id, code }. On success returns a verification_token. Retry create_invoice with the same arguments plus that verification_token passed in its verification_token field. The token is reusable for ~30 min, so thread the same one into every subsequent create_invoice for the same sender email until it expires. Only ever call this with a code the user gave you: attempts are capped and the fifth wrong code revokes the challenge, after which (or once it expires after 15 minutes) no code works. verification_revoked means exactly that, so call create_invoice again to send the user a new code, never retry this one; on the hosted endpoint such a challenge reports verification_invalid instead, so after five failed codes do the same. A rate_limited error means stop and tell them to wait, not retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 6-character code copied from the verification email body. Drawn from the confusable-free alphabet {2,3,4,5,6,7,8,9}. Check the user's paste against that alphabet before calling — a malformed code costs one of the few attempts the challenge allows. | |
| challenge_id | Yes | The opaque challenge id surfaced by the previous `create_invoice` `verification_required` error. |