/v0/accounts/:name/verify_email
POST
/v0/accounts/:name/verify_email
const url = 'http://localhost:3000/v0/accounts/:name/verify_email';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"vq34rvyanho10q9hbc98ydbvaervna43r0varhj"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/v0/accounts/:name/verify_email \ --header 'Content-Type: application/json' \ --data '{ "token": "vq34rvyanho10q9hbc98ydbvaervna43r0varhj" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” name
required
Characters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]
string
Example
example_manCharacters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]
Request Body
Section titled “Request Body ” Media type application/json
object
token
required
Verification token
string
Example
vq34rvyanho10q9hbc98ydbvaervna43r0varhjResponses
Section titled “ Responses ”No Content
Bad Request
Media type application/json
Email address token is invalid
object
error
required
EMail verification token is invalid.
string
Example
{ "error": "INVALID_TOKEN"}Not Found
Media type application/json
Account not found
object
error
required
Account not found.
string
Example
{ "error": "ACCOUNT_NOT_FOUND"}Internal Server Error
Media type application/json
object
error
required
Internal server error.
string
Example
{ "error": "INTERNAL_ERROR"}