Skip to main content
POST
/
auth
/
verify
Verify email
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "token": "<string>"
}'
{
  "success": true,
  "message": "<string>",
  "data": {}
}

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/auth/verify', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "token": "sample-token"
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

email
string<email>
required

The email address to verify

Body

application/json
token
string
required

Verification token sent to the user's email

Response

Email successfully verified

success
boolean
Example:

true

message
string
data
object