# Authorization

### Step 1: Generate a User Access Token

1. Navigate to the [User Access Token page](https://dashboard.paytweed.com/api-keys) in the Management Dashboard.
2. Click on **Create user access token**.

<figure><img src="/files/T3efN7GeezUliL422LUR" alt="" width="375"><figcaption></figcaption></figure>

3. The generated token will include:

* **API Key**: Your unique identifier.
* **API Secret**: Your secret key for secure access.

### Step 2: Use the Authorization Header

When making requests to the API, you must include the authorization header in the following format:

```
Authorization: Bearer <API_KEY>:<API_SECRET>
```

#### Example Request

```
GET /api/v1/resource
Authorization: Bearer abcd1234:efgh5678
```

#### Important Notes

* Keep your **API Secret** confidential and do not share it.
* The token grants access to your account and data, so store it securely.
* If your token is compromised, revoke it immediately from the User Access Token page and generate a new one.


---

# 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.paytweed.com/developer-tools/api/api-v2/authorization.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.
