> For the complete documentation index, see [llms.txt](https://helpwith.salesorder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpwith.salesorder.com/setup/configuration/api-keys.md).

# API Keys ⛭

API Keys allow external applications and integrations to securely authenticate requests to the Salesorder API.

Access these settings from:

**Setup > Configuration > API Keys**

Use this page to control which authorization methods can be used to access the Salesorder API and to create and manage API keys.

#### Enable API KEY Authorization

The **Enable API KEY Authorization** option controls whether API requests can be authenticated using an API key.

* **Checked:** API key authorization is enabled. Valid API keys can be used to authenticate requests to the Salesorder API.
* **Unchecked:** API key authorization is disabled, and API requests cannot be authenticated using an API key.

API keys can be created and managed in the **API Keys** section using **New API Key**.

#### Disable Session-based Authorization

The **Disable Session-based Authorization** option controls whether API requests can be authenticated using an active Salesorder session.

* **Checked:** Session-based authorization is disabled. API requests that attempt to use session authorization will be rejected with a **401 Unauthorized** response:\
  *“Session-based authorization is disabled.”*
* **Unchecked:** Session-based authorization remains enabled and continues to work as before.

Use this option when you do not want API requests to authenticate through a Salesorder user session.
