fix: API key authentication and REST handler errors (#446)

This commit is contained in:
Henry
2026-03-19 12:20:19 +00:00
committed by GitHub
parent 0b45ceff7f
commit 67cf523ee8
4 changed files with 18 additions and 14 deletions

View File

@@ -11,10 +11,10 @@ https://kan.bn/api/v1
## Authentication
Most endpoints require authentication using your API key. You can create one in the [settings page](https://kan.bn/settings) of your account. Include this key in the `x-api-key` header of each request.
Most endpoints require authentication using your API key. You can create one in the [settings page](https://kan.bn/settings) of your account. Include this key as a Bearer token in the `Authorization` header of each request.
```
'x-api-key': kan_123456789
'Authorization': 'Bearer kan_123456789'
```
## Response codes