Auth
Post Auth Token
POST
application/json- body
client_id*stringThe integration key's client ID.
client_secret*stringThe integration key's client secret.
Access token issued. The body is the authorization server's token response, returned verbatim.
application/json- response
access_token*stringThe bearer token to send as Authorization: Bearer <token>.
token_type*stringAlways "Bearer".
expires_in*integerSeconds 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?stringSpace-separated list of granted scopes.
curl -X POST 'https://api.betaramps.com/auth/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"}