Authorization header:
Authentication methods
OAuth 2.0
The API supports OAuth 2.0 with JWT access tokens issued by the Erna authorization server. Authorization server:API keys
API keys are supported for server-to-server integrations. Send the key as a Bearer token.Product scopes
For launch, the product scopes are:runs:readruns:write
runs:write and runs:read because creation responses return persistent IDs that callers are expected to poll or inspect afterward.
| Scope | Required for |
|---|---|
runs:write + runs:read | POST /v1/workspaces/{workspaceId}/pipelines |
runs:write + runs:read | POST /v1/workspaces/{workspaceId}/pipelines/{pipelineId}/runs |
runs:read | GET /v1/workspaces/{workspaceId}/pipelines and related read APIs |
runs:read | GET /v1/runs/{runId} |
Protected Resource Metadata
The API publishes an RFC 9728 Protected Resource Metadata document at:Credits
Schedule generation viaPOST /v1/workspaces/{workspaceId}/pipelines/{pipelineId}/runs consumes credits. Credits are reserved when the run starts and finalized when the run completes.
If you have insufficient credits, the API returns 402 with a checkout hint that points at POST /v1/billing/checkout.