Downloads
OpenAPI Specification
OpenAPI 3.0 specification for the Starbase REST API. Latest version: 2.0
Authorization header. There is no session or token layer — each request re-authenticates independently.
The REST Order Gateway does not use TLS. Requests are sent over plain HTTP (
http://). The gateway is reachable only over private, intra-datacenter connectivity — hosted colocation, cross-connect, or AWS Private Link — never the public internet, and omitting TLS removes handshake and encryption overhead from the request path.Authorization Header Format
- The literal prefix
Basic(case-sensitive, with a trailing space). - Your
clientIdandclientSecretjoined by a single colon (:), then base64-encoded.
Example
Given these credentials:
The base64 of
atUkltkq:xn-v4JVKYJxC5v8UgxVvwoBbQ-k_GvkgZFUXJgle3Ow is YXRVa2x0a3E6eG4tdjRKVktZSnhDNXY4VWd4VnZ3b0JiUS1rX0d2a2daRlVYSmdsZTNPdw==, so the header you send is:
- curl
- Python
- JavaScript
Error Responses
Any authentication failure returns HTTP401. The table below maps each failure cause to its error message:
Treat every
401 as terminal for that request. Retry only after fixing the header or credentials — do not retry an invalid request blindly.
Practical Checklist
1
Use plain HTTP
The gateway does not terminate TLS. Point clients at
http:// and disable any automatic HTTPS upgrade or certificate verification logic in your HTTP library.2
Send the header on every request
There is no session or token reuse. Every request must include the
Authorization header.3
Base64-encode the credentials
Concatenate
clientId:clientSecret with a colon separator, then base64-encode the result. Send that encoded string after Basic .4
Obtain a Starbase API key
Any Starbase API key belonging to a direct-access-enabled portfolio can authenticate to the REST Order Gateway. The gateway does not currently enforce API key scopes — a key with any scope can call every REST endpoint, including portfolio management endpoints such as
cancel_all. Select the REST scope when creating the key anyway, as scope enforcement may be introduced in the future. See Creating a Starbase API Key for steps.Next Steps
Creating a Starbase API Key
Generate credentials for the REST Order Gateway
Placing a New Order
Submit your first order via the REST Order Gateway
Rate Limits
Per-gateway rate limit rules for REST requests
Gateway Connectivity
Gateway addresses, ports, and connection rules