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

# Authentication

> How to authenticate with the Abusix API

## Base URL

All API requests are made to:

```
https://api.abusix.com
```

## Bearer token authentication

The Abusix API uses Bearer token authentication. Include your token in the `Authorization` header of every request:

```bash theme={null}
curl -H "Authorization: Bearer YOUR_TOKEN" \
  https://api.abusix.com/beta/guardian-ops/cases
```

### Generating a token

You can generate API tokens in the [Abusix Portal](https://app.abusix.com/account/abusix-api).

## Account context

For publicly accessible resources, instead of the `Authorization` header, you need to pass an `x-abusix-accountid` header to specify the account context. You can find your account ID on the [Abusix API settings page](https://app.abusix.com/account/abusix-api).

```bash theme={null}
curl -H "x-abusix-accountid: ACCOUNT_ID" \
  https://api.abusix.com/beta/guardian-ops/rep-share/cases/C-<uuid>
```
