Beta Ramps API
Auth

Post Auth Sandbox Token

POST
/auth/sandbox/token

Request Body

application/json
  1. body
client_id*string

The integration key's client ID.

client_secret*string

The integration key's client secret.

Response Body

Access token issued. The body is the authorization server's token response, returned verbatim.

application/json
  1. response
access_token*string

The bearer token to send as Authorization: Bearer <token>.

token_type*string

Always "Bearer".

expires_in*integer

Seconds until the access token expires, as issued by the authorization server. Read this value and refresh before it elapses; do not hardcode a lifetime.

scope?string

Space-separated list of granted scopes.

Example Request
curl -X POST 'https://api.betaramps.com/auth/sandbox/token' \  -H 'Content-Type: application/json' \  -d '{  "client_id": "ik_live_a1b2c3d4e5f6",  "client_secret": "<your-client-secret>"}'
Example Response
{  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUiLCJndHkiOiJjbGllbnQtY3JlZGVudGlhbHMifQ.sig",  "token_type": "Bearer",  "expires_in": 86400,  "scope": "orders:read orders:write subaccounts:read"}