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

# Errors

> The error codes the API returns and when

The API uses standard HTTP status codes. Every error returns a JSON body with `statusCode`, `code`, and `message`. Branch on `code`: `message` is meant for logs and can change.

| Status | `code` | When |
| - | - | - |
| `400` | `VALIDATION_ERROR` | The request does not match the schema. `details` lists every invalid field. |
| `400` | `COUNTRY_NOT_SUPPORTED` | `country` is not enabled for your account. |
| `400` | `INVALID_PHONE_NUMBER` | `phoneNo` is not a phone number of 7 to 15 digits. |
| `400` | `INVALID_EXPIRES_AT` | `expiresAt` is not a valid date. |
| `400` | `EXPIRES_AT_IN_PAST` | `expiresAt` is not in the future. |
| `400` | `DUPLICATE_REQUIREMENT_TYPES` | The legacy `requirements` array repeats a type. |
| `400` | `DOCUMENT_SCAN_REQUIRES_FACE_SCAN` | The legacy `requirements` array has `DOCUMENT_SCAN` without `FACE_SCAN`. |
| `401` | `AUTH_REQUIRED` | No API key was sent. See [Authentication](https://docs.pawapass.com/authentication.md#error-responses). |
| `401` | `INVALID_API_KEY` | The API key is unknown, deactivated or deleted. |
| `401` | `API_KEY_EXPIRED` | The API key has expired. |
| `404` | `VERIFICATION_NOT_FOUND` | No verification with this id belongs to your account. |
| `404` | `VERIFICATION_WORKFLOW_NOT_FOUND` | `workflowId` does not match one of your workflows. |
| `409` | `WORKFLOW_CONFIG_INCOMPATIBLE` | The selected workflow cannot run for this verification. See [Verification workflows](https://docs.pawapass.com/verification-workflows.md#selecting-a-workflow). |
| `4xx` | `UNKNOWN_CLIENT_ERROR` | Another problem with the request, for example a body that is not valid JSON. |
| `500` | `INTERNAL_SERVER_ERROR` | An unexpected error on the pawaPass side. Retry later. |

## Validation errors

Only `VALIDATION_ERROR` carries `details`: one entry per problem. Each entry has the `field`, a `reasonCode`, and `params` when the reason has a limit or a list of allowed values.

```json Example: Validation error theme={null}
{
  "statusCode": 400,
  "code": "VALIDATION_ERROR",
  "message": "Input data is invalid. Please check the details.",
  "details": [
    { "field": "externalId", "reasonCode": "REQUIRED" },
    { "field": "successUrl", "reasonCode": "INVALID_PATTERN" }
  ]
}
```

## Retrying a create

A `500` or a timeout does not tell you whether the verification was created. Retry with the same `externalId`. If the first request created it, the retry returns that verification with `200 OK`, so no second verification is created.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.