---
title: "Verify verification code"
method: POST
path: "/api/experience/verification/verification-code/verify"
tags: ["Experience"]
---

# Verify verification code

`POST /api/experience/verification/verification-code/verify`

Verify the provided verification code against the user's identifier. If successful, the verification record will be marked as verified.

## Request body

- object
  - `identifier` union, required — The identifier (email address or phone number) to verify the code against. Must match the identifier used to send the verification code.
    - object
      - `type` string, "email", required
      - `value` string, regex, required
    - object
      - `type` string, "phone", required
      - `value` string, regex, required
  - `verificationId` string, required — The verification ID of the CodeVerification record.
  - `code` string, required — The verification code to be verified.

## Response `200`

The verification code was successfully verified.

- object
  - `verificationId` string, required — The unique ID of the verification record. Required for user identification via the `Identification` API or to bind the identifier to the user's account via the `Profile` API.

## Other responses

- `400` — The verification code is invalid or the maximum number of attempts has been exceeded. Check the error message for details.
- `404` — Verification record not found.
- `501` — The connector for sending the verification code is not configured.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/a163dc77d842/schema)
