Zendesk API for fetching License Details.

mmalhotra42
Kilo Contributor

Looking for an API of Zendesk for the integration purpose to fetch details regarding the license of all the users. 

1 REPLY 1

GregRudakov
Tera Contributor

You can use the Users API to fetch details about all users, including their roles, which correspond to license types like agents or admins. The API endpoint GET /api/v2/users returns user data with a role field indicating whether a user is an end user, agent, or administrator.

You can also filter users by role using query parameters, for example, ?role=agent to get only agents.

Here’s a simple example of how to fetch users with their roles:

 
GET https://{subdomain}.zendesk.com/api/v2/users.json?role=agent Authorization: Bearer {access_token}

 

Replace {subdomain} and {access_token} with your Zendesk subdomain and API token.