Base URL
Authentication
For authenticated endpoints, pass a ProxyLayer API key or REST OAuth 2.0 access token:- Live keys (
pl_live_...) use live data and can incur charges. - Test keys (
pl_test_...) enforce scopes and return mock data without charges. Responses includeX-ProxyLayer-Mode: test. - Scopes use the
rest:prefix in OAuth tokens.
read preset grants account:read and orders:read. The full preset grants all scopes below. Request proxies:read explicitly for proxy credentials when using custom scopes.
Error codes
Branch onerror.code. When present, error.issues[].path identifies invalid fields.
Pagination
Keep the same filters andlimit when passing cursor. A null cursor marks the last page.
GET /proxiesreturnspagination.nextCursor.limitis 1–200 (default100).GET /ordersreturnsnextCursor.limitis 1–50 (default20).
Idempotency
Pass one UUID inIdempotency-Key or clientOperationId. If you send both, they must match. The UUID is required on POST /orders and optional on POST /checkouts.
Reuse the same UUID and payload on retries. Top up your balance before retrying after INSUFFICIENT_BALANCE.
Rate limits
Back off before retrying a
429 or a transient 5xx. The API does not currently return a Retry-After header; reuse the same idempotency UUID when retrying a purchase.
Versioning
The current version is/api/v1. Ignore unknown response fields for forward compatibility.