> For the complete documentation index, see [llms.txt](https://docs.transactionlink.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.transactionlink.io/docs/transactionlink-api/api-reference/authorization.md). Agents can also search and read this documentation through its [MCP server](https://docs.transactionlink.io/docs/~gitbook/mcp).

# Authorization

Authorize your API requests with an organization token.

{% hint style="info" %}
All API requests must be made over HTTPS. Any requests made over HTTP will fail.
{% endhint %}

Every request to the TransactionLink API is authorized with an **organization token**. Organization tokens start with the `tot_` prefix.

## Get an organization token

1. Open the [TransactionLink dashboard](https://dashboard.transactionlink.io/) and go to the settings of your organization.
2. Navigate to **Profile** -> **Organization** -> **Organization tokens**.
3. Generate a new token, or copy an existing one.

{% hint style="warning" %}
An organization token gives access to your organization's data. Keep it on your server, store it as a secret, and never expose it in frontend code or commit it to a repository.
{% endhint %}

## Authorize a request

Pass the token directly in the `Authorization` header. Do not add a `Bearer` prefix.

```http
Authorization: tot_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

{% tabs %}
{% tab title="cURL" %}

```bash
curl https://api.transactionlink.io/organizations/workspaces \
  -H "Authorization: $ORG_TOKEN"
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const axios = require('axios');

const api = axios.create({
    baseURL: 'https://api.transactionlink.io',
    headers: { Authorization: process.env.ORG_TOKEN },
});

const { data } = await api.get('/organizations/workspaces');
```

{% endtab %}
{% endtabs %}

There is no separate step to exchange the token for an access token, and nothing to refresh. Send the same organization token with every request.

## Permissions

A token can only do what its permissions allow. A request made with a token that lacks the required permission receives a `403 Forbidden` response. Permissions are managed in the dashboard.
