# Authorization required

Resolve authorization required errors.

The endpoint requires authentication, but the request did not include any credentials.

Depending on the endpoint, include either an [API key](/explanation/application/api-keys) through the `X-Api-Key` header for server-side requests, or an [application ID](/explanation/application) through the `X-App-Id` header for client-side requests.

## Response

All error responses follow the [Problem Details (RFC 9457)](/reference/api/overview#errors) format. The `type`, `title`, `status`, and `detail` fields are always present, while `instance` may be omitted depending on the API.

Here is an example of the response returned for this error:

```json
{
  "type": "https://croct.help/api/authentication/authorization-required",
  "title": "The request credentials are missing.",
  "status": 401,
  "detail": "The endpoint requires authentication, but no credentials found in the request.",
  "instance": "/client/web/content"
}
```
