Messaging · Verify
Checks a verification code without changing anything.
POST
https://api.pozy.ai/v1/verify/verifications/{verificationId}/checkNot available yetcheckVerification
Guide: Send SMS
Request
Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the telephony resource group disabled get 403 resource_group_disabled. Authentication
This endpoint is not available yet. Calls return 403 feature_not_available.
Path parameters
| Name | Type | Notes |
|---|---|---|
verificationIdrequired | string |
Request body
application/json, required
codestringrequiredMatches
^\d{4,8}$.
Example
curl -X POST "https://api.pozy.ai/v1/verify/verifications/6e85def772268339137ee9ed/check" \
-H "Authorization: Bearer $POZY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "string"
}'const res = await fetch("https://api.pozy.ai/v1/verify/verifications/6e85def772268339137ee9ed/check", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.POZY_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
code: "string"
}),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);import os
import requests
resp = requests.post(
"https://api.pozy.ai/v1/verify/verifications/6e85def772268339137ee9ed/check",
headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
json={
"code": "string",
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())Response
200 on success
idstringstatusstringOne of
pending,approved,expired,max_attempts_reached,canceled,delivery_failed.channelstringOne of
sms,whatsapp.tostringexpiresAtstring (date-time)attemptsintegermaxAttemptsintegersendCountintegerlastSentAtstring (date-time)Can be null.
deliveryStatusstringOne of
delivered,read,failed. Can be null.deliveryErrorCodeintegerCan be null.
createdAtstring (date-time)resendbooleanvalidboolean
200 response
{
"id": "6bfebd43ddc270f6d2c56fc5",
"status": "pending",
"channel": "sms",
"to": "+14155550123",
"expiresAt": "2026-10-02T09:00:00.000Z",
"attempts": 1,
"maxAttempts": 1,
"sendCount": 42,
"lastSentAt": "2026-10-02T09:00:00.000Z",
"deliveryStatus": "delivered",
"deliveryErrorCode": 1,
"createdAt": "2026-10-02T09:00:00.000Z",
"resend": true,
"valid": true
}Errors
Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:
| 400 | invalid_request_error | A parameter or body field is missing or invalid. param names it. |
| 401 | authentication_error | The API key is missing, revoked or expired. |
| 403 | permission_error | The key is read-only, scoped to other profiles, or has this resource group disabled. |
| 404 | not_found | Nothing with that id exists in your workspace. |
| 429 | rate_limit_error | Too many requests this minute. Wait for Retry-After seconds. |
Every code is listed in Errors.