Skip to content

Reference 2 min read

API keys & permissions

Create an org-scoped API key with only the scopes your pipeline needs, then rotate it before it expires.

API keys are how automation signs in: CI pipelines, scripts, and integrations. Manage them under API Keys in the app.

  • Org-scoped. A key belongs to one organization. It only reaches that organization’s webhooks, flows, and collections.
  • Scoped permissions. Each key carries an explicit list of scopes. Requests outside those scopes are rejected.
  • Shown once. The app displays the secret a single time. You cannot retrieve it later.
  • Expiration. Keys support an expiration date, so short-lived credentials are the default.
  • Rotation. You create and rotate keys from the same screen.

Send the key as headers on API requests:

Terminal window
curl https://api.echopoint.dev/flows \
-H "X-Api-Key: $ECHOPOINT_API_KEY" \
-H "X-Organization-Id: $ECHOPOINT_ORGANIZATION_ID"

The CLI reads the same pair from ECHOPOINT_API_KEY and ECHOPOINT_ORGANIZATION_ID. The GitHub Action takes them as the api-key and organization-id inputs.

Scopes follow a resource:action shape. Start from your use case:

Use caseScopes
CI runs by flow IDflows:execute
CI runs by tag (--tag or tags:)flows:execute + flows:read
Read-only flow inventory (dashboards, scripts)flows:read
Reading captured webhook requestswebhooks:read

Grant the minimum. A key that only launches pinned flow IDs does not need flows:read. A reporting script needs no execute scope at all.

The app offers a ci preset. Review the scopes it selects and keep the minimum your pipeline needs. Current CLI ephemeral runs need flows:execute, plus flows:read for tag selection. They report results with a per-job token.

ScopeGrants
flows:readList and read flows (needed to resolve tag selections)
flows:executeLaunch flow executions
webhooks:readRead webhook endpoints and captured requests
runner:completeRunner protocol permission. Not needed on current CLI ephemeral-run keys.

The API serves the full catalog at GET /permissions. See the API reference.

  1. Create a replacement key with the minimum scopes and an expiration date.

  2. Update the secret everywhere it is used: CI secret stores, ECHOPOINT_API_KEY environment variables, and the GitHub secrets.ECHOPOINT_API_KEY value.

  3. Confirm a run succeeds with the new key. Then delete the old one.

Set an expiration on every key. A forgotten credential then ages out instead of living forever.

Next: CLI · GitHub Action · API reference · Getting started