Skip to main content
Version: Organisations 1.2.0

Programmatic access

For Owners, Operators and ProgrammaticAccessAdministrators issuing the API keys other systems use to run your Flows; ProgrammaticAccessViewers read the keys and their usage. Each key is bound to one governed deployment and its credentials are shown once. What a key carries and how a caller uses it is on API keys.

Before you start: you need a governed deployment (Deploy your first Studio) on a Studio release that serves the API; without one, New API key is disabled with "Create a governed deployment first".

Read the list​

Open Identity & access in the Dock and choose Programmatic access ("API keys let other systems run this organisation's workflows. Each key is bound to one governed deployment and shown once."). API keys, searchable with Search keys by name, lists each key with its name and description, its status, its deployment, its Flows ("All active" or "N workflows") and when it Expires.

Status is Active, "Rotating until <date>", "Not yet active in <deployment>", Revoked, "Revoked · effective in the deployment within 2 minutes" or Expired. A red Auth failures marker ("N rejected credential or IP attempts in the last hour") means the key raised the auth-failure alarm. With none: No API keys yet ("Keys are created here and become active in the bound deployment within about a minute.").

Create a key​

  1. Click New API key on the Action Bar (without the permission: "Requires owner or operator, or the ProgrammaticAccessAdministrator role").
  2. Fill in the form's sections: Key identity, Bound deployment ("The deployment binding is fixed"; Why only governed deployments? explains that in a standard deployment a key-triggered run would have no clear owner), Workflow access, Allowed operations, Source network access, Expiry and rate limit and Allowed hours. Each field, its default and its bounds are on API keys.
  3. Click Create and confirm Create API key? with Create.

The deployment picker lists governed deployments only; one whose Studio release is too old reads "Studio <version>, needs <release>" and is refused. A save that breaks a rule says which: for example "Choose the governed deployment this key is bound to." or "Select at least one workflow, or choose “All active workflows”."

Copy the credentials​

After Create, Rotate API key or New external ID, a dialog titled with the key's name shows the two values the caller needs: "Copy these now. AlphaAgent does not store them and cannot show them again."

  • API key: "Send as Authorization: Bearer <key> on every call."
  • Key external id: "Send as the X-AlphaAgent-Key-External-Id header on every call — the second factor."

Tick I have stored the key before Close. Afterwards the key's page shows only Key ending and External ID ending under Credentials.

Manage a key​

Click a key to open its page: API key details (Name, Key ID, Status, Expires, Last used, Requests in the last 24 hours, Created, Created by), Description, Bound deployment, Workflow access, Access limits (Scopes, Source IP allow-list, Rate limit, Daily run quota, Concurrent runs, Allowed hours (UTC)) and Credentials. Its Action Bar offers Refresh API key and API key usage, and, while the key is Active or Rotating:

  • Edit API key: every field except the deployment; expiry offers Keep the current expiry. Confirm Save API key? with Save.
  • Rotate API key: a new secret now; the old one keeps working for the Overlap you choose: 1 hour, 24 hours (default), 3 days or 7 days (maximum).
  • New external ID: asks "Issue a new key external id for “<name>”?" with Issue new external id. There is no overlap: the current id stops working within about a minute, so update every caller straight away.
  • Revoke API key: type the key's name to confirm Revoke. "Every call with this key fails within two minutes. This cannot be undone."

Once a key is revoked or expired, Delete API key (type the name, then Delete) removes it from the list and from the deployment; its audit trail stays.

Read a key's usage​

API key usage opens the key under Audit ("Usage measurements and recorded lifecycle events for this API key."; also reachable from the Audit tab API key usage): Requests (24 h), Last used, Rejected auth/IP (last hour), hourly bars of accepted and rejected requests, and the key's Audit trail: Created, Edited, Secret rotated, Key external id rotated, Revoked, Deleted, Active in the deployment, Expired and Run data purged, each with who did it (platform actions read "AlphaAgent Organisations"). Back to API key returns to the key.

What you should see​

  • A new key reads "Not yet active in <deployment>" for up to about a minute, then Active.
  • Every lifecycle action appears in the key's trail and in Audit; calls appear under the deployment's User attribution as an API-key principal (Deployment detail).

Notes​

  • Governed deployments only; the binding cannot change, so another deployment needs another key.
  • Usage is collected from the deployment once an hour; per-request detail (method, path, status, IP, reason) stays in the deployment for 90 days and is not proxied through Organisations.
  • Auth failures: investigate the caller, then rotate or revoke. A caller receiving 401 or 403 should check both headers, the allow-list and the allowed hours (Authentication).