operationId, and the operations routes of the
Platform API report its progress:
operations:read. Cancellation requires operations:cancel.
A team API key sees team-owned operations and the operations of every project
in the team. A project token sees only its own project’s operations. When a
project token asks for another project, or for an operation outside its
project, the API returns 404.
Each route also has a project form under
/platform/projects/{projectId}/operations, which addresses exactly one
project.
Operation fields
succeeded, failed, and cancelled are terminal. A terminal operation
doesn’t change again.
List operations
List results come newest first. Filter byprojectId, status, kind,
resourceType with resourceId, since, and exclusive until:
page.nextCursor is
set. The cursor carries the filters and the project of the page that issued
it, so send it with limit only. Adding a filter, or sending it with a
different project, returns 400.
Wait for an operation
Addwait to hold the request open until something changes. wait accepts
0 to 30 seconds:
- the operation reaches a terminal status;
afterSequenceis set and the operation’ssequenceis greater than it; or- the wait ends.
200. Check status before you act: an expired wait returns a non-terminal
operation. To follow each transition, send the last sequence you saw as
afterSequence on the next request.
Read the transition history
GET /platform/operations/{operationId}/transitions lists every status change
in ascending sequence order, with the progress, error, and action-required
snapshot recorded at that transition.
Cancel an operation
Only running or action-required campaign and production-enrollment operations accept cancellation. Checkcapabilities.cancellable first, then send an
Idempotency-Key:
cancelling and later reaches cancelled, or another
terminal status if it finished first. Wait for it as shown above.
SDK, CLI, and MCP
- The TypeScript SDK exposes
client.operations.list,get,listTransitions,wait, andcancel. See SDKs. - The CLI provides
polymorfa operation list,view,wait,watch, andcancel.waitandwatchexit0when the operation succeeds,1when it fails or is cancelled, and8when--timeoutends first. - The MCP server provides
operations_list,operations_get, andoperations_wait. It doesn’t cancel operations.