Resend the e-mail verification message
POST
/api/v1/users/{id}/resend-verification
const url = 'http://localhost:3000/api/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resend-verification';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
User UUID
Responses
Section titled “Responses”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