Getting an access token to Contimo API
Contimo will provide you with Client ID and Client Secret. You need to execute a client credentials exchange to get an access token to Contimo API.
curl --request POST \
--url https://login.contimo.app/oauth/token \
--header 'content-type: application/json' \
--data '{"client_id":"CLIENT_ID","client_secret":"CLIENT_SECRET","audience":"https://api.contimo.app/","grant_type":"client_credentials"}'
Response
{
"access_token": "...",
"token_type": "Bearer"
}
That's it!
Now that the application has an access_token
, it is now able to make authorized calls to the API. You need to use this bearer token with an Authorization Header in all requests to Contimo API.
Contimo API is located at https://api.contimo.app/
curl --request POST \
--url https://api.contimo.app/ \
--header 'authorization: Bearer ...' \
--header 'content-type: application/json' \
--data '{"query": "query { Ping Test }"}'