Getting Started with RedJade API
After registering your 3rd party application with RedJade you will be provided with a client_id and client_secret in the following format.
client_id: qm8c24a36ygj88azbwhr client_secret: wbfbqaguuefg5g2jdn72qsrng4yxwsm6jbk8k5fk
Your integration will need to provide these credentials to log-in and obtain an access_token. This access token will be valid for 1 hour.
Create Bearer Token
REDJADE_CLIENT_ID=d5a72e97f20a561962f7
REDJADE_CLIENT_SECRET=9308b536c5bf047df8aabe245e7494ae715d427f
curl --request POST \
"https://app.redjade.net/api/v1/oauth/access_token?client_id=${REDJADE_CLIENT_ID}&client_secret=${REDJADE_CLIENT_SECRET}"
{
"response": {
"access_token": "bd384509c7e2aff770e83229f741c710be7db446c207ac89",
"token_type": "Bearer"
}
}
Assign Bash Variable
bearer_token=`curl --request POST \
"https://app.redjade.net/api/v1/oauth/access_token?client_id=${REDJADE_CLIENT_ID}&client_secret=${REDJADE_CLIENT_SECRET}" | \
jq -r '.response.access_token'
`
echo 'Successfully retrieved bearer token from RedJade'
echo $bearer_token