Create a token
Exchanges your client credentials for an access token. This endpoint is itself unauthenticated, and accepts a JSON body rather than the form-encoded body described by RFC 6749.
Headers
X-Studies-Api-Version
Request
The credentials issued for your OAuth client.
grant_type
OAuth2 grant type; must be ‘client_credentials’.
client_id
Your application's Client ID.
client_secret
Your application's Client Secret.
Response headers
X-RateLimit-Limit
The number of requests permitted in the current rate limit window.
X-RateLimit-Remaining
The number of requests still available in the current rate limit window. When several limits apply, this reflects the per-API-key limit, so a request can be rejected while this value is above zero.
X-RateLimit-Reset
The number of seconds until the current rate limit window resets.
Response
An access token was issued.
token_type
How the token must be presented; always ‘Bearer’.
expires_in
Lifetime of the access token, in seconds from issue.
access_token
The signed JWT access token.
Errors
400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error