# Error format

On errors, the API returns a standard JSON envelope, for example:

```json
{
  "success": false,
  "message": "Missing api key",
  "statusCode": 0
}
```

Ensure you include the `apiKey` header in every request. [docs.omypayments.com](https://docs.omypayments.com/api/authentication)
