Restake Partner API
string · enum · requiredstringstringstringstring · requiredstring · enum · requirednumber · requiredstring · required
S2S Partners Auth
Exchange client credentials for a short-lived access token
POST
https://stg-s2s.restake.gg
/api/v1/s2s/auth/token
Returns the RFC 6749 token shape (access_token, token_type, expires_in, scope), not the API { data } envelope, so stock OAuth clients can consume it.
Exchange client credentials for a short-lived access token › Request Body
grant_typeOnly client_credentials is supported.
Enum values:
client_credentials
client_idOmit when authenticating with an HTTP Basic header.
client_secretOmit when authenticating with an HTTP Basic header.
scopeSpace-delimited subset of the credential scopes. Defaults to all of them. all:read / all:write may be used as shorthand; the granted scope in the response always lists the individual permissions.
Exchange client credentials for a short-lived access token › Responses
access_tokenSend as Authorization: Bearer <token>.
token_typeEnum values:
Bearer
Example: Bearer
expires_inLifetime in seconds.
Example: 900
scopeSpace-delimited scopes actually granted — a wildcard grant arrives here already expanded, and anything asked for but not held is dropped.
Example: pools:read users:read
