From 9d06a931747c61f9ccd4bc95246d2e964c97cef8 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 8 May 2024 20:03:02 -0700 Subject: [PATCH] Updated Setting up Authentication (markdown) --- Setting-up-Authentication.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Setting-up-Authentication.md b/Setting-up-Authentication.md index 0fdbb94..b9b5a77 100644 --- a/Setting-up-Authentication.md +++ b/Setting-up-Authentication.md @@ -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' ```