Recent searches
No recent searches
Get Account ID (Zendesk Instance) Information
Posted Nov 17, 2021
Hi,
I'm building a third-party integration to be listed on Marketplace and I need a way to get the unique account ID (the Zendesk instance identification).
Which RESTful API can I get that?
Thanks.
0
7
7 comments
Erica Girges
Unfortunately, for security purposes, we don't have an API to retrieve Zendesk instance id's. However, if you needed account authorization for API purposes you could look into using OAuth or API tokens. Here's some getting started info on that [here](https://developer.zendesk.com/api-reference/ticketing/introduction/#security-and-authentication).
Otherwise, if you're comfortable doing so, feel to share more about the integration and what it is you're trying to accomplish. I'd be more than happy to help you come up with a solution.
Best,
Erica - Dev Support
0
Rodrigo Fraga
Hi Erica,
I'm a third-party integration to be listed on Marketplace and installed in any account instance.
I need the account identification because they are tenants, and I need to identify them when I receive a webhook event.
Actually, you are sending the Account ID via Webhook event header:
And, recently, I figured out that the "/api/v2/audit_logs" endpoint contains the account ID info.
So this information is actually accessible but not easy to get.
The standard way to return such info is by querying the oAuth token details or using JWT to encode the token.
0
Erica Girges
I'm so sorry! I misunderstood which id you were looking to retrieve. Yes you do have access to the unique account id's for all users.
I'm glad you were able to find the solution you needed. Great catch! We'll definitely take note of needing to make that more easily accessible.
Appreciate your contribution to the Community!
Best,
Erica - Dev Support
0
gurdeep singh
Hi is there any API availbale in zendesk to get account details by passing Account ID as a parameter?
0
Greg Katechis
Hi Gurdeep!
I'm not aware of anything available like that, however we do have the account settings API for your specific instance. Could you tell me more about what you're looking to do so I can see if we can find another solution for you?
0
Elias Mangoro
Hello, after 4 years I have a similar issue as the initial poster, I would like to handle Zendesk support webhook events, ie https://developer.zendesk.com/api-reference/webhooks/event-types/agent-availability-events/#agent-unified-status-changed, that provide an account id
For my use case I want to build an integration to handle such events and need the zendesk account information (e.g. unique account ID and account name) in advance to setup handling for the events, so is there a way now to get this information via API now?
I found this API https://developer.zendesk.com/api-reference/sales-crm/resources/account/ however it is in the “Sales CRM” section, so not sure if the account ID from this API will be the same as the account ID from the Zendesk support webhooks? Could you please confirm if I can use this or if there is a different API to get Zendesk Support account details?
1
Jinwook Jeong
The X-Zendesk-Account-Id header from Zendesk webhook requests is practically useless if there is no reliable way to retrieve it elsewhere.
0