Using postman to test Insightly API

Hi,

I'm trying to use Postman to test the Insightly API, to try to understand some aspects like subtypes.

Whenever I try to access the API, with basic auth and my API key, I get a 401 error.  Can you see what I've done wrong?

UPDATE:  Found the answer in Authentication description in https://api.insight.ly/v2.2/#!/Contacts/GetContact

"You will need to include your API key as the Base64-encoded user name, leaving the password blank."

1

Comments

2 comments
  • Hello Ian,

    A nice little tip if you are using Postman -

    Under the Authorization tab, you can plug in your API key "as is" in the username field, leave the password field empty and choose Basic Auth as type. Postman will convert your API key to base64-encoded and add it to headers.

    2
    Comment actions Permalink
  • Now that is a great tip. Thanks Sushamna. You can also make one easily at https://www.base64encode.org/ by simply pasting in your API and boom.

    0
    Comment actions Permalink

Please sign in to leave a comment.