Connect to API - 403 error when trying to access API

see docs for all parameters
https://github.com/sherpadesk/api/wiki


1) First you need to get api key:
Copy4e16dc7efb82.png

2) then you need do https://api.sherpadesk.com/organizations?b=


where b=Zzl4N2t5LXgwdjV0bDppYzQ5MTk4Yz******==

it's your base64 encoded token 'x:APIKEY'

you get

[{

"key": "zwoja4",

"name": "SherpaDesk",

"is_expired": false,

"is_trial": false,

"instances": [{

"key": "ms2asm",

"name": "Support",

"is_expired": false,

"is_trial": false

}]},

{

"key": "g9x***",

"name": "tryrty",

"is_expired": false,

"is_trial": true,

"instances": [{

"key": "x*****",

"name": "Main",

"is_expired": false,

"is_trial": false

}]}]

3) you need org key and instance key put together with access token

"g9x***-x***:ic49198c38***********"

then base64 encode it and use as "Zzl4N2t5LXgwdjV0bDppYzQ5MTk**************=="

you can search tickets with

GET https://api.sherpadesk.com/tickets?query=all&location=&search=14448*&limit=20&b=Zzl4N2t5LX**************==

Or get ticket content by number

https://api.sherpadesk.com/tickets/14448?b=Zzl4N2t5LXgwdjV0bDppY****************== to search tickets by user you need *userid* and add
user=*userid*

To search userId by user email, search with query to
/users

see docs for all parameters

IF it is asking for a username and password you missed some parameters, try again


4) for Production better to add base64 encoded token string in Authorizations header not in parameter *b*


cause it's stored in history, but for playground this is ok

it's very insecure to add API key in query string

it get cached and become public

please use Postman https://documenter.getpostman.com/view/4454237/apisherpadeskcom-playground/RW8AooQg#b3eeb38a-da8e-1969-4e25-5d4782511cb4


Good luck 😀