Welcome to the CloudCannon documentation!
Some documentation only applies to specific static site generators. To ensure the documentation is relevant for you, select your preferred SSG below:
Tip: You can change this at any time at the top right of the page.
Using Bearer Tokens to authenticate with your site
Last modified: September 28th, 2023
To set up bearer tokens for your site:
- Go to the Site Settings / Bearer Tokens section
- Enter a token name and click Create Bearer Token
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" https://example.com/products.json