> ## Documentation Index
> Fetch the complete documentation index at: https://docs.forest.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication, Filtering & Sorting

## Get authenticated to the Zendesk API

You first need to generate an authentication token to access the Zendesk API. We are going to use the basic authentication mechanism. [More details provided here](https://developer.zendesk.com/rest_api/docs/support/introduction#security-and-authentication). \
\
The 2 parameters required are: a user email (agent) that is allowed to access Zendesk, and the API Key that you can retrieve from the Zendesk console:

<img src="https://mintcdn.com/forest/UDnqA5TqR2qMKTU8/images/legacy/javascript-agents/image%20(494).png?fit=max&auto=format&n=UDnqA5TqR2qMKTU8&q=85&s=d161b45037abd5c204fdc260b0f448fd" alt="" width="1631" height="895" data-path="images/legacy/javascript-agents/image (494).png" />

These 2 parameters can be environment variables like this;
