Discussions
Issues generating an API Key to connect to Airbyte
Hi there,
I'm trying to create a connection between Airbyte and Talkdesk.
Airbyte basically asks for:
- Talkdesk account [account_name]
- Talkdesk API key (Client Credentials auth method)
My issue comes when trying to get the Talkdesk API, using client credentials auth method.
The Administrator provided me a OAuth Client credentials .json, with the following fields: id, secret, public_key, private_key and key_id.
What I did first is I’ve encoded the id and secret fields of the json by running in the terminal the following command:
echo -n 'id:secret' | base64
This gave me as an output an encoded string: let's call it "xyz". I’ve used this string then to make a post request as it follows:
curl -X POST <https://account_name.talkdeskid.com/oauth/token>
-H 'Authorization: Basic xyz'
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'grant_type=client_credentials'
Where xyz is the encoded string and account_name the talkdesk account
Unfortunately, I could just get a 401 error, like the following.
{"code":"401 UNAUTHORIZED","message":"Unauthorized"}%
Can you help me understanding what went wrong?
Also, is this the correct path to get the API Key as mentioned by Airbyte? Thanks a lot!