All API requests are authenticated using API keys passed in theDocumentation Index
Fetch the complete documentation index at: https://docs.ayliea.com/llms.txt
Use this file to discover all available pages before exploring further.
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.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.
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.
| Scope | Grants access to |
|---|---|
scores:read | GET /api/v1/scores |
recommendations:read | GET /api/v1/recommendations |
discovery:read | GET /api/v1/discovery |
assessments:read | GET /api/v1/assessments |
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
| Constraint | Value |
|---|---|
| Maximum active keys per organization | 25 |
| Key length | ayliea_pk_ prefix + 64 hex characters (74 characters total) |
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing X-API-Key header or key not found |
403 Forbidden | Key does not have the required scope, or organization is not on the Enterprise tier |

