> For the complete documentation index, see [llms.txt](https://docs.screendesk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.screendesk.io/api/screendesk-api/authentication.md).

# 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="https://1044304221-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1gMXTs1OMa7ALZjZUwQO%2Fuploads%2FT5Rjzpb1LpkdeFCRwQwQ%2FCleanShot%202024-10-10%20at%2011.08.49%402x.png?alt=media&amp;token=4ddff3e6-856c-4c68-baa3-f6a4d522e77b" 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="https://1044304221-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1gMXTs1OMa7ALZjZUwQO%2Fuploads%2FYgdg62SSf6RrpNYyGTuc%2FCleanShot%202024-10-10%20at%2011.10.23%402x.png?alt=media&amp;token=b36d89cf-3f9a-47cd-85a0-cce2fd0ad3eb" 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="https://1044304221-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1gMXTs1OMa7ALZjZUwQO%2Fuploads%2FwX9drttt0iQnSZjw1JyR%2FCleanShot%202024-10-10%20at%2011.12.39%402x.png?alt=media&amp;token=2b1e076f-e07f-4f3c-876b-de03dba40582" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
