12345678910111213141516171819202122232425262728293031323334353637383940{ "lexicon": 1, "id": "org.tangled.temp.account.verifyEmail", "defs": { "main": { "type": "procedure", "description": "Verify an email address using the token from the verification link emailed by addEmail. The address becomes verified, and is made primary if it is the account's first verified address. Tokens are single-use.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": ["token"], "properties": { "token": { "type": "string", "description": "Verification token from the emailed link." } } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["email"], "properties": { "email": { "type": "string", "description": "The address that was verified." } } } }, "errors": [ { "name": "InvalidCode", "description": "The verification link is invalid or expired." } ] } }}