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./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 withplan_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.
Requests
- Send the API key in the
Authorizationheader as a bearer token. See Authentication. - 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-Versionheader with the API version that served it. See Versioning. - Every error body has the same shape: an
errorcode and arequestId. See Errors.
Request IDs
Every response carries anX-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:
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.
Live and test keys
A Test key starts withel_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
Authentication
Create, rotate and revoke API keys, and choose a key type.
Versioning
Pin an API version with the
Elastly-Version header.Client libraries
Install the TypeScript or Python client and use its helpers.
Pagination and filters
Page through lists with cursors and narrow them with filters.
Idempotency
Retry a write safely with an
Idempotency-Key.Rate limits
Request limits per key and per workspace, and how to back off.
Errors
The error body and every error code.
Price requests
Price lines and quotes, report outcomes and read decisions.
Sending data
Send catalog items, customers and documents from your own system.
Write-back queue
Claim approved prices and report the result of each one.
Webhooks and events
Receive signed events, verify them and read the event feed.
MCP server
Connect AI apps to your workspace.