---
title: "Verify a PIN"
method: POST
path: "/2fa/2/pin/{pinId}/verify"
tags: ["platform", "2fa", "pin-sending-and-verification", "verify-pin"]
---

# Verify a PIN

`POST /2fa/2/pin/{pinId}/verify`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/2fa/2/pin/{pinId}/verify`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`
  - API key in header `Authorization`
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`

Verify OTP to confirm successful phone number verification. pinId is received in the response after [sending the OTP message](#channels/sms/2fa/pin-sending-and-verification/send-2fa-pin-code-over-voice).

## Path parameters

- `pinId` string, required

## Request body

- Aa47d40354ee197e21ffad52d2c543bd4f729e250360a844e476aa80deff7b6eVerifyPinRequest
  - `pin` string, required: The PIN code to verify.

## Response `200`

successful response

- Aa47d40354ee197e21ffad52d2c543bd4f729e250360a844e476aa80deff7b6eVerifyPinResponse
  - `attemptsRemaining` integer: Number of remaining PIN attempts.
  - `msisdn` string: Phone number (`MSISDN`) to which the 2FA message was sent.
  - `pinError` 'TTL_EXPIRED' | 'WRONG_PIN' | 'NO_MORE_PIN_ATTEMPTS'
  - `pinId` string: Sent PIN code ID.
  - `verified` boolean: Indicates whether the phone number (`MSISDN`) was successfully verified.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `4XX`: Error responses
- `5XX`: Error responses

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
