> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify OTP

> Verify a one-time password to complete two-factor authentication

<ParamField body="otp" type="string" required>
  The one-time password sent to the user's email or authenticator app.
</ParamField>

<ParamField body="email" type="string">
  The user's email address. Required if not already established in the session.
</ParamField>

<RequestExample>
  ```bash theme={null}
  curl -X POST 'https://crypto-api.yativo.com/api/v1/auth/otp-verification' \
    -H 'Content-Type: application/json' \
    -d '{
      "otp": "123456",
      "email": "user@example.com"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "status": "success",
    "message": "OTP verified successfully",
    "data": {
      "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
    }
  }
  ```
</ResponseExample>
