Authentication

Authenticate requests to the Squadbase API with a user-issued API key.

Requests to the Squadbase API are authenticated with an API key passed in the x-api-key header. The most common use is calling the API from your own systems — for example, running an Automation on demand from a workflow tool such as Zapier or n8n, a cron job, or an internal tool.

HeaderRequiredDescription
x-api-key✅A user-issued API secret key (system-issued keys are not allowed)
Content-Type✅application/json (for requests with a body)

Creating an API key

Create API keys from API Keys in Settings. A key can only be used with the teams and projects you choose when you create it (you can change this later by editing the key).

  1. Click the organization name at the top left of the sidebar and open Settings → API Keys.
  2. Click Create API Key and give the API key a name.
  3. Choose the teams and projects to allow access to, and create the key.

The "API Keys" screen in Settings, with the "API Keys for Integration" guidance and the "Create API Key" button

The screen gives the following guidance on handling API keys:

  • Handling: Anyone who knows the key can access without signing in. Keep it safe
  • Revoking: Keys don't expire. Delete a key to stop it from working
  • Logging: Access with a key is recorded in the project's access log

Authorization rules

  • The key owner must be a non-Viewer member of the project that owns the target resource.
  • The key must be scoped to the target project / team, otherwise the request returns 401.
  • IP restrictions apply: both the per-API-key source IP allowlist and the team IP restriction are enforced against the derived team.

Using an API key

Pass your key in the x-api-key header of your HTTP requests. For example, to run an Automation:

curl -X POST 'https://api.squadbase.dev/v0/automation/<PROJECT_ID>/<AUTOMATION_NAME>/trigger' \
  -H 'x-api-key: <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{}'

See the API Overview for all available endpoints.