API Overview
DocsAPI Overview

API Overview

Authentication, request format, response envelope and the full endpoint map of the RaxyProxy REST API.

Base URL

https://raxyproxy.com/api/v1

All endpoints are versioned under /api/v1. HTTPS is required.

Authentication

Every request must include your API key in the Authorization header using Bearer token format. Generate your key on the API Keys page.

Authorization: Bearer raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
example.sh
curl https://raxyproxy.com/api/v1/account \
     -H "Authorization: Bearer raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Keep your key secret

API keys grant full access to your account — do not commit them to source control. Use environment variables or a secrets manager.

Endpoints

Every public endpoint in v1. Each row links to its own page with detailed schema and code samples.

MethodPathPurpose
GET/accountProfile, balance, 30d traffic, API key info
GET/packagesList active and suspended packages
GET/packages/{id}Detailed package (includes proxy password)
GET/packages/{id}/proxiesGenerate ready-to-use proxy strings
GET/packages/{id}/statsTime-series usage (minute / hour / day)
GET/packages/{id}/stats/hostsTop destinations by traffic
GET/packages/{id}/stats/errorsRecent error events per host / code
POST/packages/{id}/rotate-passwordGenerate a new proxy password
PATCH/packages/{id}/threadsUpdate max concurrent connections
PATCH/packages/{id}/protocolsEnable/disable HTTP & SOCKS5
GET/packages/{id}/allowed-ipsList whitelisted client IPs
POST/packages/{id}/allowed-ipsAdd an IP to the whitelist
DELETE/packages/{id}/allowed-ips/{ip}Remove an IP from the whitelist
GET/packages/{id}/blocked-hostsList domains the package may not reach
PUT/packages/{id}/blocked-hostsReplace the blocked-hosts list
GET/packages/{id}/default-geoDefault geo applied without per-request params
PUT/packages/{id}/default-geoUpdate default geo (countries/states/cities/ASNs…)
POST/packages/{id}/top-upAdd GB to the package using wallet balance
GET/packages/{id}/top-upsHistory of top-ups for this package
GET/locations/countriesAvailable countries for a pool type
GET/locations/statesStates within selected countries
GET/locations/citiesCities within selected countries/states
GET/locations/zipcodesZIP codes within selected countries/states
GET/locations/asnsASNs within selected countries/states/cities

Response Envelope

Every successful response is wrapped in a standard envelope:

response.json
{
  "data": { ... },
  "meta": {
    "version": "v1"
  }
}

The data field contains the actual payload (object or array depending on the endpoint). Paginated endpoints include additional keys inside meta.

Errors

On error the HTTP status code reflects the problem category. The body contains an error key with a machine-readable code and a human-readable message.

StatusCodeMeaning
400invalid_requestBad request — invalid parameters
401unauthorizedMissing or invalid API key
402payment_requiredInsufficient balance — top up your wallet before retrying
403forbidden / insufficient_scopeForbidden — key lacks the required scope
404not_foundResource not found
409conflictConflict — the resource state prevents the operation (e.g. IP already whitelisted)
422validation_failedValidation failed — see the errors object
429rate_limitedRate limit exceeded — see Retry-After header
500http_errorInternal server error
502provider_errorUpstream provider error — temporary, retry later
error.validation.json
{
  "error": {
    "code":    "validation_failed",
    "message": "Validation failed",
    "errors":  { "threads": ["The threads field must be between 1 and 2000."] }
  },
  "meta": { "version": "v1" }
}

Rate Limits

Limits are per-API-key and grouped by endpoint type. When a limit is hit the server returns 429 and a Retry-After header.

GroupLimitEndpoints
api120 / min/account, /packages, /packages/{id}
stats-api60 / min/stats, /stats/hosts, /stats/errors, /top-ups
proxies-api30 / min/proxies
settings-api30 / minall package mutations (rotate-password, allowed-ips, …)
locations-api60 / min/locations/*
topup-api10 / min/packages/{id}/top-up
HTTP/1.1 429 Too Many Requests
Retry-After: 12
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0

OpenAPI / AI Spec

Machine-readable specs are available for integration with tools, SDKs, and AI assistants:

FormatURLUse case
OpenAPI 3.0 JSON/openapi.jsonSwagger UI, Postman, SDK generators
Plain text (LLM)/llms-api.txtChatGPT, Claude, Cursor context