Requests and responses
Base URL, versions, formats and request IDs.
Base URL
{{API_BASE_URL}}Replace {{API_BASE_URL}} in the examples with the HTTPS base URL supplied for your environment.
Versions
Versioned endpoints begin with the version, for example /v1/credits/balance. The current version is v1. Changes that could break your integration ship under a new version, and are announced in the changelog.
Request format
- Send JSON with
Content-Type: application/json. File uploads usemultipart/form-data; see Uploads. - JSON and form bodies can be up to 25 MB. Some upload endpoints set their own lower or higher limit, which the reference lists.
- Send only the fields an endpoint documents. Fields it doesn't know are ignored, so a misspelled field fails silently instead of returning an error.
Response format
Use the status, media type and response body shown for each operation. Some responses wrap results in a field such as data.
Each endpoint's response shape is in its product's API reference. List endpoints include paging details next to the items, and the exact field names vary by product, so read them from the reference instead of assuming one format.
Request IDs
Every response includes an X-Request-Id header. Log it with your own records. When you contact support about a request, include its ID so we can find it straight away.
You can also send your own X-Request-Id, for example the ID your system already uses for the operation. The API uses it instead of generating one, so the same ID appears in both your logs and ours. It can be up to 64 letters, digits, dots, dashes or underscores; anything else is replaced with a generated ID.
curl -i {{API_BASE_URL}}/v1/credits/balance \
-H "x-api-key: uvk_YOUR_API_KEY" \
-H "X-Request-Id: order-58213-sync"