Create a record by verification code
Create a verification record and send the code to the specified identifier. The code verification can be used to verify the given identifier.
Body Required
-
The identifier (email address or phone number) to send the verification code to.
Additional properties are allowed.
POST
/api/verifications/verification-code
curl \
-X POST https://[tenant_id].logto.app/api/verifications/verification-code \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"identifier":{"type":"email","value":"string"}}'
Request examples
{
"identifier": {
"type": "email",
"value": "string"
}
}
Response examples (201)
{
"verificationRecordId": "string",
"expiresAt": "string"
}