Skip to main content
Base URL

Authentication

For authenticated endpoints, pass a ProxyLayer API key or REST OAuth 2.0 access token:
Manage keys in the dashboard or get one via Email OTP.
  • Live keys (pl_live_...) use live data and can incur charges.
  • Test keys (pl_test_...) enforce scopes and return mock data without charges. Responses include X-ProxyLayer-Mode: test.
  • Scopes use the rest: prefix in OAuth tokens.
The 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 on error.code. When present, error.issues[].path identifies invalid fields.

Pagination

Keep the same filters and limit when passing cursor. A null cursor marks the last page.
  • GET /proxies returns pagination.nextCursor. limit is 1–200 (default 100).
  • GET /orders returns nextCursor. limit is 1–50 (default 20).

Idempotency

Pass one UUID in Idempotency-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.