verify_email_code
Use this after create_invoice or get_invoice returns verification_required. Arguments: { challenge_id, code }. On success returns a verification_token. Retry the same call 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 the tool that sent the code (create_invoice or get_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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"challenge_id": "<challenge_id>",
"code": "<code>"
},
"name": "verify_email_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 8-character code copied from the verification email body: uppercase letters and digits from the confusable-free alphabet {23456789ABCDEFGHJKMNPQRSTVWXYZ}, so never 0, 1, I, L, O or U. Case, spaces and hyphens do not matter. 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. |