Customer Authentication API: This API is developed by you and is responsible for generating signed tokens for callstats authentication.
3 - Once your App gets a valid token from your Customer Authentication API it can send an access request to Callstats Authentication API by passing the following parameters:
grant_type string Required Must be set to "authorization_code"4. Callstats Authentication API returns an access token to your App. Your App is now able to send any request to Callstats REST API.
code string Required JWT signed ApplicationToken with alg set to ES256 (this is the signed token returned on Step 2 above)
client_id string Required localID@appID ( localID is provided by the developer and MUST NOT be null or empty)
A successful response from Callstats Authentication API is something like:
5. Your App can now send any request to Callstats REST API by including the access token in the authorization header.
POST /token HTTP/1.1 Host: server.example.com Authorization: Bearer czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/json;charset=UTF-8