Base URLs
The API is available in two environments. Use the sandbox environment for all development and testing. Only production-ready, verified integrations should connect to the production environment.API Version
The current API version is 0.11.7. The version is reflected in all endpoint paths (e.g.,/v1/accounts). See the Changelog for the full release history.
Authentication
All requests must include a valid Bearer token in theAuthorization header:
com.diameterpay.api/accounts.read, com.diameterpay.api/end-users.write). Requests made with a token that is missing the required scope receive a 403 Forbidden response. For instructions on obtaining tokens, see the Authentication page.
Content Type
All request and response bodies use JSON. Set theContent-Type header on every request that includes a body:
Idempotency
All write requests (POST, PUT, PATCH) require an x-idempotency-key header containing a UUID v4 value. Idempotency keys protect against duplicate operations caused by network retries or client errors.
Pagination
List endpoints return paginated results. Control pagination with the following query parameters:
Every paginated response includes a
pagination object:
Error Responses
When a request fails, the API returns a structured error response body alongside the appropriate HTTP status code. TherequestId uniquely identifies the failed request and should be included when contacting Diameter support.
HTTP Status Codes
The API uses standard HTTP status codes to communicate the outcome of each request.Data Formats
The Diameter API uses consistent formats for IDs, dates, amounts, and currency across all endpoints. IDs All resource identifiers (accounts, payments, end users, counterparties, etc.) use UUID v4 format:currency field in account and payment objects will always contain "USD".