Skip to main content
Scrunch API keys authenticate your requests and define which brands and operations your integration can access. Only organization admins can create or manage API keys.
API keys are shown once at creation time. Be sure to copy and store them securely.

Where API Keys Live

API keys are managed at the organization level. You can find them by clicking your organization name in the top-left corner of the Scrunch dashboard, then selecting API Keys. This area is available only to organization admins and is also where you manage brands and archival operations.

Create an API Key

Complete these steps in your Scrunch UI to provision an API Key ($SCRUNCH_API_TOKEN).
1

Open the organization menu

Click your organization name in the top-left corner of the Scrunch dashboard.Organization selector showing API access
2

Open API Keys

Select API Keys from the organization menu.
3

Create a new API key

Click + New API Key.
4

Choose the key scope

Scrunch supports several operational scopes:
  • Query (retrieve analytics and metrics)
  • Configure (update brand configuration, prompts, etc.)
  • Create Brand (programmatically create brands)
Choose the minimal scope required for your integration.
5

Select brand access

You may scope the key to:
  • Specific brand(s) (recommended for client-facing reporting)
  • All brands (recommended for internal tooling or ETL pipelines)
6

Create and copy the key

Scrunch displays the key once. Copy it immediately and store it securely.

Use Your API Key

Include your key as a Bearer token in the Authorization header.
export SCRUNCH_API_TOKEN="your-key"

curl -H "Authorization: Bearer $SCRUNCH_API_TOKEN" \
  https://api.scrunchai.com/v1/brands

Best Practices

Use brand-scoped keys

Limit access when integrating with client-facing dashboards or BI tools.

Reserve org-wide keys

Use for internal workflows only (e.g., multi-brand ETL, automation).

Rotate keys periodically

Especially important for deployments or CI environments.

Archive inactive clients

Keeps your organization clean and prevents accidental access.

Troubleshooting

If a key cannot access a brand:
  • Verify the key’s scope includes that brand
  • Check that the brand has not been archived