1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-24 23:16:19 +02:00

Updated Setting up Authentication (markdown)

Nick Sweeting
2024-05-08 20:03:02 -07:00
parent b1c46e0745
commit 9d06a93174

@@ -181,13 +181,15 @@ curl -X 'GET' \
### API Request Header Authentication
Pass `X-API-Key=YOURAPITOKENHERE` as a request header.
> This method is provided in case you have a reverse proxy in front of ArchiveBox that consumes the `Authorization: Bearer` header.
Pass `X-ArchiveBox-API-Key=YOURAPITOKENHERE` as a request header.
```bash
curl -X 'GET' \
'http://127.0.0.1:8000/api/v1/core/snapshots?limit=10' \
-H 'accept: application/json' \
-H 'X-API-Key: YOURAPITOKENHERE'
-H 'X-ArchiveBox-API-Key: YOURAPITOKENHERE'
```
<br/>