Documentation Index
Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
To authenticate with the Statamic REST API, you need:- Base URL - The hostname of your Statamic site (e.g.
acme.example.com) - API token - The value of
STATAMIC_API_AUTH_TOKENin your Statamic.envfile
Prerequisites
- A Statamic site with access to the
.envfile andconfig/statamic/api.php
Instructions
Step 1: Enable the REST API
Enable the API and generate a token in your.env file. There is no UI to generate a token — create one yourself using any of the following commands:
.env:
config/statamic/api.php:
If
STATAMIC_API_AUTH_TOKEN is not set, the API is publicly accessible without authentication. Always set a token in production.Step 2: Find your base URL
Your base URL is the hostname of your Statamic site, for exampleacme.example.com.
Step 3: Enter credentials in the Connect UI
- Open the form where you need to authenticate with Statamic.
- Enter your Base URL and API token in their respective fields.
- Submit the form, and you should be successfully authenticated.
