Create a record by password

POST /api/verifications/password

Create a verification record by verifying the password.

application/json

Body Required

  • password string Required

    The password of the user.

    Minimum length is 1.

Responses

  • 201 application/json

    The verification record was created successfully.

    Hide response attributes Show response attributes object
    • verificationRecordId string Required
    • expiresAt string Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 422

    The password is invalid.

POST /api/verifications/password
curl \
 --request POST 'https://[tenant_id].logto.app/api/verifications/password' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"password":"string"}'
Request examples
{
  "password": "string"
}
Response examples (201)
{
  "verificationRecordId": "string",
  "expiresAt": "string"
}