# API versions and safe retries

> How the Ladoo API stays stable: dated versions pinned to each API key, the breaking-change policy, and Idempotency-Key for retrying a request safely.

Source: https://tryladoo.com/docs/developers/versions-and-limits · Updated 2026-11-21

The Ladoo API lives at `https://api.tryladoo.com/v1`. Create a key under **Settings → Developers** and send it as `Authorization: Bearer lsk_…` (see [Authentication and scopes](https://tryladoo.com/docs/developers/authentication-and-scopes)). Every endpoint is in the [API reference](https://tryladoo.com/docs/developers/api-reference), and the OpenAPI document behind it is at `https://api.tryladoo.com/openapi.json`.

## Versions

The path stays `/v1`. Changes that could break your code ship as a new **dated version**, like `2026-11-16`.

- Each API key is pinned to the version that was current when you created it. Its requests keep that behavior until you choose to move.
- To try or move to another version, send it on a request: `Ladoo-Version: 2026-11-16`. An unknown version is refused with `400 unknown_api_version`.
- Every `/v1` response says which version it used, in the `Ladoo-Version` header.

What's in each version is in the [API changelog](https://tryladoo.com/docs/developers/changelog).

## What counts as a breaking change

These only ever ship in a new dated version:

- removing an endpoint, a field in a response, or a value a request accepts;
- making a request field or parameter required;
- changing a field's type or meaning, or making a field that was always there sometimes missing.

These ship to every version, so write your code to expect them:

- new endpoints, and new optional request fields and parameters;
- new fields in responses;
- new values in enums, like a new call status or webhook event type;
- new error codes, and changes to error messages (match on `error.code`, never on the message).

Every pull request to the API is checked for breaking changes automatically, so one can't slip into an existing version.

## Retiring a version

We give at least **six months' notice** before a version stops working: an entry in the changelog and an email to workspace owners whose keys use it. During that time, responses on that version carry:

- `Deprecation`: when the version was deprecated;
- `Sunset`: the date it stops working;
- `Link: <https://tryladoo.com/docs/developers/changelog>; rel="deprecation"`.

## Safe retries with Idempotency-Key

A network error can leave you unsure whether a request went through. Send an `Idempotency-Key` header on a `POST`, like a UUID you make for that request, and retry with the same key:

```
POST /v1/api-keys
Authorization: Bearer lsk_…
Idempotency-Key: 5f1c7e9e-2b0a-4c9e-9d43-0a1b2c3d4e5f
```

- The first request with a key runs. If it succeeds, its response is saved for **24 hours**. A retry with the same key gets that same response back, with `Idempotent-Replayed: true`, and nothing is created twice.
- Keys belong to your workspace, so another workspace's key never collides with yours.
- Reusing a key for a different request (another endpoint or body) is refused with `422 idempotency_key_reused`.
- If the first request is still running, a retry gets `409 idempotency_key_in_use`. Wait a moment and try again.
- Only successful responses are saved. After an error, fix the request and retry with the same key.

Use one for anything that creates or costs money, like buying a phone number, adding a client workspace, creating an agent or an API key.

## Rate limits

Each workspace can make 600 requests a minute. Every response says where you stand in its `RateLimit-*` headers. See [Errors and rate limits](https://tryladoo.com/docs/developers/errors-and-rate-limits).
