# Authentication

The Screendesk API uses Personal access tokens to authenticate requests.

{% hint style="info" %}
Access tokens are tied to the Screendesk user account for which they were created. A token provides the same level of access & privileges that its associated Screendesk user account would have.
{% endhint %}

### Create an access token

To create an access token, sign in to your Screendesk account and go to the "Personal Settings" page. In the “[API Tokens](https://app.screendesk.io/profile/api)” tab click the “Create an API Token” button.

<figure><img src="/files/JyNUCllaR5pVVCB0m1UF" alt=""><figcaption></figcaption></figure>

Enter a token name and click on the “Create token” button. Once the token gets created, you will be able to copy the token to your clipboard.

<figure><img src="/files/V97R2gyLjBt1g50mLzTv" alt=""><figcaption></figcaption></figure>

You should now see the new token information in the table. You are able to view the raw token anytime you need to, as well as edit the token name and revoke the token.

<figure><img src="/files/MA9ievZjiJRcy2BbgWod" alt=""><figcaption></figcaption></figure>

### How to use your access token

Once you have created your access token, you can use it to make requests to the API. Requests are authenticated using [HTTP Bearer Authentication](https://tools.ietf.org/html/rfc6750). You must provide the access token in the Authorization header:

```
Authorization: Bearer {ACCESS_TOKEN}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.screendesk.io/api/screendesk-api/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
