Scoped API keys are available on the Stigg Scale plan. All plans include the default Full access and Publishable keys.
Key types
Every environment is provisioned with two system-managed default keys. Users on the Scale plan can also create additional scoped keys.Full access key
The default server key has unrestricted access to the current environment and automatically inherits all future permissions as new capabilities are added to the platform. It is the only key allowed to have full access. Users cannot create additional full-access keys.Full access means full access to the environment the key belongs to. It does not grant access to other environments or other accounts.
Publishable key
Designed for use in frontend and mobile SDKs. Its read-only scope is immutable. For additional protection against unauthorized data access, enable client-side security enforcement.Scoped keys
User-created server keys with explicitly defined, restricted permissions. Scoped keys do not automatically inherit future platform capabilities. New resource types must be manually granted.Principle of least privilege: Instead of sharing a single full-access key everywhere, create narrow scoped keys per service or environment. If a key is compromised, the blast radius is limited to only the permissions that key holds.
Finding your API keys
- Log in to the Stigg app
- Navigate to Integrations > API keys
Key statuses
Using API keys
GraphQL API
Include your API key in theX-API-Key header with every request:
REST API
Include your key in theX-API-KEY header with every request:
Backend SDKs
Use the full access key (or a scoped key with appropriate permissions) when initializing a backend SDK:Frontend SDKs
Use the publishable key when initializing a frontend SDK:Creating a scoped key
- Navigate to Integrations > API keys
- Click + Add scoped key
- Enter a Name and optional Description
- Configure the Scope for each resource (see Scope matrix below)
- Click Create
Scope matrix
When creating a scoped key, choose from the following supported permission presets:
Selecting a write permission on a resource also grants read access for that resource.
Key details panel
Click any row (or select Key details from the context menu ⋮) to open the detail panel, which has three tabs:Overview
Displays the key’s name (editable for scoped keys), description, type, masked key value with Show/Hide toggle, status, expiration (if rotating), creation date, and environment.Scope
Shows the configured permissions. For scoped keys, permissions can be updated and saved here. Default keys and integration keys have read-only scopes that cannot be changed.Activity
An audit log scoped to this specific key, showing only lifecycle events for the key itself:
This is different from Logs > Activity, where you can see all API activity across your environment and which key was used for each operation. For example, an entry there might read Create customer with the associated key shown as Full access key or the name of a specific scoped key.
Key rotation
Rotating a key generates a new secret while keeping the old secret valid for a configurable grace period, enabling zero-downtime rolling deployments. To rotate a key:- Open the context menu (⋮) next to the key, or open the key’s detail panel
- Click Rotate key
- Select when the old key should expire:
- Now (immediately invalidated)
- In 1 hour
- In 24 hours
- In 3 days
- In 7 days
- Confirm the rotation
Extending the grace period
If you need more time, extend the grace period before it expires:- Open the context menu (⋮) next to the expiring key
- Click Change grace period
- Select a new expiration window
Revoking a key
Revocation immediately and permanently invalidates a key. Any requests using it will receive401 Unauthorized.
- Open the context menu (⋮) next to the key, or open the key’s detail panel
- Click Revoke
- Confirm
Client-side security
The publishable key is visible in client-side code by design. To prevent unauthorized access to other customers’ data, Stigg supports an additional hardening layer: your backend generates a signed customer token (HMAC SHA256) that Stigg validates on every frontend request. Enable and configure client-side security from the Publishable key detail panel, under the Overview tab.Hardening client-side access
Integration keys
When a third-party integration (such as Salesforce) is configured, Stigg automatically provisions a dedicated server key for it. Integration keys appear in the API keys table with Default type and have immutable scopes. They are removed when the integration is disconnected.Access control
API key visibility is governed by role-based access control (RBAC):Migration from legacy keys
Existing keys are automatically migrated when upgrading to the new API key management system:
No action is required. Existing integrations continue to work without changes.
