Skip to content

Resend the e-mail verification message

POST
/api/v1/users/{id}/resend-verification
curl --request POST \
--url http://localhost:3000/api/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resend-verification \
--header 'X-API-Key: <X-API-Key>'

Asks Keycloak to re-send the verification e-mail for a user whose address is not yet verified. Returns 400 when the address is already verified, because sending would imply the account is blocked when it is not.

id
required
string format: uuid

User UUID

Media typeapplication/json
object
sent
required

Whether Keycloak accepted the request to send the message. False means the user is still flagged to verify at next sign-in, but no e-mail was delivered.

boolean
email
required

The address the message was sent to.

string
error

Why the send failed, when it did. Absent on success.

string
Example
{
"sent": true,
"email": "user@example.com",
"error": "SMTP server not configured for this realm"
}

The address is already verified

Unauthorized

User not found, or has no Keycloak account