> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onefirewall.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authorization

<Note>
  Updated API documentation with live interaction is now available in the product dashboard under **API Docs**.
</Note>

To use these APIs, you need authorized access to the OneFirewall platform. If you don't have an account, create one and log in at the [OneFirewall Alliance Platform](https://app.onefirewall.com).

### Generate an API Token

Once you have access, go to the profile page and generate an API JWT token. Store it securely — you'll need it for every request to the APIs described in this documentation.

Every request must include your token in the `Authorization` header. The example below targets `/api/v1/version`, an endpoint that doesn't actually require authorization.

##### HTTP Request

```http theme={null}
GET /api/v1/version HTTP/1.1
Host: app.onefirewall.com
Authorization: Bearer PLACE_YOUR_OWN_TOKEN_HERE
```

##### Python Request

```python simple-http-request.py theme={null}
import requests

url = "https://app.onefirewall.com/api/v1/version"

payload={}
headers = {
  'Authorization': 'Bearer PLACE_YOUR_OWN_TOKEN_HERE'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
```

### Organization Selection

For certain APIs, especially those related to scanning and resource management, you must specify the organization context. You can do this in two ways:

* Header: `X-Org-Id` set to your organization's ID.
* Query parameter: `org_id=YOUR_ORG_ID` appended to the URL.

If neither is provided, the API falls back to your default organization, or returns an error if no context can be determined.

##### Example with Org ID Header

```http theme={null}
POST /api/v1/scan/example.com HTTP/1.1
Host: app.onefirewall.com
Authorization: Bearer YOUR_TOKEN
X-Org-Id: 69084dbb6b1a388fbd6c757d
```
