Authentication
Velora public API requests are authenticated with API keys. Send your key as
Authorization: Bearer <key> on every request. Keys are scoped; grant least privilege whenever possible.Required header
text
Authorization: Bearer YOUR_API_KEYScopes
API keys have granular scopes controlling allowed actions. Grant the minimum scopes needed to reduce blast radius if a key is exposed.
| Scope | Allows |
|---|---|
jobs:read | List jobs, get one job, list job runs |
jobs:create | Create new jobs |
jobs:update | Update, pause, and resume jobs |
jobs:delete | Delete jobs |
jobs:write | Compatibility wildcard for jobs actions; currently accepted broadly |
admin | Full allow across public jobs endpoints |
* | Full allow across all scope checks |
Current runtime behavior: `jobs:write` is treated as a broad jobs permission, and `admin`/`*` also pass all public jobs scope checks.
Creating a scoped key
Example: read-only reporting key
json
{
"label": "Reporting service",
"scopes": ["jobs:read"]
}Example: CI/CD hook that creates jobs
json
{
"label": "Deploy pipeline",
"scopes": ["jobs:create", "jobs:read", "jobs:update"]
}Avoid `*` and `admin` in production integrations. Prefer narrow scopes per service so compromised keys have limited impact.
Key security best practices
Store in env varsNever hardcode secrets in source or commit them to VCS.
One key per serviceCreate an individual key per integration to enable targeted revocation.
Rotate regularlyRotate keys periodically and after personnel changes.
Minimal scopesGrant only the scopes each integration requires.