X-API-Key header. API keys are scoped to specific endpoints and tied to your organization.
Creating an API key
API keys are managed in the Ayliea web app by organization Owners and Admins.1
Open API key settings
Navigate to Organization Settings and select the API Keys tab.
2
Create a new key
Click Create Key. Provide a descriptive label (e.g., “Splunk Integration” or “Weekly Report Sync”) and select the scopes this key needs.
3
Copy the key
The full API key is displayed once after creation. Copy it and store it securely — you cannot retrieve it again.If you lose a key, revoke it and create a new one.
Key format
API keys use the following format:ayliea_pk_ prefix identifies the key type. The first 8 hex characters after the prefix are stored as a visible identifier so you can tell keys apart in the dashboard.
Using a key
Pass your API key in theX-API-Key header on every request:
Scopes
Each API key is granted one or more scopes that control which endpoints it can access. A request to an endpoint that requires a scope not assigned to the key returns a403 Forbidden response.
Create keys with the minimum scopes needed for each integration. A SIEM that only needs scores should not have
discovery:read access.
Key storage and security
API keys are hashed with SHA-256 before storage. Ayliea does not store the raw key — only you have it. Best practices:- Store keys in a secrets manager (e.g., AWS Secrets Manager, HashiCorp Vault, or your CI/CD platform’s secret store)
- Never commit keys to version control
- Use separate keys for separate integrations so you can revoke them independently
- Set the narrowest scopes possible on each key
Key rotation
There is no automatic key rotation. To rotate a key:- Create a new key with the same label and scopes
- Update your integration to use the new key
- Verify the integration works with the new key
- Revoke the old key
Limits
Revoking a key frees up one slot immediately. Revoked keys cannot be re-activated.

