Skip to content
# Overview

Authentication

Bearer tokens, base URL, rate limits, idempotency and IP allowlists.

Authentication

All requests require a Bearer token in the Authorization header (a few endpoints, like the dedicated server catalog, are public and noted as such below). Your account token (Profile → Developer → API token) has full access. For scripts and CI, create an API key under Profile → Developer → API keys with only the permissions it needs: Read only (every GET), Compute (servers, volumes, snapshots, placement groups, orders, dedicated servers), Network (private networks, security groups), Apps (databases, hosting), Billing (wallet, invoices), Support (tickets) or Full access. A key can also expire and carry its own IP allowlist.

bash
curl https://bashrack.com/api/v1/orders \
  -H "Authorization: Bearer $BASHRACK_API_TOKEN" \
  -H "Content-Type: application/json"
Base URL: https://bashrack.com/api/v1
Rate limit: 60 requests / minute per token. Burst: 10.
Idempotency: POST /orders accepts an X-Idempotency-Key header — safe retries replay the first response for 24h.
IP allowlist: if you restrict your token to specific IPs, requests from other IPs get 403 ip_not_allowed. A request outside an API key's permissions gets 403 insufficient_scope.