Skip to content

Use the HTTP API

The HTTP API is how every client talks to a Weave platform: your application publishes workflows, starts runs, reads their progress, and answers waiting work through it. The CLI, Studio's local host, and the Python SDK use this same API, so an application written in any language can do what they do.

This page is for integration developers. In about 15 minutes you make two read-only requests and one compile request with curl, and you learn the rules every request follows: scope IDs, errors, revisions, and retry keys. You need:

  • a running platform: one your team operates, or the local platform on your computer;
  • a current access token for that platform and a person or application that holds grants in a workspace (see Get an access token);
  • curl and Python 3 in a terminal.

Choose how to learn the API

You want to… Open What you will get
Make a first request from a terminal Make a read-only request first Two curl requests that check your identity and project access
Look up one operation's exact contract Full API reference Every operation and schema, with a downloadable OpenAPI document
Send requests from your browser API playground Your server's Swagger UI, how to authorize it, and a compiler request
Call the API from Python Python SDK tutorial A script that publishes, activates, starts, and reads a run
Add workflows to your own product Host integration Which responsibilities belong to your application and which to Weave

The published API reference is documentation only. The interactive Swagger UI lives at /docs on your own platform when its operator sets WEAVE_DOCS_ENABLED=true. Its Try it out buttons send real requests to that platform.

Understand the three IDs in a request

Every workspace has three levels, and each one is a UUID in the request path:

  • A tenant is an organization or team.
  • A project inside it groups definitions: workflows, Actions, and Connectors.
  • An environment inside the project, such as development or production, is where versions are activated and runs execute.

Display names cannot replace the UUIDs. The first request below lists the ones you can use.

Resource Path after the API origin Why it lives there
Catalog, definitions, drafts, compiler /api/v1/tenants/{tenant}/projects/{project} Definitions belong to a project and can be used in all its environments
Activations, connections, runs, human tasks The project path plus /environments/{environment} Execution uses one environment's bindings and permissions
Your identity and the workspaces you can use /api/v1/identity Discover your own scopes without knowing any ID in advance
Published sign-in settings /api/v1/client-configuration Public, new in 0.1.0a7: how people sign in; weave auth setup and Studio read it
Health /health/live and /health/ready Public: operators check that the API runs and is ready

For example, append /catalog to the project path to read the definitions you can use, or /runs/{run_id} to the environment path to read one run. The full reference gives each operation's exact path, body, headers, and required capability.

A token proves who you are; grants decide what you may do. Every request except the public ones needs a verified bearer access token from your platform's identity provider. The platform then looks up the Weave person or application linked to that sign-in and checks its current grants for the requested scope. A successful sign-in alone grants nothing. See Give people the right access and roles and lifecycle.

Get an access token

The CLI, Studio, and the desktop app never print the tokens they keep, so a curl session needs a token from another source:

Your platform Where the token comes from
Operated by your team Your operator's approved method, such as a CI secret or your identity provider's tooling. Follow Use a supplied access token
The local platform weave platform token refreshes the local host token in the private file .local/platform/host-token.json (it prints the path, never the token)
A Python application The Python SDK can reuse your saved platform's sign-in (new in 0.1.0a7) or call your own token logic; no copying needed

Keep the values in the same terminal. The API origin has no /api/v1 suffix; on the local platform, weave platform status shows it as Api url:

# Ask for the API origin without a path, such as https://weave.example.com.
printf 'Weave API origin: '; read -r WEAVE_BASE_URL
export WEAVE_BASE_URL
# Prompt for the token without echoing it or keeping it in shell history.
export WEAVE_ACCESS_TOKEN="$(python3 -c 'import getpass; print(getpass.getpass("Access token: "))')"

On the local platform, read the token file instead of typing the token:

# Refresh the local host token; the command prints only the file's path.
weave platform token
# Read the token from that private file without printing it.
export WEAVE_ACCESS_TOKEN="$(python3 -c 'import json; print(json.load(open(".local/platform/host-token.json"))["access_token"])')"

Expected: Token file: …/host-token.json from the first command and no output from the second. Run both from the folder that holds .local/platform; with weave platform --directory PATH, read PATH/host-token.json instead. Tokens expire: when a request returns HTTP 401, get a new one the same way.

Make a read-only request first

Start with requests that change nothing, so that a failure can only mean an identity, scope, or network problem.

  1. Ask who you are. This request needs no IDs, and its answer lists the workspaces you can use:

    # Read your identity, your grants, and the tenants, projects, and environments you can use.
    curl --fail-with-body --silent --show-error \
      "$WEAVE_BASE_URL/api/v1/identity" \
      -H "Authorization: Bearer $WEAVE_ACCESS_TOKEN"
    

    Expected: HTTP 200 and a JSON object with principal_id, kind (human, application, or worker), grants, and workspaces. Each workspace is a tenant with its projects, and each project lists its environments, all with id and name. HTTP 401 means the token is invalid or expired, or the platform does not know this sign-in yet; see When a request fails.

  2. Keep the IDs of one workspace. Copy the tenant, project, and environment id values from that answer:

    # Paste the UUIDs from the identity answer; display names do not work in paths.
    printf 'Tenant UUID: '; read -r WEAVE_TENANT_ID
    printf 'Project UUID: '; read -r WEAVE_PROJECT_ID
    printf 'Environment UUID: '; read -r WEAVE_ENVIRONMENT_ID
    export WEAVE_TENANT_ID WEAVE_PROJECT_ID WEAVE_ENVIRONMENT_ID
    
  3. Read the project catalog. Your identity needs the catalog.read capability in that project:

    # Read the definitions this project can use before changing or running anything.
    curl --fail-with-body --silent --show-error \
      "$WEAVE_BASE_URL/api/v1/tenants/$WEAVE_TENANT_ID/projects/$WEAVE_PROJECT_ID/catalog" \
      -H "Authorization: Bearer $WEAVE_ACCESS_TOKEN"
    

    Expected: HTTP 200 and the catalog as JSON with definitions, tasks, adapters, and schemas; a new project's lists can be empty. HTTP 403 with WV-FORBIDDEN means you are known but hold no grant for this project.

Compile a workflow without publishing it

Compiling checks a workflow against the project's catalog and returns the compiled artifact. It saves nothing, publishes nothing, and starts no run. Your identity needs the compile capability in the project.

  1. Create a workflow file. Write .local/tutorial/echo.workflow.yaml as in the quickstart's definition step, then return to the folder that contains .local.

  2. Wrap the YAML in a JSON request. The API takes the source as a string, so encode it rather than pasting it:

    # JSON-encode the YAML so its quotes and newlines survive the HTTP request intact.
    python3 - <<'PYTHON'
    import json
    from pathlib import Path
    request = {
        "source": Path(".local/tutorial/echo.workflow.yaml").read_text(),
        "format": "yaml",
        "filename": "echo.workflow.yaml",
        "strict": True,
    }
    Path(".local/tutorial/compiler-request.json").write_text(json.dumps(request))
    PYTHON
    
  3. Send it to the compiler. Leaving out catalog makes the server use the project's current authorized catalog:

    # Compile against the project's catalog; nothing is saved or executed.
    curl --fail-with-body --silent --show-error \
      "$WEAVE_BASE_URL/api/v1/tenants/$WEAVE_TENANT_ID/projects/$WEAVE_PROJECT_ID/compiler/compile" \
      -H "Authorization: Bearer $WEAVE_ACCESS_TOKEN" \
      -H 'Content-Type: application/json' \
      --data-binary @.local/tutorial/compiler-request.json
    

    Expected: a compiler result with ok: true, partial: false, and an artifact. filename is only a label for diagnostics; the server never opens a file with that name.

HTTP success and compiler success are separate checks. A 200 response can still carry ok: false with diagnostics: read ok and diagnostics as well as the status.

To publish instead, send {"source": "<the YAML text>", "format": "yaml"} to the project's /workflows collection with an Idempotency-Key header. The SDK lifecycle example shows how the returned version ID and digest feed activation and the first run.

When a request fails

Errors arrive as application/problem+json with status, a stable code, a safe message, a request_id, and diagnostics. Quote the request_id (also in the X-Weave-Request-ID header) when you ask an operator for help.

What you see Why What to do
HTTP 401, WV-UNAUTHENTICATED The token is missing, malformed, or expired, was issued for another API, or its sign-in is not linked to a Weave person or application Get a new token. If it still fails, ask an administrator to link your identity (People and access)
HTTP 403, WV-FORBIDDEN You are known but hold no current grant with the required capability in that scope Check the IDs in the path, then ask for the role you need
HTTP 403, WV-REVIEW-DISTINCT The human task reviews an AI agent's tool call, and its step asks for a reviewer other than the person who started the run: you Ask another person assigned to the review; see AI agent reviews
HTTP 404, WV-NOT-FOUND No resource with that ID exists in the scope of the path Check every ID in the path, including the environment
HTTP 409, WV-IDEMPOTENCY-CONFLICT You reused an Idempotency-Key with a different request body Use a new key for a new request; reuse a key only for an exact retry
HTTP 412, WV-ETAG Your If-Match revision is no longer the current one Read the resource again, merge your change, and resend with the new revision
HTTP 422, WV-VALIDATION, WV-IDEMPOTENCY, or WV-ETAG The body does not match the contract, a required Idempotency-Key is missing, or If-Match is not a positive revision Compare field names and types with the full reference; send the revision as "2" or 2
HTTP 422, WV-FILTER A list query combines filters that contradict each other, or has an invalid time range (empty, or longer than 400 days); the message names the rule that failed Change or remove the filters the message names, then send the request again
HTTP 501, WV-UNAVAILABLE This server does not serve the operation yet Use an operation this server serves, or ask your operator for a release that serves it
A timeout or lost connection during a change The outcome is unknown: the change may or may not have happened Keep the original body and key; read the resource, and retry only with the same key

Request rules: paths, errors, revisions, and retries

These rules hold for every operation. Read them before you send your first change.

Paths

  • New code uses the versioned /api/v1/tenants/... paths. The older /tenants/... paths remain as compatibility routes to the same handlers, authorization, and data; they do not redirect.
  • /admin/tenants and /admin/grants keep their own, separately authorized paths.
  • Health probes, signed webhooks (POST /webhooks/{identifier}), and provider ingress (/provider-ingress/{identifier}) stay at the root. A webhook is checked against its trigger's signature over the exact timestamp and raw bytes; a bearer token never replaces that signature.
  • Nothing in a request can raise your authority: identity-provider roles, a catalog lock you send, or a compiled artifact grant no execution or publication right. Each operation checks your identity and scope again.

Headers and errors

  • Canonical responses carry X-Weave-Wire-Version: weave/api-v1 and X-Weave-Request-ID, even when authentication fails early.
  • Errors use application/problem+json with status, code, message, request_id, and diagnostics. When an operation has a safe compiler result or an "unavailable" result, result keeps it.
  • Errors never contain a framework traceback, a token, or a resolved connection credential.
  • Any request may carry X-Weave-Principal with the principal ID of the person it is made for, as Studio sends for every change. When the access token now belongs to someone else (for example after a sign-in elsewhere), the request answers HTTP 409 WV-PRINCIPAL-CHANGED before anything runs. Requests without the header are unchanged.
  • Worker credential leasing is the one deliberate secret boundary: it answers with Cache-Control: no-store and Pragma: no-cache, and its schema declares the secret value field. See the worker protocol.

Revisions (ETags)

Resources that change, such as drafts, carry a revision: a positive number that grows with each change.

  • Responses send it as a quoted ETag, such as "2".
  • Send it back in If-Match to say "change this only if it is still revision 2". Both "2" and the bare 2 are accepted. Weak (W/"2"), wildcard, multiple, zero, signed, and zero-padded values are invalid.
  • A stale draft write answers HTTP 412 (WV-ETAG). Debug sessions and incidents keep their own conflict codes.
  • Triggers carry a revision too: a retarget without If-Match answers HTTP 422 (WV-ETAG), and one from an older revision HTTP 409 (WV-REVISION). Stopping a platform-event trigger takes If-Match optionally: a stop from an older revision answers HTTP 409 (WV-REVISION) and stops nothing.
  • The SDK reports the real status and code instead of converting every revision conflict to one error.

Idempotency keys

An idempotency key is a name you choose for one intended change, so that a retry cannot apply it twice. These changes require an Idempotency-Key header of 1 to 200 characters:

  • publishing and retiring definitions, and creating and retiring activations;
  • starting, retrying, pausing, resuming, archiving, restoring, and purging runs;
  • claiming, releasing, reassigning, and completing human tasks, and saving human assignments and groups.

The full reference shows the header on every operation that accepts it. The rules for using a key:

  • Sending the same key, from the same principal and scope, with the exact same body returns the result that was already committed. The same key with a different body fails with HTTP 409.
  • Replaying an activation key also needs your current release.activate grant. A caller whose grant was revoked gets HTTP 403 (or 401 once the token stops working) instead of the activation that was already created.
  • Clients never retry a change on their own after a timeout or another outcome they cannot know. If you retry, send the exact same body and key. The exceptions are rejections that mean the platform did not admit the request: HTTP 429 with WV-OPERATION-CAPACITY or WV-REQUEST-CAPACITY, and HTTP 503 with WV-COMPATIBILITY. For these, Studio sends a read, or a change that carries a key, again with the same key, honoring Retry-After, for at most four attempts in all. Studio sends a WV-COMPATIBILITY refusal again only when its Retry-After is 5 seconds or less.
  • A WV-COMPATIBILITY refusal carries Retry-After with the whole seconds until the server's next automatic compatibility rescan. An explicit compatibility check can lift a restricted verdict sooner.
  • Creating a connection revision accepts an optional key since 0.1.0a7: with one, a retry returns the revision already created; without one, every request creates a new revision. Debug commands have no idempotency guarantee.

AI discovery, readiness and setup

Six operations, all in one environment, let a client choose and set up an AI connection. They are additive: no role, migration, definition schema or stored digest changes, and none of them sends a prompt or a model credential to a client.

GET  .../ai/endpoints
GET  .../ai/models?connection=<revision UUID>
GET  .../ai/models?connection=<revision UUID>&refresh=true
GET  .../ai/readiness
POST .../ai/setup/publish  {}
POST .../ai/setup/grant    {"connection_revision_id":"<revision UUID>"}
GET  .../bindable-connections?connector=weave-agentic-provider%401.0.0&limit=50

Each ... stands for /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}. ai_models.list and bindable_connections.list parse their query strictly: an unknown or repeated parameter, a malformed UUID, a refresh other than true or false, or a limit outside 1 to 100 answers 422 WV-VALIDATION before any record is read. The other four operations take no query parameters. Request bodies are limited to 64 KiB (413 WV-AI-LIMIT).

Who Can do
catalog.read (viewer, developer) Read endpoints, cached model metadata and readiness
connection.manage (tenant administrator) Refresh discovery, test AI connections, authorize workers with ai_setup.grant
definition.publish at project scope (developer) Publish the built-in AI Connector and Action with ai_setup.publish
connection.bind (deployer) List connection choices with bindable_connections.list

Endpoints and models

ai_endpoints.list returns the operator-approved endpoint presets, without network rules or credential locations. ai_models.list requires a connection revision ID and returns approved cached metadata with catalog.read; it does not require connection binding or management permission. Both operations recheck current permissions in the selected environment and return Cache-Control: no-store.

Set refresh=true to discover models through the AI gateway. This also requires connection.manage. Refreshes and AI connection tests share six admissions per minute per person. A test and its automatic refresh use one admission. A saved AI connection refreshes after the save commits, using its own admission, and the save answers after that refresh, within about 20 seconds; a refresh failure preserves the successful save or test result. A refresh spends an admission only when it calls the AI gateway: without a policy, for an endpoint or provider outside it, or without a gateway, it answers without resolving the credential or spending one.

The cache retains metadata only, for up to five minutes, with at most 128 records, 8 MiB in total and 256 KiB per record. Entries are isolated by environment, revision and policy content. A restart, another API process or an expired entry can return discovery: "unknown"; a passive read never calls a provider. An absent policy returns unknown approval and no models. A failed refresh replaces prior health with its safe discovery code and an empty model list. Discovery traffic always runs through the configured AI gateway.

Discovery reports what the endpoint serves; it never pulls a model, never grants network access and never changes the approval. For an Ollama endpoint, the gateway reads Ollama's own model list and each model's details, so tools is yes only when Ollama reports tool support for that model, never a guess from its name. Ollama discovery reads at most 50 models, in name order, within 10 seconds; a model whose details do not arrive in time is listed with unknown facts. Other providers' model lists are read up to 50 names.

Approval and availability are separate. When the policy lists an endpoint's approved models, each listed model the endpoint does not report appears with available: false: for Ollama the API adds these rows, and for other providers the AI gateway does. Because provider lists stop at 50 names and Azure endpoints list no deployments, outside Ollama available: false means that the endpoint did not report the model, not that it is not installed. Either way the worker answers LLM_MODEL_NOT_FOUND if a step uses a model the endpoint does not serve.

Without a mounted policy (WEAVE_AI_POLICY_FILE on the API), approval is unknown and the list is empty. A client then lets people type the model name, with a warning that the platform does not publish its approved models and that the worker refuses models it has not approved. A configured policy that cannot be read answers 503 WV-AI-POLICY; a policy that changes during a refresh answers 409 WV-AI-POLICY-CHANGED, and a new refresh reads the current one.

Model credentials never travel over plain HTTP. A keyless connection uses the reserved secret handle no-credential, which is never resolved, leased, logged or sent; discovery and tests of such a connection send no credential.

Readiness

ai_readiness.read returns eight ordered checks for installed worker releases, published AI definitions, worker presence, current connections, secret grants, worker credential authorization, recent AI tests and Weave AI configuration. It reads one consistent snapshot and never calls the gateway, resolves a secret value or changes platform state. The key check confirms an operator grant; it does not confirm that the secret provider currently holds a value.

The checklist requires catalog.read and rechecks current permissions. Restricted items are unknown with a required role, without identifiers, configuration or hidden counts. Connections use the latest revision per name across all connector types. A successful dedicated AI test must be less than 24 hours old; generic tests and missing, malformed or future timestamps cannot establish health.

Each collection is limited to 1,000 matching records, with an 8 MiB cumulative read budget. A complete observation that exceeds either bound is unknown, never a healthy partial result. Responses, including errors, disable storage with Cache-Control: no-store. Fixes contain server-owned guidance or currently available operations; execution still requires the operation's own authority.

The age of the last AI test is measured with the database clock, which also dates each test, so a test that just passed reads as done on every API process.

Setup actions

ai_setup.publish accepts an empty body or {} and publishes the server's built-in AI Connector and Action in one project transaction. It requires definition.publish at project scope on both the request and current principal; an environment-only grant is insufficient. Digest-derived keys make retries return the same version IDs. A conflicting immutable version answers 409 WV-VERSION-CONFLICT and a retired built-in answers 409 WV-AI-CATALOG-RETIRED; setup never overwrites or reactivates them. Publication rejects more than 1,000 project-wide worker releases or 8 MiB of release payloads with 429 WV-PAGE-LIMIT before compilation. The built-in Action compiles against the exact built-in generate task, so publication also requires an admitted worker release in the project that provides it; without one it returns 422 WV-AI-WORKER-MISSING before publishing anything.

ai_setup.grant accepts only {connection_revision_id} and requires connection.manage in the selected environment. It revalidates the stored AI revision, then authorizes every exact built-in credential capability actually present in each admitted release in that environment. Active pairs are skipped; revoked pairs are reenabled. An approved keyless connection returns {granted: false, not_needed: true} without reading worker grants. Credentialed connections with no relevant admitted release return 422 WV-AI-WORKER-MISSING. Release and existing-grant reads share an 8 MiB budget and each allow at most 1,000 records; exceeding a bound returns 429 WV-PAGE-LIMIT before any grant is written.

Both setup operations return 200 on success, audit accepted requests, roll back on failure or cancellation, and return Cache-Control: no-store, including on errors. Neither operation resolves credential values or calls a provider. The readiness checklist offers Publish or Authorize only when both permission snapshots allow the operation and the operation can repair the observed missing state: Publish appears only once worker_installed is done, and Authorize only once key_available is done.

Connection choices

bindable_connections.list is the one list every connection dropdown uses. It returns only the revisions the caller may bind now: connection.bind is checked for each revision, on both the token and the current grants, so a grant limited to some revisions lists exactly those. Each item carries connection_id, revision_id, name, label, connector and enabled; AI connections add provider and the endpoint's origin (endpoint_origin), never its path, configuration, destinations or secret handles. connection_id is the same UUID as revision_id: a connection is identified by its immutable revision. enabled is false when the revision fails the checks a binding runs now, for example because its Connector version was retired or its secret handle is no longer granted in the environment.

Filter with connector (an exact name@version). limit defaults to 50 and accepts 1 to 100. next_cursor continues the same list: it is bound to the environment, the caller and the filter, and a cursor from another list answers 422. Reading this list needs connection.bind; a caller without it gets 403.

Weave AI explanations of Operations records

lumi.ask accepts up to four attachments, each {"kind", "id"}. The Operations kinds are deployment-target, deployment, deployment-observation, deployment-plan, deployment-job, worker, incident, environment and change-request. A request with any of them is an explanation: it carries no draft and no run, draft or simulation attachment (422 otherwise), and the reply's proposals is always empty.

Each attachment needs lumi.use, checked on the token's principal, and the read its owning service decides, checked as the caller's stored principal, which is loaded again for each question:

Kind id Read it needs What Weave AI receives
worker The worker's ID status.read; placement only for targets with deployment.read Presence, last contact age, draining, capacity, active leases, up to 20 task types, runtime, platform hint, SDK version, placement target and component, registration age
incident The incident's ID incident.read; run.read for the step kind and event types Code, origin code, status, step ID, step kind, instance key, generation, age, workflow name and version, run status, the last 20 event types, resolution kind, whether external effects may continue, and the code's meaning and fitting decisions
environment The path's environment ID status.read, and each summary section's own capability API version and uptime, compatibility, up to 16 health components, load, workers, targets, incidents, runs in the last 24 hours, and up to 20 attention items
change-request The change request's ID deployment.read on its target, its plan and its apply job Intent, state, up to 20 components with desired values and image digests, drain mode and timeout, drain set size, four-eyes, plan time left, plan risks, up to 20 history states with ages, receipt code, failure code and warnings

Without run.read, an incident's step kind and event types are sent as withheld; an incident on a classified or policy-blocked run is sent as {"status": "unavailable"}. A summary section the caller can't read is sent as {"state": "forbidden"}, and one that timed out as {"state": "unavailable"}. Lists beyond their limit are counted (more_task_types, more_attention and so on), and an explanation over its room is shortened by kind with a trimmed note.

Weave AI never receives:

  • Logs of any kind: execution and container logs, event data and evidence, task error text.
  • What runs carry: run inputs and outputs, resolution reasons, outputs and evidence references, transaction business keys and participants.
  • Where things run: host names, nodes, namespaces, labels, operating systems and architectures, drain member hosts, target identities and registry addresses.
  • People: requesters, planners, approvers and the actors of a history entry or a resolution.
  • Record IDs, the selected record's included: each attachment goes out as its kind, its position in the request ("ref": 1 to 4) and its data. Build digests, incident keys and plan digests stay out too.
  • Typed text: change request titles and reasons, failure messages and comments.

For the worker, incident, environment and change-request kinds, every string sent is a fixed value, a code, a name, a step ID or instance key, an attention title that matches the summary's own wording, or a server sentence; anything else is sent as null, and times are sent as ages in whole seconds. The deployment kinds send their records' saved times as they are.

The API reads each attachment as the caller before the model call and again after it. A refusal on the second read discards the reply with that read's own error. When the second read reaches less than the first, for example a worker's placement, an incident's run facts, a summary section or target, or an attention title that named a workflow, the reply is discarded with 403. Errors:

Status Code When
403 the owning read's code The caller lacks the record's read, before or after the model call, or access narrowed during it
404 WV-NOT-FOUND The record doesn't exist in this environment, or an environment attachment names another environment
503 WV-UNAVAILABLE An environment attachment arrives before the platform summary has started
413 WV-LUMI-LIMIT The selected context exceeds 256 KiB

Activations with AI steps

When the API has a policy mounted, a new activation of a workflow with AI task (llm) steps checks each of those steps against the connection bound to its slot, after every binding passed its own authorization and before anything is written:

Problem code Status Meaning
WV-ACTIVATION-AI-PROVIDER 422 The step's provider differs from the connection's provider
WV-ACTIVATION-AI-MODEL 422 The policy does not approve the step's model for the connection's exact endpoint
WV-AI-POLICY 503 The configured policy cannot be read; only activations with AI steps are refused

The check reads the policy file again for each activation, so a policy edit applies without a restart. Approval is the policy's answer: a served endpoint admits any well-formed model name, whether or not it is installed yet. Without a policy, activation behaves as before and the worker remains the only judge. Replaying a committed activation key returns that activation without a new check (it still needs current release.activate). Runs of earlier activations are unchanged: the worker keeps refusing a model that is no longer approved with LLM_POLICY, and a missing model with LLM_MODEL_NOT_FOUND.

Step tests and the test policy

A step test runs one step of a saved draft for real, as a test run of the normal runtime. Each environment's test policy decides whether that is allowed: GET {environment}/test-policy reads {"test_calls": "disabled", "revision": 0} until an administrator with environment.manage saves one with PUT. The first save sends no If-Match; later saves send the revision they read, and a stale one answers HTTP 409 WV-REVISION. Every change is audited with the old and new values. weave platform up turns test calls on in the local demo environment only.

POST {environment}/step-tests needs an Idempotency-Key, the step.test capability (the step_tester role, which grants nothing else), catalog.read on the project, and connection.bind on every connection revision it names. It answers HTTP 202 with the step test's ID, its run, its side effect and when it expires. The server checks, in this order, and refuses before writing anything:

Answer When
403 WV-FORBIDDEN step.test or catalog.read is missing
403 WV-STEPTEST-DISABLED The environment's test calls are off; nothing about the draft is read
404 WV-NOT-FOUND The draft, its revision or the step isn't there
422 WV-STEPTEST-KIND The saved step doesn't match the request, or its kind can't run for real
404 WV-NOT-FOUND The step's action isn't in the catalog
403 WV-FORBIDDEN connection.bind is missing on a connection revision the request names
422 WV-STEPTEST-CONNECTION A slot the step needs has no connection; result.slots says which
409 WV-STEPTEST-CONFIRM The step changes data and acknowledged_side_effect isn't exactly its effect; result names the effect, the action and the environment
422 WV-SCHEMA-SECRET_VALUE The input holds a secret value; result.paths says where
422 WV-STEPTEST-INPUT The input breaks the action's input schema; result.diagnostics holds paths and codes, never values
422 WV-STEPTEST-CONNECTION A chosen connection can't be used here; result.slots says which and why
422 WV-STEPTEST-KIND The step can't run on its own as saved
422 WV-STEPTEST-RELEASE Several releases, or none, can run a dependency; result.choices lists them to send back in releases
429 WV-STEPTEST-BUSY The person already runs 4 step tests here or started 30 in the last minute; Retry-After says when to try again

Only the person who started a step test can read (GET {environment}/step-tests/{id}) or cancel it through these routes; anyone else gets 404. Its run is a test run like any other: run.read lists it when you send include_test=true, and run.cancel can cancel it. The view carries the run's status, the step's attempts and timing, its error as {code, message}, and its output as the run views classify it: an output left out reads output: null with omitted naming why, such as classified_secret. Canceling a step test that already ended answers it as it ended. POST {environment}/step-tests/{id}/answers is published for AI agent steps and answers HTTP 501 WV-UNAVAILABLE until their runtime is served.

Draft test activations

A draft test activation runs a whole saved draft for real, for Execute workflow in an environment. POST {environment}/test-activations with {draft_id, draft_revision, bindings, acknowledged_side_effect, lifetime_seconds} needs what a step test needs, for the whole draft: step.test, catalog.read on the project, test calls on, and connection.bind on every connection revision in bindings. bindings holds the connections, releases, assignment bindings and called workflows' activations an activation would. It answers HTTP 201 with the activation's ID, its artifact digest, its side effect and when it expires. The server refuses before writing anything:

Answer When
403 WV-STEPTEST-DISABLED The environment's test calls are off
404 WV-NOT-FOUND The draft or its revision isn't there
409 WV-REVISION The draft was saved again after this revision
422 WV-TESTACTIVATION-COMPILE The draft doesn't compile; result.diagnostics holds each problem's code, path and message
409 WV-STEPTEST-CONFIRM The draft changes data and acknowledged_side_effect isn't exactly its strongest effect, counting agent tools and the whole tree of every pinned called workflow; result names the effect and the steps that cause it
422 WV-TESTACTIVATION-LIFETIME A step may take longer than an hour
429 WV-STEPTEST-BUSY The person started 30 test runs, step tests or test activations here in the last minute

It lives lifetime_seconds (900 by default, at most 3,600), never less than its longest step timeout, and its runs never run longer than an hour. It is a test activation: no list, lookup or call finds it.

Only its creator can use it; anyone else gets 404:

  • POST {environment}/test-activations/{id}/runs with {input} starts a test run (HTTP 201, a run view) without run.start, and an Idempotency-Key sent again answers the same run. Step tests and draft test runs share the limits: 4 running and 30 started a minute per person and environment (HTTP 429 WV-STEPTEST-BUSY).
  • POST {environment}/test-activations/{id}/listen with {secret_ref} also needs trigger.manage and answers {test_url, expires_at}: a signed webhook URL, with no secret in it, whose events start test runs of the draft. Sign requests as for any webhook (see Signed ingress); listening again answers the same URL. The trigger operations never list, stop or move it.
  • DELETE {environment}/test-activations/{id} retires it at once (HTTP 204) and stops its test URL; runs already started go on.

Runs and signed events after it expires, or after it is retired, answer HTTP 410 WV-TESTACTIVATION-EXPIRED. A background sweep retires expired ones, stops their test URLs, and deletes them once no run retention keeps names them. Running a draft that calls other workflows also needs run.start, since each call starts a run of the called workflow's activation, flagged as a test run. Audits record test_activation.create, .run, .listen and .retire with identities and effects, never inputs or payloads.

Health probes

GET /health/live answers {"status":"up"} while the process runs, and GET /health/ready answers {"status":"ready"} when it can serve requests. When the API is not ready, /health/ready answers HTTP 503 with the same safe problem envelope as other errors, so check the HTTP status or the status field. Failure details, database URLs, and credentials are never included, and the request ID is generated by the server. Only these exact paths are public.

Authoring and lifecycle

HTTP lifecycle requests, response identities, and authorization checks

Read down: solid arrows are your requests and dashed arrows return the IDs that the next request needs. The API checks your grant at every step; revisions protect edits, and idempotency keys make retries safe. Open diagram at full size.

Compile and validate. compiler/compile and compiler/validate accept source, format, an optional filename, an optional canonical catalog, and strict.

  • With an explicit catalog lock, the diagnostics, source locations, source map, and artifact digest are the same as in local compilation.
  • Without catalog, compile uses the project's current authorized catalog.
  • Without catalog, validate performs partial validation: partial, validationOk, ok, artifact, and the diagnostics keep their separate meanings. strict=true then has no effect, exactly like weave workflow validate --strict without a catalog: it neither promotes warnings, rejects the request, nor substitutes an empty catalog.
  • Partial validation does not prove a workflow can be deployed. Publication always repeats the server's authority and catalog checks.

Drafts. Saving a draft appends a new document revision. DELETE drafts/{identifier} retires a draft; it needs definition.write, the current grants, and the latest revision.

  • The answer carries a new lifecycle revision and the retained document revision.
  • A missing draft answers HTTP 404, a stale revision HTTP 412, and repeating a retirement that already happened is a conflict rather than new work.
  • Reads and exports keep every revision with its retirement metadata. Lists leave retired drafts out by default, and a later save cannot bring the ID back.

Studio documents. A draft also keeps two documents beside its workflow: drafts/{identifier}/studio/canvas (notes, trigger choices and the recipes of actions the workflow owns) and drafts/{identifier}/studio/test-data (test input and pinned output). GET reads the latest revision, PUT saves a new one, and DELETE removes the document.

  • canvas needs catalog.read to read and definition.write to change. test-data also needs simulate, and a document holding data recorded from runs needs run.read in every environment it came from.
  • The server derives contains_run_data and source_environment_ids from the document; both stay set for later revisions, and a client can't send them.
  • A save names the draft revision it belongs to (draft_revision). An update or a delete needs the current revision in If-Match; a stale one answers HTTP 412 (WV-ETAG). The server keeps the latest two revisions.
  • A canvas holds at most 256 KiB and test data at most 1 MiB; a larger one answers HTTP 413 (WV-STUDIO-DOCUMENT-SIZE).
  • Test data never holds secrets: a value its schema marks secret answers HTTP 422 WV-STUDIO-DOCUMENT-SECRET, and one the platform can't classify answers WV-STUDIO-DOCUMENT-UNCLASSIFIED. Both list document pointers in result.paths, never values.
  • Retiring a draft deletes its documents.

Published versions and connections never change. A change publishes a new version; retiring a version keeps its history. Updating a connection creates a new connection revision with a new ID.

Triggers. Each trigger ID is one immutable configuration revision with its own signed webhook URL and receipts. Replacing a trigger creates a new ID and disables the previous route. The switch is not atomic: there can be an overlap or a gap, and one event sent to both revisions can start two runs. Coordinate the switch with the sender, or deduplicate upstream.

Installed connectors. Since 0.1.0a7, GET …/projects/{project}/connector-descriptors lists the connectors installed on the platform, and …/connector-descriptors/{adapter} reads one. Each descriptor holds the exact Connector manifest to publish (source), its capabilities, bindings, Actions, and connection settings, plus published_version_id once it is published in the project. Both need catalog.read. weave connector descriptor ADAPTER prints the same view.

Discovery, debugging, and history

Lists. Canonical lists return { "items": [...], "next_cursor": null | "opaque" }.

  • limit is 1 to 100 (50 by default). Items come in stable ID order unless a list documents another order: runs.list and run summaries are newest started first, and incident lists newest opened first, by default (see below).
  • Pass next_cursor back as cursor for the next page. A cursor is bound to its tenant, project, environment, collection, and any run or schedule filter; a cursor from another scope or filter is rejected.
  • A cursor describes a position, not a snapshot: items created or retired meanwhile can change later pages.
  • Compatibility endpoints that return plain arrays keep that shape.

Who may list what. Listing a whole collection needs the scope-wide capability: connections connection.manage, runs and schedules run.read, workers status.read, releases and the catalog catalog.read, triggers trigger.manage, incidents incident.read. Grants are reloaded in the same transaction. A resource whose classification cannot be checked appears as an explicit safe placeholder; a list never widens access.

Debug sessions belong to a project and to the person who created them. They expire in real time, use revisions, run Actions only against mocks, and support breakpoints and virtual time. The resolve and cancel commands of a session with transactions change only the session. They never change a run or an incident of the project (see Simulate transactions). The response is a DebugSession envelope that contains a view. Source-map file names are labels only. No connector or secret provider runs during a simulation.

History and replay. Run history pages use a bounded high-water cursor and keep the pinned source, receipt, and version facts, with explicit omissions. Replay reports consistent, inconsistent, or incomplete: a history prefix, or a history with unavailable or redacted parts, is never reported as success. See history and replay.

Run summaries, steps, and logs. run_summaries.list, runs.steps, runs.logs, and execution_logs.list serve scoped operational data after checking both token and current permissions.

  • runs.logs merges the engine's entries, worded from the run's events (the step and an error code only), with the entries its workers and connectors wrote, oldest first. level keeps that level and above, source one source, and node_id one static step. A run whose details are withheld answers as runs.read does.
  • execution_logs.list reads entries across runs, newest first: what workers and connectors wrote, and engine entries for runs that failed, timed out or were canceled and steps that failed or timed out (warning when the failure was handled). Without from it reads the hour before to (default: now). A range longer than 7 days, or than 6 hours with contains, answers 422 with WV-FILTER. contains finds text whatever its case and takes % and _ as plain characters; it searches only what workers and connectors wrote. Test runs are left out unless you send include_test=true. An entry of a run whose details are withheld is a row without text, and a search leaves those rows out.
  • A log read that takes longer than 2 seconds answers 503 with WV-UNAVAILABLE: narrow the range or the filters.
  • Log pages follow each entry's time, and a page never repeats an entry. Workers send entries in batches, up to a few seconds after they write them, so an entry that arrives after a page and is dated before its last entry shows in a new read from the first page, not on the next page.

  • Run summaries and runs.list default to order=started_desc. They also accept started_asc and updated_desc; runs.list additionally accepts order=id. Use explicit order=id with legacy v1 cursors. The original business-key, correlation-key, single-status and archive filters retain their v1 collection; additional filters bind the cursor to the normalized query.

  • Chronological lists use v2 cursors with UUID tie breakers and unknown times last. updated_desc is a live view: updates can move a run between pages, so refresh from the first page to see its latest position. Steps sort by scheduled time, static step ID and full instance key; unknown times sort last.
  • runs.steps and runs.logs accept a limit of 1 to 500 (200 by default); execution_logs.list too (100 by default).
  • Each cursor is bound to every filter and to the order. After you change a filter, start again from the first page.
  • Test runs are left out unless you send include_test=true, and archived runs unless you send include_archived=true. This applies to runs.list too.
  • runs.list and run summaries reject unknown query parameters, and a limit outside 1 to 100 answers 422 with WV-VALIDATION.
  • A runs.list page is limited to 8 MiB of retained run data. A larger page answers 429 with WV-PAGE-LIMIT; request a smaller limit.
  • A contradictory filter, such as version without workflow, answers 422 with WV-FILTER; the message names the rule that failed.
  • Send times as RFC 3339 with an offset. Use Z, or encode + as %2B in the query string.
  • A run summary's handled_errors counts the failed steps whose error a step setting handled so the run went on, and has_handled_errors filters on it; a step fact's handled says how (continue or errorOutput). Workflows cannot handle step errors yet, so this server leaves handled_errors out (zero) and never sets handled; the fields are reserved so clients need no change when they can.

Step timelines do not read payloads unless include=output is requested. Only the displayed outputs are fetched, after checking the bounded run artifact and classifying each output. The outputs on one page are limited to 8 MiB in total; a larger page answers 429 WV-PAGE-LIMIT, so request a smaller limit. An omitted output carries an omission reason; a returned JSON null is distinct from an omitted output. The output of an instance key with an activation segment (#) or a yield count (~) is omitted as classification_unavailable, because its step's schema does not describe it. Synthetic control instances do not appear. complete=false means the run has author step instances without facts, even when they fall outside the current page or filter. Their unknown timestamps remain null. Legacy metadata is streamed in batches of 500, up to 100,000 keys and two seconds per request; exceeding either budget answers 429 WV-RUNTIME-LIMIT. A run this platform cannot run yet answers 422 WV-IR-UNSUPPORTED, as runs.read does; a run with unavailable legacy evidence answers 409 WV-LEGACY-UNAVAILABLE. Timelines, summaries and incident lists follow the run's stored listing decision. After an upgrade lets the platform run such a run again, runs.read serves it at once, but its timeline keeps answering 422 WV-IR-UNSUPPORTED until the scheduler re-checks the decision in the background. Each minute the scheduler visits up to 16 tenants and re-checks at most 100 runs in one environment of each, so a large backlog takes a long time; see Upgrades. In runs.list, only a recorded policy block withholds a run before its own read classifies it.

Agent log. runs.agent_log (GET …/runs/{identifier}/agents/{key}/log) shows what an AI agent did, turn by turn. It checks run.read on both the token and the current principal, like runs.steps. key is the agent step's ID or one activation's instance key:

  • A step ID, such as support, pages through the step's activations in iteration order, outer loop first. Outside a loop, the page has the one activation. A step that hasn't run yet answers 200 with an empty page.
  • An activation key, such as support[2], reads that activation. Encode its brackets in the path: support%5B2%5D.
  • limit is 1 to 20 activations (20 by default). cursor continues a page and is bound to the run and the key. The last page has no next_cursor.
  • A key that names a turn, a tool call, a review or a loop yield (support#1, each~1) answers 422 with WV-VALIDATION before anything is read. A step that isn't an AI agent, or an activation that hasn't run, answers 404 with WV-NOT-FOUND.
  • The values on one page (tool arguments, tool outputs and final answers) are limited to 8 MiB in total. Each turn's arguments and final answer come before tool outputs, and the smallest come first. A value that doesn't fit in the room the shown values leave is left out with the omission resource_limit, and its turn still lists its calls and tokens; a smaller value after it can still be shown. A smaller limit leaves room for more values.

Each activation lists its turns with their tokens and times, and each turn lists the tool calls the model asked for. Arguments, outputs and the final answer follow the run views' rules: each is classified by the tool's or the step's schema, and a value that can't be shown is left out with its omission reason. The log is assembled from the run's step facts, step outputs and turn inputs on each read; nothing extra is stored. See AI agent steps for the fields.

Agent conversations. An AI agent with conversation memory keeps each conversation per environment and workflow under a key hash: the SHA-256, in lowercase hex, of the workflow's name, a zero byte and the key's value. The key itself is never stored or sent; the SDK and the CLI hash a key on your machine. See AI agent steps.

  • agent_conversations.list (GET …/agent-conversations) needs run.read. It pages the environment's conversations, the most recently updated first, and leaves out expired ones. workflow keeps one workflow's; limit is 1 to 100 (50 by default) and cursor continues a page.
  • agent_conversations.read (GET …/agent-conversations/{workflow}/{key_hash}) needs run.read and answers the remembered messages, oldest first, with the conversation's version and expiry. A conversation that was never stored or has expired answers 404 with WV-AGENT-CONVERSATION-NOT-FOUND.
  • agent_conversations.delete (DELETE …/agent-conversations/{workflow}/{key_hash}) needs run.purge. It answers 200 whether or not a conversation was stored (deleted says which), so an erasure script can repeat it. loaded_by lists up to 100 runs that loaded the conversation, and more_loaded_by says when there are more: those runs keep the messages they loaded until they are purged.
  • agent_conversations.purge_workflow (POST …/agent-conversations/{workflow}/purge) needs run.purge and an Idempotency-Key. Its body, {"confirm_workflow": "<workflow>"}, must name the workflow in the path, or it answers 422 with WV-AGENT-CONVERSATION-CONFIRM. Each call deletes up to 1,000 conversations; more: true says to call again with a new key.

A key_hash that isn't 64 lowercase hex characters, or a workflow that isn't a resource name, answers 422 with WV-AGENT-CONVERSATION-KEY before anything is read. Every read, delete and purge is audited as agent_conversation.read or agent_conversation.delete (target <workflow>/<key_hash>) or agent_conversation.purge_workflow (target <workflow>), with no key and no messages.

Incidents. incidents.list and the paged incidents.run_list read incident facts after checking both token and current permissions; they never load run payloads. incidents.read (GET …/incidents/{identifier}) reads one incident for a direct link and sends its revision as the ETag, ready for incidents.resolve.

  • Filters: status (repeatable: active, closed, resolved; every status when omitted), code, workflow, node_id, opened_after, opened_before, and include_test. node_id is a static step ID and matches every instance of that step. Opening times follow the run summary rules: RFC 3339 with an offset, opened_after earlier than opened_before, and a range of at most 400 days.
  • Incident lists default to order=opened_desc and also accept opened_asc and order=id. Incidents whose opening time is unknown come last. ID order without filters keeps the earlier cursors, so send explicit order=id to continue one; every other cursor is bound to the run, each filter, and the order.
  • Incidents of test runs are left out unless you send include_test=true. Incidents of archived runs stay listed.
  • Incident views add opened_at, updated_at, workflow (name and version), run_status, test, and, for an incident of a repeated step instance, instance_key; node_id is then the static step ID. Each is left out while unknown, false, or empty. opened_at_estimated: true marks an opening time taken from the run's last recorded event because the incident's own opening event was not retained; an unknown opening time is never estimated.
  • An incident on a control step, a switch or parallel branch output (@branch:…) or a join (@join:…), keeps that control-step ID as node_id and has no instance_key. The node_id filter takes author step IDs, so it does not select these incidents.
  • An incident whose run metadata cannot be classified, whose run has a recorded policy block, or whose step does not match its incident facts is an unavailable placeholder. incidents.read then sends no ETag.
  • incidents.resolve answers with the incident as stored, without the added fields; for a repeated step instance, its node_id is the full instance key. Read the incident again with incidents.read after resolving to show it as the lists do.
  • A page is limited to 8 MiB of retained incident data; a larger page answers 429 with WV-PAGE-LIMIT. Unknown query parameters are rejected, and a limit outside 1 to 100 answers 422 with WV-VALIDATION.

Worker identity. workers.create accepts an optional identity describing where the worker runs: host, runtime (embedded, container, or process), sdk_version, language_version, os, arch, platform_hint (kubernetes, docker, or none), namespace, node, and up to 8 labels. It is display metadata and never grants authority or placement.

  • host, namespace, and node are host or DNS names of at most 253 characters. Versions, os, and arch have at most 64 letters, digits, ., _, +, or -.
  • Label keys have at most 64 characters and must not name a token, password, secret, or authorization; values have at most 256 characters without control characters. The whole identity is at most 4 KiB as stored JSON.
  • Unknown fields, a placement among them, are refused with 422 WV-VALIDATION; placement is derived by the server, never reported.
  • The registration answer keeps its earlier shape and does not repeat the identity. workers.read, workers.list, workers.drain, and workers.resume return identity and registered_at (the database time of registration) when they are known. Workers registered before the server recorded them have neither.

An older server refuses identity with 422 WV-VALIDATION. Current packaged workers and the Python SDK then register exactly once more without it, using the same client and credentials; any other failure is not retried. Native executors register inside the API process and always use a server of their own version. The registration answer's schema (WorkerInstance) has no identity field.

Worker fleet. workers.list reads every page with one database query, including each worker's active leases, and checks status.read on both the token and the current principal.

  • By default it lists current workers: not revoked, and seen in the last hour or, never seen, registered in the last hour. state=all lists every worker, including revoked ones and workers registered before registration times were recorded.
  • Filters: presence (recent, stale, or unknown, with the 60-second presence window), draining, release_id, task_type (a capability as workers register it, such as echo@1.2.0), target_id, and host_prefix, a literal, case-sensitive prefix of the reported host in which % and _ match only themselves. target_id needs deployment.read on that target.
  • Orders: last_seen_desc (default) and registered_desc; unknown times come last, and equal times are ordered by ID. Cursors are bound to every filter and the order. A limit outside 1 to 100 or an unknown query parameter answers 422 WV-VALIDATION, and a page is limited to 8 MiB of worker data (429 WV-PAGE-LIMIT).
  • placement names the deployment component a worker runs in: target_id, target_name, deployment_id, and component. The server matches the worker's reported host against the members of the latest complete observation of each target, taken at the target's current revision and not yet expired. Only targets that both the token and the current principal may read with deployment.read are considered, so other targets' names never appear. A host listed by more than one readable target or component, a native executor (runtime: embedded), and a worker without a reported host have no placement. Because uniqueness is decided among readable targets, a reader restricted to some targets can see a placement for a host that a reader of every target sees as ambiguous, and so without placement.
  • drained_at is the time the worker started draining. A repeated drain keeps it and resuming clears it; workers drained before the time was recorded show none. workers.read returns the same fields as the list, and workers.drain and workers.resume answers include drained_at but no placement.

workers.retire_stale (POST …/workers/retire-stale, release.retire, Idempotency-Key) revokes workers that hold no active lease and whose last contact (or registration, if never seen) is older than older_than_seconds, from one hour to 30 days. A worker without either time is never retired. Each command revokes at most 100 workers, oldest last contact first, and answers {matched, revoked, worker_ids}: matched counts every eligible worker, and revoked and worker_ids describe this batch. dry_run: true returns the same batch without revoking it. Repeating an Idempotency-Key returns the saved answer; send a new key for the next batch. Retirement never deletes or settles leases, and a worker another command is holding is left for the next batch.

releases.usage (GET …/worker-releases/{identifier}/usage, catalog.read) answers {workers, deployments, activations, next_cursor}:

  • workers counts every instance of the release once: revoked, else draining, else online (seen in the last 60 seconds) or offline.
  • activations counts the activation revisions that pin the release and can still start runs: neither they, the latest revision of their activation, nor their workflow version is retired.
  • deployments lists, at most limit (1 to 100, default 100) at a time, the desired deployment components whose admitted release and image digest are this release: target_id, target_name, deployment_id, deployment_name, component, and replicas. Only targets that both the token and the current principal may read with deployment.read are listed; without that capability the list is empty and deployments_hidden is true (it is left out otherwise), so an empty list from a reader who may see no target is not mistaken for "nothing runs this release". The worker counts need only catalog.read: they are counts per state, never worker identities. next_cursor continues the list for the same release and readable targets.
  • A release of another environment answers 404 WV-NOT-FOUND.

Environment summary. operations_summary.read (GET …/environments/{environment}/operations/summary, weave operations summary) answers one environment's platform health in a single read. It needs status.read on both the token and the current principal, and reads every section in the same transaction that reloads those grants.

  • observed_at is the database time of the answer. api names the server version, its image build digest when the server knows it, the instance ID of the process that answered (new each time it starts), its uptime_seconds, and compatibility (mode and the number of this project's findings).
  • health lists database (with latency_ms of a bounded probe), each background loop (recovery_loop, schedules, outbox_loop, provider_loop, kafka_loop, operations_loop, alert_evaluator), native_executors, and telemetry, each with a state of ok, degraded, down, or disabled. Loops add last_started_at and last_ok_at when known, consecutive_failures, and recent_failures (failed cycles among the last 20). telemetry is disabled while export is off, degraded when the process dropped telemetry within the last three metrics export intervals (90 seconds by default), and ok otherwise. Health is measured by the process that answered; no exception text is returned.
  • load: runs_active (active by status, as the run usage counter counts them, with test runs left out), tasks_ready and oldest_ready_seconds (tasks due now; a retry joins when its next attempt is due), tasks_leased, waits_active, waits_overdue and oldest_overdue_seconds, outbox_pending and outbox_oldest_seconds, provider_pending, and sources_enabled. Task and worker figures count test runs' work too, because they measure shared capacity. An age is null when nothing waits.
  • workers counts current workers as workers.list lists them by default: online (seen in the last 60 seconds), offline, draining, the capacity of online workers that are not draining, and the active_leases workers hold.
  • targets needs deployment.read and counts only the targets both the token and the current principal may read: total, runner_online, busy (an active job), reconciliation_required, and awaiting_approval (plans that can still be approved: unexpired, on a fresh observation of the current target and deployment revisions, and neither approved nor applied).
  • incidents needs incident.read: active and opened_24h, leaving out incidents of test runs. opened_24h counts only known opening times: an incident whose opening time the upgrade estimated is never counted.
  • attention lists at most 20 items, {kind, id, title} plus expires_at for approvals, in this order: jobs that need reconciliation, plans you may approve (soonest expiry first), offline workers that still hold active leases, active incidents, targets whose runners are all offline, a restricted compatibility verdict (id is compatibility), and runs that failed in the last hour. Within a kind, items come oldest first, then by ID. Each kind needs the capability that reads its records: deployment.read on the target for jobs and runners, deployment.read and deployment.approve on the same target for approvals, incident.read for incidents, and run.read for failed runs. Items you may not read are left out; test runs never appear.
  • A section you may not read is {"state": "forbidden"}; none of its queries run, and leaving it out records no authorization denial. Each section has two seconds of database time in all (or a stricter statement timeout already in force), shared by its queries: each runs under what is left. One that runs out, or meets a transient database failure, is {"state": "unavailable"} while the others are still served with 200. Neither state is ever reported as zero.
  • runs_24h, on servers with run statistics, counts the runs of the last 24 hours: started, succeeded, failed (timed-out runs included) and failure_rate (a fraction from 0 to 1, or null when no run ended), test runs left out. Servers without run statistics leave it out.

Loop states follow these rules. A loop is disabled when its setting turns it off (API-only replicas disable every scheduler loop) and down while its task is not running. It is degraded before its first successful cycle, after 3 failed cycles in a row or 3 failed cycles among its last 20, and when its last success is older than three poll intervals. The window is those 20 cycles only: a failure that comes back fewer than 3 times in any 20 cycles, for example once every 10 cycles, leaves the loop ok, with only recent_failures showing it. A cycle still running within its loop's budget is on time: 5 seconds for the outbox and broker traversals, 30 seconds for recovery and schedules, and 60 seconds for provider and mailbox polling. A cycle that starts no work, such as an outbox cycle while the platform is not ready or while no delivery slot is free, is neither a success nor a failure, so a loop that keeps waiting turns degraded without counting failures. Ages use the process's monotonic clock; the times shown come from its wall clock.

Run statistics. run_statistics.series, run_statistics.workflows and run_statistics.steps (GET …/environments/{environment}/run-statistics/series, /workflows and /steps; weave operations statistics series|workflows|steps) answer run metrics from the platform's own tables, not from telemetry export. Each needs status.read on both the token and the current principal.

  • Every read takes from and to (RFC 3339; from before to, at most 400 days apart) and an optional granularity (5m, 1h or 1d). Without it the server picks 5 minutes up to 6 hours, 1 hour up to 7 days and 1 day beyond; points start on whole UTC buckets.
  • series takes one or more signals (repeat the parameter): runs_started, runs_succeeded, runs_failed, runs_cancelled, failure_rate, duration_p50, duration_p95, tasks_ready, oldest_ready_seconds, outbox_pending, worker_utilization, runs_active, waits_active and provider_pending; workflow and version (run signals only); group_by (none, workflow, status or task_type) and top (1–20, default 4, with the rest under (other)). It answers {from, to, granularity, complete_until, series: [{signal, labels, unit, points}]}, each point [time, value] with null where nothing is known. Units are count, ratio (0–1), ms and seconds.
  • workflows answers up to 200 workflows by ended runs with their versions, outcome counts, failure_rate, p50 and p95 duration and last run, plus totals for the whole range. steps takes workflow (and version) and answers up to 500 steps with their kind, executions, failures (timed out included), and p50 and p95 duration and queue wait.
  • A series holds at most 500 points (422 WV-STATS-RANGE) and an answer at most 21 series (422 WV-STATS-SERIES); contradictory filters answer 422 WV-FILTER. complete_until is the time up to which buckets no longer change, or null before the first rollup.
  • Test runs never count. Runs whose details the platform withholds count under the workflow (other). runs_failed and failed count timed-out runs.

Telemetry settings. operations_telemetry.read (GET …/projects/{project}/operations/telemetry, weave operations telemetry) needs status.read for the project, on both the token and the current principal; an environment grant is not enough. It answers whether telemetry export is enabled, whether traces and metrics have a collector configured and its host name, the metrics interval_seconds, and how many telemetry items this process has dropped. It never returns endpoint paths, ports, queries, credentials, or headers.

Answers that say "unavailable". Cancellation and task completion can return an unavailable acknowledgment when the platform cannot classify the historical data or compare payloads; task completion then includes payload_match: unavailable.

Large runs. Cancelling a supported historical run whose state is larger than the current processing budget can return CapacityRunAcknowledgment instead of a full RunView. It holds id, the terminal status, accepted_sequence, capacity_limited: true, an explicit omission of /state with reason resource_limit, and external_effects_may_continue. The cancellation and its complete history are committed; only the large state is left out of the answer. Handle both shapes. Cancellation stops further orchestration, but it cannot undo an external call that is already in progress.

A large run with a workflow transaction that is not settled yet is never ended this way, because its transaction could not be undone. Its cancellation is refused (HTTP 409, WV-TXN-IN-DOUBT). Its run timeout, or a transaction's own deadline (such as a reservation about to expire), fires once and holds the run: the run is suspended behind the incident WV-TXN-RUN-OVERSIZED at key @transactions:0, with origin WV-RUNTIME-CAPACITY. Forward work waits behind it, later changes to the run keep it, and a plain cancel stays refused. The transaction stays as it is until a reconciler ends it: a cancel with "skip_undo": true, or Force end (terminate) on that incident. Both need transaction.reconcile and end every open transaction force_ended.

Transactions. POST …/runs/{identifier}/cancel takes an optional "skip_undo": true (needs transaction.reconcile): the run's open transactions end force_ended instead of being undone. Without it, a run with an open transaction answers HTTP 202 with pending_undo: true and ends once its transactions settle; undoing them spends the run's control reserve, so it finishes at a full byte quota. Only settlement spends it: a confirm whose result also starts the steps after its block, say, waits for quota like any forward work, and a resolution that ends the run is a stop. GET …/runs/{identifier}/transactions (run.read) pages a run's transactions oldest first as RunTransactionView (instance_key, node_id, iteration, state, business_key, cause, opened_at, decided_at, ended_at, participants, incident_id, resolution), never business values. Run summaries carry transaction_state (the worst state of the run's transactions) and run-summaries filters on up to ten transaction_state values. Incident views of WV-TXN-* codes carry priority: "high" and transaction. POST …/activations/{identifier}/retire refuses an activation a running transaction may still need to undo a step (HTTP 409 WV-TXN-UNDO-PINNED) unless it has ?force=true, a reason in its body, and the caller holds transaction.reconcile. A transaction's resolution shows the resolver's reason, evidence reference and ID to anyone with run.read, as run history does; write justifications with that audience in mind.

Move a trigger to another version

A retarget moves a trigger to another activation of the same workflow in the same environment, so it keeps working when you activate a new version: a webhook keeps its URL, a Kafka trigger its topic and offsets, an app event source its provider setup, an email source its mailbox position, and a platform-event trigger its starts. Send the trigger's revision, which its read answers as the ETag, in If-Match, and the new activation in the body:

POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-triggers/{identifier}/retarget
If-Match: "3"
Content-Type: application/json

{"activation_id": "<the new activation's ID>"}

The answer is the trigger at its next revision. The rules are the same for every kind:

  • The trigger runs as you afterwards. You need every capability creating that kind of trigger needs, listed in the inventory below, and the new activation must pass the readiness checks creating one runs. A platform-event trigger whose runs may resolve their transaction also needs transaction.reconcile.
  • The new version must take what the trigger delivers. A webhook or Kafka trigger needs an input schema equal to its payload schema or to the current version's input; an app event source needs an input that accepts what its mapping makes of every event it dispatches; an email source needs an input that accepts every received message; a platform-event trigger needs a version that declares its events and sources. Otherwise HTTP 409 WV-TRIGGER-SCHEMA-CHANGED.
  • Only a version of the same workflow. Another workflow answers HTTP 409 WV-TRIGGER-WORKFLOW; a test activation, or one in another environment, isn't found.
  • A disabled trigger stays disabled (HTTP 409 WV-TRIGGER-DISABLED), and so does an email source that waits for a rebaseline until you rebaseline it. Disabling a trigger moves its revision, so a retarget prepared before it answers HTTP 409 WV-REVISION.
  • Kafka triggers and app event sources get a new source binding for you, and their old one is revoked in the same transaction. A Kafka consumer that holds the trigger's lease stops at its next check and the trigger is claimed again; an email poll in flight admits nothing, and the next poll reads on from where the last one stopped. Events an app event source or platform-event trigger accepted before the move start the new version.
  • The audit records identities only: trigger.retarget, broker.retarget, provider.source.retarget, email.source.retarget or event_trigger.retarget, with the old and new activation and principal (and binding) IDs.

Schedules move with schedules.save and If-Match, as before.

Stop a platform-event trigger only as you read it. A stop takes the trigger's revision in If-Match too, but doesn't require it:

POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/event-triggers/{identifier}/disable
If-Match: "3"

With If-Match, the stop applies only while the trigger is still that revision. A trigger moved since you read it answers HTTP 409 WV-REVISION and keeps running: read it again before you decide. Without If-Match, the stop applies to the current revision. A trigger that is already stopped answers HTTP 200 as it is, whatever revision you send. The answer sends the stopped trigger's revision as the ETag, and a malformed If-Match answers HTTP 422 WV-ETAG.

Email sources. GET …/email/sources and GET …/email/sources/{identifier} need email.read and show each source's id, connection_revision_id, activation_id, mailbox, revision and disabled (true while it waits for a rebaseline). They never show messages, policy or mailbox positions.

Operation inventory

The table lists every operation with its canonical path and the capability it requires. "Public probe" marks the endpoints that need no token. The contract test in tests/contracts/test_api_documentation.py checks every row against the platform's operation registry, so the table matches the code. GET routes also answer HEAD, without a body. For request and response schemas, open the operation in the full API reference; to generate a client, export the OpenAPI document.

Some requests need more than their row's capability. Creating, updating, or previewing an alert rule on incidents.active also needs incident.read, and a rule on a target signal without a target_id needs at least one deployment target you may read (otherwise 422 WV-ALERT-SIGNAL). An update that only switches a rule off needs neither.

Operation Method and canonical path Required authority
human_files.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/files/create human_task.complete
human_files.chunk POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/files/chunk human_task.complete
human_files.finish POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/files/finish human_task.complete
human_files.read POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/files/read human_task.read
human_files.download POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/files/download human_task.read
files.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/files file.manage
files.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/files file.read
files.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/files/{identifier} file.read
files.chunk POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/files/{identifier}/chunks file.manage
files.finish POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/files/{identifier}/finish file.manage
files.download POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/files/{identifier}/download file.read
files.delete DELETE /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/files/{identifier} file.manage
task_files.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/files/create task.claim
task_files.chunk POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/files/chunk task.claim
task_files.finish POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/files/finish task.claim
task_files.read POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/files/read task.claim
task_files.download POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/files/download task.claim
lumi.configuration.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/lumi/configuration lumi.manage
lumi.configuration.write PUT /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/lumi/configuration lumi.manage
lumi.status GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/lumi/status lumi.use
lumi.ask POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/lumi/ask lumi.use
compatibility.read GET /api/v1/tenants/{tenant}/projects/{project}/operations/compatibility status.read
operations_summary.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/operations/summary status.read
operations_telemetry.read GET /api/v1/tenants/{tenant}/projects/{project}/operations/telemetry status.read
run_statistics.series GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/run-statistics/series status.read
run_statistics.workflows GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/run-statistics/workflows status.read
run_statistics.steps GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/run-statistics/steps status.read
alert_rules.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-rules alert.read
alert_rules.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-rules/{identifier} alert.read
alert_rules.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-rules alert.manage and status.read
alert_rules.update PUT /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-rules/{identifier} alert.manage and status.read
alert_rules.delete DELETE /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-rules/{identifier} alert.manage
alert_rules.preview POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-rules/preview alert.manage and status.read
alert_presets.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-presets alert.read
alert_channels.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-channels alert.read
alert_channels.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-channels/{identifier} alert.read
alert_channels.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-channels alert.manage and email.send
alert_channels.update PUT /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-channels/{identifier} alert.manage and email.send
alert_channels.delete DELETE /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-channels/{identifier} alert.manage
alert_channels.test POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-channels/{identifier}/test alert.manage
alert_settings.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-settings alert.read
alert_settings.update PUT /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-settings alert.manage and environment.manage
alert_recipient_consents.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-recipient-consents alert.read
alert_recipient_consents.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-recipient-consents alert.manage and environment.manage
alert_recipient_consents.revoke POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-recipient-consents/{identifier}/revoke alert.manage and environment.manage
alerts.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alerts alert.read
alerts.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alerts/{identifier} alert.read
alerts.acknowledge POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alerts/{identifier}/acknowledge alert.manage
alert_events.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/alert-events alert.read
operations_retention.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/operations/retention-periods status.read
alert_addresses.read_mine GET /api/v1/tenants/{tenant}/my-alert-address authenticated identity
alert_addresses.save_mine PUT /api/v1/tenants/{tenant}/my-alert-address authenticated identity
compatibility.check POST /api/v1/tenants/{tenant}/projects/{project}/operations/compatibility/check compatibility.check
retention.plan POST /api/v1/tenants/{tenant}/projects/{project}/operations/retention/plans retention.plan
retention.read GET /api/v1/tenants/{tenant}/projects/{project}/operations/retention/plans/{identifier} retention.plan
retention.apply POST /api/v1/tenants/{tenant}/projects/{project}/operations/retention/plans/{identifier}/apply retention.apply
teams_references.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/teams-references/{identifier} trigger.manage
teams_references.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/teams-references trigger.manage
teams_references.revoke POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/teams-references/{identifier}/revoke trigger.manage + connection.manage + connection.bind
teams_references.reactivate POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/teams-references/{identifier}/reactivate trigger.manage + connection.manage + connection.bind
whatsapp_statuses.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-sources/{identifier}/whatsapp-statuses run.read
whatsapp_statuses.facts GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-sources/{identifier}/whatsapp-statuses/{state_id}/facts run.read
provider_sources.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-sources trigger.manage + connection.manage + connection.bind + target authority
provider_sources.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-sources/{identifier} run.read
provider_sources.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-sources run.read
provider_sources.disable POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-sources/{identifier}/disable trigger.manage + connection.bind + target authority
provider_receipts.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-receipts/{identifier} run.read
provider_receipts.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-receipts run.read
provider_receipts.retry POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-receipts/{identifier}/retry run.retry + current source/target authority
provider_ingress.receive POST /provider-ingress/{identifier} provider verification
provider_ingress.challenge GET /provider-ingress/{identifier} provider challenge verification
human_tasks.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks human_task.read
human_tasks.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier} human_task.read
human_tasks.claim POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/claim human_task.claim
human_tasks.release POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/release human_task.release
human_tasks.reassign POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/reassign human_task.manage
human_tasks.complete POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-tasks/{identifier}/complete human_task.complete
human_assignments.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-assignments assignment.read
human_assignments.put POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-assignments assignment.manage
human_groups.put POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/human-groups assignment.manage
runs.lifecycle GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/lifecycle run.read
runs.archive POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/archive run.archive
runs.restore POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/restore run.archive
runs.purge POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/purge run.purge
runs.pause POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/pause run.pause
runs.resume POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/resume run.resume
email_conversations.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/conversations email.read
email_conversations.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/conversations/{identifier} email.read
email_submissions.send POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/submissions email.send
email_submissions.reply POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/conversations/{identifier}/reply email.send
email_submissions.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/submissions/{identifier} email.read
email_submissions.execute POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/submissions/{identifier}/execute email.send
email_receipts.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/receipts email.read
email_sources.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/sources email.manage
email_sources.poll POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/sources/{identifier}/poll email.manage
email_sources.rebaseline POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/sources/{identifier}/rebaseline email.manage
email_receipts.correlate POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/receipts/{identifier}/correlate email.manage
email_receipts.dispatch POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/receipts/{identifier}/dispatch email.manage
email_tokens.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/correlation-tokens email.manage
email_tokens.revoke POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/correlation-tokens/{identifier}/revoke email.manage
principals.list GET /api/v1/admin/principals grant.admin
principals.create POST /api/v1/admin/principals grant.admin
principals.link POST /api/v1/admin/principals/{identifier}/identity-links grant.admin
principals.status POST /api/v1/admin/principals/{identifier}/status grant.admin
members.list GET /api/v1/tenants/{tenant}/members grant.manage or grant.admin
members.grant POST /api/v1/tenants/{tenant}/members grant.manage or grant.admin
members.revoke POST /api/v1/tenants/{tenant}/members/{identifier}/revoke grant.manage or grant.admin
identity.read GET /api/v1/identity authenticated identity
client_configuration.read GET /api/v1/client-configuration Public probe
health.live GET /health/live Public probe
health.ready GET /health/ready Public probe
admin.tenant POST /admin/tenants tenant.create
admin.grant POST /admin/grants grant.admin or grant.manage
projects.create POST /api/v1/tenants/{tenant}/projects project.manage
environments.create POST /api/v1/tenants/{tenant}/projects/{project}/environments environment.manage
environments.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment} status.read
compiler.compile POST /api/v1/tenants/{tenant}/projects/{project}/compiler/compile compile
compiler.validate POST /api/v1/tenants/{tenant}/projects/{project}/compiler/validate compile
compiler.evaluate_decision POST /api/v1/tenants/{tenant}/projects/{project}/compiler/evaluate-decision compile
catalog.read GET /api/v1/tenants/{tenant}/projects/{project}/catalog catalog.read
capabilities.read GET /api/v1/tenants/{tenant}/projects/{project}/capabilities catalog.read
language.read GET /api/v1/tenants/{tenant}/projects/{project}/language catalog.read
schemas.read GET /api/v1/tenants/{tenant}/projects/{project}/schemas catalog.read
connector_descriptors.list GET /api/v1/tenants/{tenant}/projects/{project}/connector-descriptors catalog.read
connector_descriptors.read GET /api/v1/tenants/{tenant}/projects/{project}/connector-descriptors/{adapter} catalog.read
definitions.publish POST /api/v1/tenants/{tenant}/projects/{project}/{collection} definition.publish
definitions.list GET /api/v1/tenants/{tenant}/projects/{project}/{collection} catalog.read
definitions.read GET /api/v1/tenants/{tenant}/projects/{project}/{collection}/{identifier} catalog.read
definitions.export GET /api/v1/tenants/{tenant}/projects/{project}/{collection}/{identifier}/export catalog.read
definitions.retire POST /api/v1/tenants/{tenant}/projects/{project}/{collection}/{identifier}/retire release.retire
drafts.save PUT /api/v1/tenants/{tenant}/projects/{project}/drafts/{identifier} definition.write
drafts.retire DELETE /api/v1/tenants/{tenant}/projects/{project}/drafts/{identifier} definition.write
studio_documents.read GET /api/v1/tenants/{tenant}/projects/{project}/drafts/{identifier}/studio/{kind} catalog.read
studio_documents.save PUT /api/v1/tenants/{tenant}/projects/{project}/drafts/{identifier}/studio/{kind} definition.write
studio_documents.delete DELETE /api/v1/tenants/{tenant}/projects/{project}/drafts/{identifier}/studio/{kind} definition.write
activations.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/activations release.activate
activations.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/activations catalog.read
activations.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/activations/{identifier} catalog.read
activations.export GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/activations/{identifier}/export catalog.read
activations.retire POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/activations/{identifier}/retire release.retire
connections.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/connections connection.manage
bindable_connections.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/bindable-connections connection.bind
connections.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/connections connection.manage
connections.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/connections/{identifier} connection.manage
connections.test POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/connections/{identifier}/test connection.manage
test_policy.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/test-policy status.read
test_policy.save PUT /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/test-policy environment.manage
step_tests.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/step-tests step.test
step_tests.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/step-tests/{identifier} step.test
step_tests.cancel POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/step-tests/{identifier}/cancel step.test
step_tests.answer POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/step-tests/{identifier}/answers step.test
ai_endpoints.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/ai/endpoints catalog.read
ai_models.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/ai/models catalog.read
ai_readiness.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/ai/readiness catalog.read
ai_setup.publish POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/ai/setup/publish definition.publish
ai_setup.grant POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/ai/setup/grant connection.manage
ai_connections.test POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/ai/connections/{identifier}/test connection.manage
runs.start POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs run.start
runs.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs run.read
runs.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier} run.read
runs.signal POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/signals run.signal
runs.cancel POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/cancel run.cancel
runs.retry POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/retry run.retry
runs.history GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/history run.read
runs.export GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/export run.read
runs.replay GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/replay run.read
runs.calls GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/calls run.read
runs.transactions GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/transactions run.read
run_summaries.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/run-summaries run.read
runs.steps GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/steps run.read
runs.logs GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/logs run.read
execution_logs.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/execution-logs run.read
runs.agent_log GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/agents/{key}/log run.read
agent_conversations.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/agent-conversations run.read
agent_conversations.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/agent-conversations/{workflow}/{key_hash} run.read
agent_conversations.delete DELETE /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/agent-conversations/{workflow}/{key_hash} run.purge
agent_conversations.purge_workflow POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/agent-conversations/{workflow}/purge run.purge
incidents.run_list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/runs/{identifier}/incidents incident.read
incidents.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/incidents incident.read
incidents.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/incidents/{identifier} incident.read
incidents.resolve POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/incidents/{identifier}/resolve incident.resolve
releases.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/worker-releases release.activate
releases.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/worker-releases catalog.read
releases.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/worker-releases/{identifier} catalog.read
releases.usage GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/worker-releases/{identifier}/usage catalog.read
workers.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/workers worker.register
workers.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/workers status.read
workers.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/workers/{identifier} status.read
workers.revoke POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/workers/{identifier}/revoke release.retire
workers.retire_stale POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/workers/retire-stale release.retire
workers.grant POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/worker-connection-grants connection.manage
tasks.claim POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/claim task.claim
tasks.context POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/context task.claim
tasks.heartbeat POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/heartbeat task.heartbeat
tasks.complete POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/complete task.complete
tasks.fail POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/fail task.complete
tasks.log POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/logs task.log
tasks.credentials POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/tasks/credentials credential.lease
subscriptions.save POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/subscriptions subscription.manage and connection.manage and connection.bind and source authority
subscriptions.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/subscriptions delivery.read
subscriptions.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/subscriptions/{identifier} delivery.read
subscriptions.disable POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/subscriptions/{identifier}/disable subscription.manage and source authority
deliveries.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deliveries delivery.read
deliveries.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deliveries/{identifier} delivery.read
deliveries.retry POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deliveries/{identifier}/retry delivery.retry and current source authority
deliveries.history GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deliveries/{identifier}/attempts delivery.read
source_bindings.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/connection-source-bindings connection.manage
source_bindings.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/connection-source-bindings/{identifier} connection.manage
source_bindings.revoke POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/connection-source-bindings/{identifier}/revoke connection.manage
broker_triggers.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-triggers trigger.manage and connection.manage and connection.bind and target authority
broker_triggers.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-triggers trigger.manage
broker_triggers.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-triggers/{identifier} trigger.manage
broker_triggers.disable POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-triggers/{identifier}/disable trigger.manage
broker_triggers.retry POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-triggers/{identifier}/retry trigger.manage and current source authority
broker_triggers.incidents GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-incidents trigger.manage
triggers.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/triggers trigger.manage
triggers.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/triggers trigger.manage
triggers.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/triggers/{identifier} trigger.manage
triggers.disable POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/triggers/{identifier}/disable trigger.manage
event_triggers.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/event-triggers trigger.manage
event_triggers.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/event-triggers trigger.manage
event_triggers.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/event-triggers/{identifier} trigger.manage
event_triggers.disable POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/event-triggers/{identifier}/disable trigger.manage
event_triggers.starts GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/event-triggers/{identifier}/starts trigger.manage
webhooks.receive POST /webhooks/{identifier} signed webhook and pinned principal authority
schedules.save POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/schedules trigger.manage and run.start
schedules.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/schedules run.read
schedules.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/schedules/{identifier} run.read
schedules.history GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/schedules/{identifier}/occurrences run.read
schedules.enable POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/schedules/{identifier}/enable trigger.manage
schedules.disable POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/schedules/{identifier}/disable trigger.manage
schedules.delete POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/schedules/{identifier}/delete trigger.manage
debug.create POST /api/v1/tenants/{tenant}/projects/{project}/debug/sessions simulate
debug.read GET /api/v1/tenants/{tenant}/projects/{project}/debug/sessions/{identifier} simulate
debug.command POST /api/v1/tenants/{tenant}/projects/{project}/debug/sessions/{identifier}/commands simulate
triggers.retarget POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/triggers/{identifier}/retarget trigger.manage and run.start
broker_triggers.retarget POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/broker-triggers/{identifier}/retarget trigger.manage and run.start and connection.manage and connection.bind
provider_sources.retarget POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/provider-sources/{identifier}/retarget trigger.manage and run.start and connection.manage and connection.bind
email_sources.retarget POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/sources/{identifier}/retarget email.manage and trigger.manage and connection.bind and run.start
event_triggers.retarget POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/event-triggers/{identifier}/retarget trigger.manage and run.start and run.read
email_sources.list GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/sources email.read
email_sources.read GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/email/sources/{identifier} email.read
test_activations.create POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/test-activations step.test
test_activations.run POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/test-activations/{identifier}/runs step.test
test_activations.listen POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/test-activations/{identifier}/listen step.test and trigger.manage
test_activations.retire DELETE /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/test-activations/{identifier} step.test

| deployment_plans.approval | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-plans/{identifier}/approval | deployment.read | | deployment_jobs.reconcile | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-jobs/{identifier}/reconcile | deployment.apply and deployment.approve | | deployment_targets.list | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-targets | deployment.read | | deployment_targets.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-targets/{identifier} | deployment.read | | deployments.list | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployments | deployment.read | | deployments.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployments/{identifier} | deployment.read | | deployment_observations.list | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-observations | deployment.read | | deployment_observations.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-observations/{identifier} | deployment.read | | deployment_plans.list | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-plans | deployment.read | | deployment_plans.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-plans/{identifier} | deployment.read | | deployment_jobs.list | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-jobs | deployment.read | | deployment_jobs.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-jobs/{identifier} | deployment.read | | deployment_runners.list | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners | deployment.read | | deployment_runners.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners/{identifier} | deployment.read | | deployment_targets.create | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-targets | target.manage | | deployments.create | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployments | target.manage | | deployment_observations.create | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-observations | deployment.plan | | deployment_plans.create | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-plans | deployment.plan | | deployment_targets.update | PUT /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-targets/{identifier} | target.manage | | deployments.update | PUT /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployments/{identifier} | target.manage | | deployment_plans.approve | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-plans/{identifier}/approve | deployment.approve | | deployment_plans.apply | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-plans/{identifier}/apply | deployment.apply | | deployment_jobs.cancel | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-jobs/{identifier}/cancel | deployment.cancel | | deployment_runners.create | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners | runner.register | | deployment_runners.claim | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners/claim | runner.claim | | deployment_runners.renew | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners/renew | runner.renew | | deployment_runners.report | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners/report | runner.report | | deployment_runners.revoke | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners/{identifier}/revoke | target.manage | | deployment_change_requests.create | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests | deployment.plan | | deployment_change_requests.list | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests | deployment.read | | deployment_change_requests.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier} | deployment.read | | deployment_change_requests.advance | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier}/advance | deployment.plan | | deployment_change_requests.approve | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier}/approve | deployment.approve | | deployment_change_requests.drain | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier}/drain | worker.drain | | deployment_change_requests.apply | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier}/apply | deployment.apply | | deployment_change_requests.replan | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier}/replan | deployment.plan | | deployment_change_requests.decline | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier}/decline | deployment.approve | | deployment_change_requests.cancel | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-change-requests/{identifier}/cancel | deployment.plan | | deployment_runners.claim_logs | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners/claim-logs | runner.claim | | deployment_runners.report_logs | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-runners/report-logs | runner.report | | deployment_log_requests.create | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-log-requests | deployment_log.read and deployment.read | | deployment_log_requests.read | GET /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/deployment-log-requests/{identifier} | deployment_log.read and deployment.read | | workers.drain | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/workers/{identifier}/drain | worker.drain | | workers.resume | POST /api/v1/tenants/{tenant}/projects/{project}/environments/{environment}/workers/{identifier}/resume | worker.drain |

event_triggers.create also requires run.start and run.read, and transaction.reconcile when the request sets may_reconcile, which lets the trigger's runs resolve their transaction once workflows can resolve transactions; until then it has no effect. Each run a trigger starts receives the transaction facts of its event, such as business keys and failure codes, so the trigger's owner must still hold run.start and run.read when the run starts. event_triggers.starts also requires run.read: it shows the runs a trigger started, event types and refusal causes.

Deployment Operations authority

Follow Manage container deployments for the complete Studio and CLI sequence.

Deployment targets, desired deployments, observations, plans, approvals, jobs, and runner registrations belong to one environment. Child-resource reads check the target grant. Lists filter authorized target IDs before pagination; use target_id to select a target, and deployment_id to narrow plan history. An observation is a dated snapshot, not a promise of current health. A worker component's observed resource lists up to 100 live members, one per running or starting container or pod: host, ordinal, state, ready, started_at, restarts, and node. Compose reports the container ID prefix, which is the container's default hostname, and its Compose number as ordinal; Kubernetes reports the pod name and node. Stopped, terminating, finished, failed, and evicted containers or pods are left out. Members are placement only: with more than 100 live members, or when the runner cannot list them all, the field is left out (placement unknown) rather than truncated, and the observation still succeeds. A resource without the field therefore has no members or unknown ones, and its observation keeps its digest. Upgrade the server before its runners; an older server refuses a report with members.

The server creates an immutable plan from the desired revision and a fresh, complete observation. Approval records its exact digest. Applying checks the current target and desired revisions, freshness, and the approver's current authority again. deployment_plans.approval returns the recorded approval or null; a recorded approval does not bypass those final checks.

Role Responsibility
deployment_reader Read authorized target inventory and evidence
deployment_planner Register target metadata, edit desired deployment, observe, and plan
deployment_approver Approve the exact immutable plan
deployment_operator Apply or cancel work
deployment_runner Dedicated application's registration, claims, renewals, and reports
deployment_log_reader Read snapshots of a target's worker container logs, with deployment.read on the target
worker_operator Drain or resume a specific worker instance

A container log request asks the target's runner for a snapshot of what one worker component's containers or pods printed: up to 5 running members (all of them, up to 5, when the request names none), from the last 60 seconds to 24 hours, and the last 1 to 1,000 lines of each. Both deployment_log_requests operations need deployment_log.read and deployment.read on the target. The target and its runner's registration must both hold read_logs (otherwise 422 WV-DEPLOYMENT-UNSUPPORTED), a runner of the target must have been in touch within 90 seconds (otherwise 409 WV-RUNNER-OFFLINE), and a target takes at most 10 requests a minute (429 WV-LOG-RATE with Retry-After). A request reads pending until its runner reports, ready with each member's lines (at, stream, text), failed with a failure code, and expired one hour after it was made, when the server deletes it and its lines. A runner that hasn't answered within 2 minutes leaves the request failed with no_answer. Each member also says how many times its container restarted (restarts) and how many of its first lines came from the container that ran before the last restart (previous_lines, Kubernetes only; 0 otherwise). A member that printed nothing comes back with no lines; a member the runner couldn't read is left out, and the snapshot is marked truncated.

The runner claims log requests with deployment_runners.claim_logs and reports the lines with deployment_runners.report_logs, beside its jobs, so a log request never waits for or blocks a target's job. It reads only worker components its local policy binds and members it observed itself, with a fixed docker logs or kubectl logs argument list, cuts each line to 2 KiB and the snapshot to 256 KiB, and redacts secrets before reporting; the server redacts every line again. Studio never forwards the two runner operations.

Provider credentials and configuration templates stay on the outbound runner. The API accepts typed intent, immutable image digests, and local configuration aliases; it does not accept commands or cloud credentials. API/scheduler components require exactly one instance. Worker components require an admitted release. Available actions are bounded by both the registered target and the runner's local adapter policy.

Only one job may be active per target. Losing authority after external changes begin requires reconciliation, never automatic re-execution. An operator with both apply and approve capabilities must acknowledge that the external operation stopped and select a new complete, settled observation to close the ambiguous job. Closing it does not reverse changes or apply another plan. Worker drain prevents new claims and lets existing leases settle; scaling a provider replica count to zero is a different operation.

Compatibility and retention authority

Compatibility. A project viewer with status.read can read the project's compatibility report; starting a fresh check needs compatibility.check. Reports leave out other projects' findings, and both operations reload your current grants.

Retention. A retention plan is an immutable set of items chosen by the server.

  • Only the plan's creator, with the matching current project capability, can read or apply it. An environment-only or resource-limited grant is not enough.
  • Another person's plan answers exactly like an unknown plan (not found).
  • Applying a plan checks authorization and eligibility again; a client cannot replace the items in it.

The CLI retention commands show the complete plan-then-apply sequence.

Next steps