---
title: "Authentication — Documentation"
canonical: "https://repull.dev/docs/api-keys"
description: "Authenticate Repull API requests with one Bearer key (sk_live_), plus optional workspace, account and schema headers. Create keys in the dashboard."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Authentication

TL;DR

Every request needs `Authorization: Bearer sk_live_YOUR_KEY`. There is one key type, `sk_live_`, created from your [dashboard](https://repull.dev/dashboard/keys).

Every API request requires one header. Optionally, add a second for PMS-scoped operations and a third to choose your response format.

## Required Headers

| Header | Value | Description |
| --- | --- | --- |
| `Authorization` | Bearer sk\_live\_... | Your API key |

## Optional Headers

| Header | Description |
| --- | --- |
| `X-Account-Id` | PMS account UUID — required for passthrough and some operations |
| `X-Schema` | Response format: calry (default), calry-v1, native |
| `Idempotency-Key` | Unique ID for POST/PUT/PATCH — prevents duplicate operations |

## API Keys

Live`sk_live_*`

There is only one key type. Create it from the [dashboard](https://repull.dev/dashboard/keys) and it acts on whatever PMS or OTA channels your workspace has connected.

## Key Format

Newly issued keys follow Stripe's convention: an `sk_live_` prefix followed by a 24-character random body, for a total length of 32 characters. Example:

```
sk_live_4eB3p2N9aZ1QrT8VkLm0XYZw
```

The prefix makes leaked keys easier to spot in logs. The 24-character base62 body provides the same entropy (~142 bits) as the previous bare-hex format.

## Legacy Keys

No rotation required

Bare 32-character hex keys issued before the prefix migration continue to work indefinitely. Keep using them, or generate a new prefixed key from the dashboard whenever you're ready.

Legacy keys can be sent either bare (`Authorization: Bearer 4eB3p2N9...`) or wrapped in the prefix (`Authorization: Bearer sk_live_4eB3p2N9...`) — both formats validate.

## Example Request

```
curl https://api.repull.dev/v1/properties \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "X-Schema: calry"
```

## Error Responses

Invalid or missing auth returns a structured error with a link to this page:

```
{
  "error": {
    "code": "unauthorized",
    "message": "Missing Authorization (Bearer) header",
    "docs_url": "https://repull.dev/docs/guides/authentication",
    "example": "curl /v1/properties -H \"Authorization: Bearer sk_live_KEY\""
  }
}
```
