> For the complete documentation index, see [llms.txt](https://docs.inspector.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inspector.dev/rest-api/authentication.md).

# Authentication

### Base Endpoint

Inspector APIs are hosted on the following base URI:

```
https://app.inspector.dev/api
```

### Include the key

In order to use the API you should authenticate your request by including your API key as a bearer token value in the request's headers:

```
Authorization: Bearer API_KEY_HERE
```

{% hint style="info" %}
If you don't have an API key, you can create a new one in just a few clicks: <https://app.inspector.dev/account/api>
{% endhint %}

### Recommended Headers

Make sure you have the following content type headers set on every request:

```
Accept: application/json 
Content-Type: application/json
```

### Error codes

Inspector uses conventional HTTP response codes to indicate the success or failure of an API request. The table below contains a summary of the typical response codes:

| Code    | Description                                                            |
| ------- | ---------------------------------------------------------------------- |
| **200** | Everything is ok.                                                      |
| **401** | No valid API Key was given.                                            |
| **404** | The request resource could not be found.                               |
| **422** | The payload has missing required parameters or invalid data was given. |
| **429** | Too many attempts.                                                     |
| **500** | Request failed due to an internal error in Inspector.                  |
