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

# Developer overview

> Call the Elastly API from your own systems: the base URL, request and response conventions, money values, request IDs and where each topic is covered.

The Elastly API lets your own systems request prices, report quote outcomes, read past price decisions, read your catalog and customers, follow workspace events and send source data. This page covers the conventions every endpoint shares. Each endpoint has its own page in the [API reference](/docs/api-reference/introduction.md).

## Base URL

Every endpoint sits under one production address. There is no separate sandbox host; a **Test** API key keeps its calls apart from live ones instead.

```text theme={null}
https://api.elastly.ai
```

Every path starts with `/v1`, for example `https://api.elastly.ai/v1/price`.

## Who can use the API

The API is part of the plans that include API access. On other plans, **Manage** > **API & webhooks** shows an upgrade notice and every request is refused with `plan_required`.

Members manage API keys, webhooks and the MCP server on the **API & webhooks** page. Viewing the page needs **View** access to the **API & webhooks** area; creating, rotating and revoking keys needs **Edit** access. See [Roles](/docs/administration/roles.md).

## Requests

* Send the API key in the `Authorization` header as a bearer token. See [Authentication](/docs/developers/authentication.md).
* Send request bodies as JSON with `Content-Type: application/json`. The only exception is the file upload of a bulk import, which takes the file itself.
* Request bodies are strict: a field the endpoint does not define is refused with `invalid_request`.
* Repeat a query parameter to pass several values, for example `?sku=AX-2201&sku=AX-2202`.

## Responses

* Every response body is JSON.
* Every response carries the `Elastly-Version` header with the API version that served it. See [Versioning](/docs/developers/versioning.md).
* Every error body has the same shape: an `error` code and a `requestId`. See [Errors](/docs/developers/errors.md).

## Request IDs

Every response carries an `X-Request-Id` header. Error bodies repeat it as `requestId`. Quote it when you contact support about a request.

You can send your own `X-Request-Id` header with up to 255 printable ASCII characters. The API uses your value instead of generating one, which lets you match its responses to your own logs.

## Numbers and money

Quantities and decimal values travel as strings, such as `"400"` or `"12.5"`, so no precision is lost in transit.

Prices and totals in responses are money objects:

| Field | Meaning |
| - | - |
| `amount` | A whole number in minor units, as a string |
| `scale` | How many decimal places `amount` holds |
| `currency` | The ISO 4217 currency code |
| `roundingPolicyVersion` | The rounding rules the price was produced with |

To read the value, divide `amount` by 10 to the power of `scale`. An `amount` of `"184250"` with a `scale` of `2` is 1,842.50.

```json theme={null}
{ "amount": "184250", "currency": "USD", "scale": 2, "roundingPolicyVersion": "1" }
```

## Live and test keys

A **Test** key starts with `el_test_` and a live key with `el_live_`. Prices requested with a test key are not billed as usage, a test key reads only the decisions and outcomes made with test keys, and events read with it report `livemode: false`. Sending source data needs a live connector key.

## Topics

> [card] [Authentication](/docs/developers/authentication.md)
>
> Create, rotate and revoke API keys, and choose a key type.

> [card] [Versioning](/docs/developers/versioning.md)
>
> Pin an API version with the `Elastly-Version` header.

> [card] [Client libraries](/docs/developers/client-libraries.md)
>
> Install the TypeScript or Python client and use its helpers.

> [card] [Pagination and filters](/docs/developers/pagination.md)
>
> Page through lists with cursors and narrow them with filters.

> [card] [Idempotency](/docs/developers/idempotency.md)
>
> Retry a write safely with an `Idempotency-Key`.

> [card] [Rate limits](/docs/developers/rate-limits.md)
>
> Request limits per key and per workspace, and how to back off.

> [card] [Errors](/docs/developers/errors.md)
>
> The error body and every error code.

> [card] [Price requests](/docs/developers/price-requests.md)
>
> Price lines and quotes, report outcomes and read decisions.

> [card] [Sending data](/docs/developers/data-ingestion.md)
>
> Send catalog items, customers and documents from your own system.

> [card] [Write-back queue](/docs/developers/writeback-queue.md)
>
> Claim approved prices and report the result of each one.

> [card] [Webhooks and events](/docs/developers/webhooks.md)
>
> Receive signed events, verify them and read the event feed.

> [card] [MCP server](/docs/developers/mcp.md)
>
> Connect AI apps to your workspace.


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