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

# API reference

> Base URLs, authentication and error format.

## Base URLs

| Environment | Base URL |
| - | - |
| Sandbox | `https://{environment}.sb.getid.dev` |
| Production | `https://{environment}.getid.ee` |

Send JSON bodies with `Content-Type: application/json`.

## Authentication

| Header | Credential | Endpoints |
| - | - | - |
| `X-API-Key` | API key, or an API token from `POST /api/v2/token` | `/api/...` |
| `X-SDK-Key` | SDK key | `POST /sdk/v2/token` |

The API key provides access to all submitted applications. Find it in the Backoffice under **Settings → API Configuration → API Key**. An API token without root access can only access applications associated with that token.

You can limit API access to known IP addresses under **Settings → API Configuration → Whitelist for API requests**.

See [Restrict API access by IP](https://docs.checkin.com/get-started/environments-and-authentication.md#restrict-api-access-by-ip).

## Response format

```json Success theme={null}
{ "responseCode": 200, "id": "5e62110968e3fb4d655756d1" }
```

```json Validation error theme={null}
{
  "responseCode": 400,
  "errors": [
    {
      "keyword": "pattern",
      "dataPath": ".application.documents[0].issuingCountry",
      "schemaPath": "...",
      "params": {},
      "message": "..."
    }
  ]
}
```

```json Unauthorized theme={null}
{ "responseCode": 401, "errorMessage": "Unauthorized" }
```

## Status codes in the spec

| Code | Meaning |
| - | - |
| `200` | Success |
| `400` | Invalid request |
| `401` | Missing or wrong authorization headers |
| `404` | Application (or dictionary) not found |
| `429` | Too many requests (batch submission) |

> [!WARNING]
>
> **TODO (engineering):** Rate limits, maximum request size, and server error behaviour.


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