Skip to main content

Verify Email

Verify the email for the user

HTTP Request

POST/api/users/me/set_email/verify

Authorization

Authorization

  • Required: Yes
  • Permission: Staff or Admin
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Request Body

FieldTypeRequiredDescription
codeIntegerYesReceived otp code for the email

Example Requests

1import requests
2
3api = requests.Session()
4api.headers.update({'Authorization': 'Token f4e75eab6e0f663a972d145478d6fc4b81762070'})
5response = api.put(
6  'http://www.example.com/api/users/me/set_email/verify',
7  json={
8      'code': 12352,
9  }
10)
FieldTypeDescription
emailStringThe verified email

Example Response

{
"email": "somemail@yahoo.com"
}