Request
curl --request POST \
--url https://api.cybervox.ai/auth \
--header 'content-type: application/json' \
--data '{"client_id":"(( your client id ))","client_secret":"(( your secret ))","audience":"https://api.cybervox.ai","grant_type":"client_credentials"}'
Response
{
"access_token": "(( jwt token ))",
"token_type": "Bearer"
}
Check the jwt token expiration time (exp
) and only get a new one when necessary!
Call the API
curl --request GET \
--url https://api.cybervox.ai/.../?access_token=(( jwt token ))