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

# Response Formats

> OneNumber API response formats

<Note>
  Please note that all endpoints have similar error responses. Any endpoint that doesn't follow the pattern shown on this page will contain the error response on it's own page.
</Note>

## Successful Response Format containing data

```json theme={null}
{
    "statusCode": 201,
    "message": "Request processed successfully.",
    "data": "Custom data, depending on the endpoint"
}
```

## Successful Response Format with no data

```json theme={null}
{
    "statusCode": 200,
    "message": "Request processed successfully."
}
```

## Error Response Formats

### Unsuccessful Request Error Response

```json theme={null}
{
    "statusCode": 300,
    "message": "Custom message containing the error details."
}
```

### Failed Validation Error Response

```json theme={null}
{
    "statusCode": 301,
    "message": "Validation errors (or custom description)",
    "errors": "An array of the fields with the validation errors."
}
```

### Resource not found Error Response

```json theme={null}
{
    "statusCode": 404,
    "message": "Custom message containing the error details."
}
```
