Reputation: 2375
I'm calling the Freshdesk API to update a ticket by adding tags. I'm having trouble authenticating the call. I have encoded username and password to base64(using an external tool).
I've tried the following:
username|password
BasicUsername:password
In both cases I get the error You have to be logged in to perform this action.
Upvotes: 0
Views: 737
Reputation: 11
FreshDesk API - Authentication
I found this when trying to get Postman to work with their API, turns out you need to set Authorization type to Basic Auth, have your API token from FreshDesk as your username and just 'X' (without the apostrophes) as your password. Hope it helps someone else.
Upvotes: 1
Reputation: 11
For everyone looking for the solution here...
I did a header and then did this with my API token
headers Authorization
Token token=yourapicode
Upvotes: 1
Reputation: 5264
Zapier's basic auth field should work if everything is set up correctly (and there's no |
in your password). In that field, you should be using your actual password, not the base64 encoded pair: david:mypass
.
If you want to do it manually, that's fine too. the Authentication
header should be something like Basic asdfasdf==
. Note the space between the word "basic" and the "base64" encoded username:password
.
Upvotes: 1