---
title: "Check OTP code"
method: POST
path: "/verify/check"
tags: ["Phone Verification (OTP)"]
---

# Check OTP code

`POST /verify/check`

## Request

- Base URL: `https://api.envoisms.ma/v1`
- URL: `https://api.envoisms.ma/v1/verify/check`
- Auth: HTTP bearer

## Request body

- object
  - `session_id` string, required
  - `code` string, required

## Response `200`

Code verified

- object
  - `session_id` string
  - `verified` boolean
  - `verified_at` string, date-time

## Other responses

- `400`: Wrong code (error code INVALID_CODE; the message states how many attempts remain)
- `404`: Session not found, or the code expired (EXPIRED_CODE)
- `429`: Maximum verification attempts exceeded (MAX_ATTEMPTS); the session is closed

---

[API](https://skmtc.dev/envoisms/apis/envoisms-ma-api.md) · [All operations](https://skmtc.dev/envoisms/apis/envoisms-ma-api/llms.txt) · [OpenAPI document](https://skmtc.dev/envoisms/apis/envoisms-ma-api/revisions/662db074bd86?raw)
