ChatKitty
Search…
Authentication
Learn how to authenticate requests to the ChatKitty Platform API.
Retrieve an OAuth 2.0 Bearer access token with the client credentials OAuth flow.
Retrieving a Bearer access token requires a ChatKitty application client ID and client secret.
You can create a ChatKitty application and receive client credentials using the ChatKitty dashboard.
ChatKitty expects a valid Bearer access token to be included in all API requests like this:
Authorization: Bearer {{access_token}}
You must replace {{access_token}} with an access token gotten using your client credentials.
To authorize use this replacing acme with your client ID and acmesecret with your client secret:
1
curl --location --request POST 'https://authorization.chatkitty.com/oauth/token' \
2
--user 'acme:acmesecret' \
3
--form 'grant_type=client_credentials' \
4
--form 'username=acme' \
5
--form 'password=acmesecret'
Copied!
Returns a JSON response with the Bearer access token.
1
{
2
"access_token": "d4327889-26a8-49ac-997c-56d8b1bcb09c",
3
"token_type": "bearer",
4
"expires_in": 42892,
5
"scope": "org:1:app"
6
}
Copied!
access_token is the bearer access token. expires_in represents the access token's validity in seconds.
Last modified 12d ago
Copy link