Documentation Index
Fetch the complete documentation index at: https://docs.velahq.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Two credential types
| Credential | Format | Scope | Used for |
|---|---|---|---|
| Client secret | vela_cs_... | Account-level | Creating apps, managing schemas, configuring rules |
| API key | vela_live_... | App-level | Ingesting events into one specific app |
Why two credentials?
Your API key is sent with every event your application ingests — it lives in your production services and travels over the network constantly. If it is ever leaked, an attacker can only ingest events into that one app. They cannot read your stored data, modify schemas, delete apps, or access anything else. Your client secret has full account access. It belongs only in server-side configuration, CI/CD secret stores, or the Vela CLI. Never put a client secret in frontend JavaScript, mobile apps, or public repositories.Client secret
Used with the Management Client to authenticate account-level operations.API key
Used with the Ingest Client to send events. Scoped to a single app.Best practices
Use environment variables — never hardcode
Use environment variables — never hardcode
Store credentials in environment variables or your platform’s secret store.Use
.env.sample with empty placeholder values for documentation.Use separate credentials per environment
Use separate credentials per environment
Create a separate Vela app per environment. A leaked staging key then has zero impact on production.
Rotate immediately if compromised
Rotate immediately if compromised
- API key — rotate from app settings. Old key revoked instantly.
- Client secret — generate a new one first, update services, then revoke the old one.
Never expose client secrets client-side
Never expose client secrets client-side
Client secrets grant full account access. They must never appear in browser JavaScript, mobile app bundles, Docker images pushed to public registries, or application logs.
Next steps
Client Secrets
Generate, use, and revoke client secrets.
API Keys
How API keys are created and rotated.