Returning.AIDevelopers
v1

API reference / Legacy / Authentication

.md

Verify user email

Verify user email

Last updated 26 Sep 2026API v1

Method
POST
Path
https://api.returning.ai/auth/verify-email

Authentication#

Header
Authorization: Bearer <API_KEY>

Behaviour#

What it is for

Verify user email. Use this as part of password-based account authentication rather than broker system ingestion.

How to use it

Send a POST request to /auth/verify-email with the request body, query parameters, or multipart fields shown below. Authentication endpoint. It does not use the broker integration API key in the same way as /v1/... endpoints.

Successful response

HTTP 200. The body follows the endpoint schema; many integration endpoints wrap the useful payload under data with status and message.

Common error states
  • 400 invalid request body, query, ObjectId, pagination, file format, or missing required field.
  • 401 missing, invalid, expired, or insufficient API key/token.
  • 403 key is valid but cannot access this community/channel/user/resource, where supported by the service.
  • 404 target resource, route, or community-scoped record was not found.
  • 409 duplicate or conflicting state for create/update operations, where applicable.
  • 500 unexpected Returning.AI service error.

Request#

Headers#

Authorization#stringREQUIRED
API key.

RuleBearer <API_KEY>

Content-Type#stringREQUIRED
Request body format.

Ruleapplication/json

Body#

email#stringREQUIRED
User email address.

Eg"samoqa@koletter.com"

code#stringREQUIRED

Eg"441225"

host#stringOPTIONAL

Eg"ic.genesiv.com"

curl --request POST \
  --url https://api.returning.ai/auth/verify-email \
  --header 'Authorization: Bearer <API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "samoqa@koletter.com",
    "code": "441225",
    "host": "ic.genesiv.com"
  }'

Response#

meta#objectALWAYS

Eg{ ... }

success#booleanALWAYS

Egtrue

message#stringALWAYS

Eg"Email has been verified successfully"

devMessage#stringALWAYS

Eg"Email has been verified successfully"

body#objectALWAYS

Eg{ ... }

accessToken#stringALWAYS

Eg"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjIiLCJpYXQiOjE3MjE5MjI1MTYsImV4cCI6MTcyMjAwODkxNn0.RU6HbgnjhudD5h1hjCQ0OBo5HD2ANRtw8VNKHBLdvMA"

refreshToken#stringALWAYS

Eg"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjIiLCJpYXQiOjE3MjE5MjI1MTYsImV4cCI6MTcyMjUyNzMxNn0.95J7P0_vUGnAKARhwVhws0T-M_yZNzu-i-2XY-5H-Hk"

{
  "meta": {
    "success": true,
    "message": "Email has been verified successfully",
    "devMessage": "Email has been verified successfully"
  },
  "body": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjIiLCJpYXQiOjE3MjE5MjI1MTYsImV4cCI6MTcyMjAwODkxNn0.RU6HbgnjhudD5h1hjCQ0OBo5HD2ANRtw8VNKHBLdvMA",
    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjIiLCJpYXQiOjE3MjE5MjI1MTYsImV4cCI6MTcyMjUyNzMxNn0.95J7P0_vUGnAKARhwVhws0T-M_yZNzu-i-2XY-5H-Hk"
  }
}

Errors#

Fix the request02

400Fix the request
Invalid request. Check required parameters, body fields, file format, pagination values, and ObjectId values.
401Fix the request
Verification token is missing, invalid, or expired.

Fix the data01

404Fix the data
User or verification record was not found.

Retry with backoff01

500Retry with backoff
Unexpected Returning.AI service error.
{
  "status": "fail",
  "message": "Invalid request. Check required parameters, body fields, file format, pagination values, and ObjectId values."
}

Next step#

Log in user with passwordPOST/auth/login