SanSolo
SanSolo

Reputation: 2375

How to authenticate Freshdesk API in Zapier webhook?

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:

  1. Basic Auth: In Zapier's BasiAuth field, I tried username|password
  2. In the header field, I added a key Authentication with value BasicUsername:password

In both cases I get the error You have to be logged in to perform this action.

Upvotes: 0

Views: 737

Answers (3)

PaulUniHomes
PaulUniHomes

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

Auston
Auston

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

enter image description here

Upvotes: 1

xavdid
xavdid

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

Related Questions