# Agency

### 🔐 Agency Authentication

Agencies accessing the Swoove API must authenticate using **Bearer Tokens**. These tokens are issued when the agency logs in through the[ Agency Panel](https://panel.swoovedelivery.com/settings/configs), and must be included in the `Authorization` header of each request.

#### 🔑 How to Authenticate

To authenticate an agency request, include the Bearer token in your headers:

```
Authorization: Bearer <your-token-here>
```

#### 🔁 How to Obtain a Token

1. Log into the [Agency Panel](https://panel.swoovedelivery.com)
2. Move to the Configurations tab of the Settings page
3. Click on the "Create" button on the App Tokens section/Card to have your Token prepared&#x20;

<figure><img src="https://2778139867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FADcGPZhqc4D5S3HpxwuA%2Fuploads%2FqWLrOHLkSstSU0WnA471%2FScreenshot%202025-06-25%20at%2011.26.16%E2%80%AFAM.png?alt=media&#x26;token=3403ff60-39e6-41c2-9d54-ad0d79e71e96" alt=""><figcaption><p>App tokens on the Settings page</p></figcaption></figure>

{% hint style="warning" %}

* Never share your token in public repositories, client-side code, or unsecured environments.
* If your token is compromised, revoke it and generate a new one from the Agency Panel.
  {% endhint %}
