Using Bearer Tokens to authenticate with your site

Last modified: March 13th, 2023

Working with a specific static site generator?
Customize CloudCannon's documentation to suit your SSG.

Great! We'll show you documentation relevant to .
You can change this any time using the dropdown in the navigation bar.

To set up bearer tokens for your site:

  1. Go to the Site Settings / Bearer Tokens section
  2. Enter a token name and click Create Bearer Token
Screenshot of bearer tokens interface

You’ll now need to send through an Authorization header to access the site. This is intended for scripts or machine users. For example:

curl -H "Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Open in a new tab