# API Token

{% hint style="danger" %}
**Sharing your API token is strictly prohibited, please don't do it.**
{% endhint %}

### Obtaining your token:

Simply login to our website and generate yourself an API token.

{% embed url="<https://hentaicord.net/api/auth/discord/login?redirect=/user/developer>" %}

***

### Using your token:

When making requests, all you need to do is pass along your API token as a string via the **Authorization** header. That's it.

***

### 401: Unauthorized

You will receive this response if you fail to provide your Authorization header:

```json
{
    code: 401,
    message: "Failure to provide Authorization header and token"
}
```

You will receive this response if you specify an Authorization header, but your API token is incorrect:

```json
{
    code: 401,
    message: "Failure to provide correct API token"
}
```
