Preview API. Every route takes a bearer token except POST /oauth/token. Use the Sandbox / Live toggle in the sidebar. Start with Authentication if you do not have credentials yet.
Get token
Exchanges client credentials for an access token valid for one hour.
POST
https://api.globodain.com/v1/oauth/tokengrant_type*stringAlways client_credentials.
client_id*stringClient identifier.
client_secret*stringClient secret. Do not expose it in the browser.
scopestringSpace-separated scopes. Defaults to all of the client’s scopes.
Request examples
curl --request POST \
--url "https://api.globodain.com/v1/oauth/token" \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=client_credentials&client_id=cli_backend&scope=connections%3Aread+ask'Responses
Token issued.
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "connections:read ask"
}