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

# Auth

All API requests are executed in the context of a specific account (e.g. admin, agent, user, guest).

API endpoints have certain access restrictions assigned to them that limit who can access them. A few select API endpoints are completely open and world-readable (like `helpdesk/discover` demonstrated in the intro). But most require you to authenticate.

There are *two ways* to authenticate with the API that we'll explain in the following section.
