12-06-2024 09:51 AM
Hi all,
I am trying to create a connection to ChartHops job api. I was provided an api token, and I can use this in Postman to get the data I am looking for. However, I am not able to get a connection to work in Workato. In Postman I use the auth type "Bearer Token" but I don't see anything like that in Workato. I tried Header Auth but that didn't work.
Has anyone had experience with ChartHop? Do I need additional credentials in addition to or other than the api token? Is there a way I can make this connection with the api token?
Thanks for taking the time.
Cheers.
12-07-2024 11:51 PM
Hi @b-driscoll,
Can you provide some snapshots of how you are configuring the authentication in the postman as well as in the Workato? I can help you on this.
The ideal case would be,
1. If you are using the Bearer token authentication, you have to specify the key as Authorization and the value would be Bearer <accesstoken/apitoken>.
2. If you are using the api key as authentication, then you have to specify apikey as key and value would be the <apikey>.
for more information. Please refer this documentation - https://docs.workato.com/developing-connectors/http/building-http-action.html#configure-multipart-re...
Regards,
Prajwal Prasanna
12-09-2024 06:59 AM
Hi @Prajwal
This is how I have Postman configured for this ChartHop endpoint. There are no additi9nal jeaders other than the ones Postman generates.
This is how the connection is configured in Workato. I have tried apikey as well, but still get 401 errors. None of the other Auth types seem to apply. I'll sen another reply with screenshot from the guided setup.
12-09-2024 07:03 AM
Hi @Prajwal
Screenshots from the guided setup. Do I need to set it up manually? I tried that last week with the same results, but can try again. I'm missing something. Thanks for your help.
12-09-2024 09:36 AM
Hi @Prajwal
I was able to get the connection to work using Authorization as the key and Bearer <apitoken> as the value. It took me a few minutes before it dawned on me that you meant to actually include the work Bearer in the string. 🙂
Thanks for your help!