Verify Email

POST
/api/users/[user_id]/emails/[identifier_id]/verify/link
Generates a link and send out an email which can be used to verify the user's email.

Path Parameters

user_id
string
Required

The ID of the user whose email verification link is requested.

identifier_id
string
Required

The ID of the email to be verified.

Body Parameters

expiry
number
Nullable

Specifies the expiry time for the verification link (in seconds).

Authentication

API-Key
header
Required

The API key is essential for accessing MonoCloud's APIs. You can find it in the Tenant Settings section of your MonoCloud dashboard. To authenticate your requests, include this key in the request header using the following format: X-API-Key: <Your_API_Key>.

Headers

content-type
string
  • application/json
accept
string
  • application/json
  • application/problem+json

Responses

200
Successfully generated email verification link for the user.
400
Bad Request
404
Not Found
422
Client Error
401
Unauthorized
403
Forbidden

Request Example

Request
curl -X POST "https://<your-domain>/api/users/{user_id}/emails/{identifier_id}/verify/link" \
 -H "X-API-KEY: <your-api-key>" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 --data-raw '{
  "expiry" : 600
}'

Response Example

Response
200 OK
{
  "email_sent": false,
  "expires_at": 1640975400
}