Server HTTP API
This reference lists the Effect server operations at source revision 49560371f6cd34d30383df5619df46969c594ae4.
Browse the complete OpenAPI reference for parameters, request and response schemas, and payload examples. You can also download the OpenAPI JSON.
See the HTTP session contract and the server integration guide for session and CSRF handling.
Administrative operations
Section titled “Administrative operations”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/admin/activities |
List open activities | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
GET /api/v1/admin/instances/{instanceId}/execution |
Get the execution view for an instance | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/admin/operations |
Get the operations dashboard | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
The administrative instance execution response includes the committed modeledErrors history, when present.
Read BPMN Error history.
Open process problems
Section titled “Open process problems”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/admin/problems |
List open workflow problems | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
An unhandled BPMN Error creates one open workflow problem. Its modeledError carries the error code, published source event and version, occurrence time and active execution path.
Administrative problem contract.
Models and deployments
Section titled “Models and deployments”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/capabilities |
Get effective BPMN capabilities and limits | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
POST /api/v1/deployments |
Deploy a new version of a BPMN model | 201, 400, 401, 403, 409, 413, 415, 422, 500, 503 |
GET /api/v1/deployments/{deploymentId} |
Get a deployment and its validation report | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/model-validations |
Check whether a model can be deployed | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
GET /api/v1/model-versions/{versionId} |
Get a published model version | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/model-versions/{versionId}/archive |
Archive a model version | 204, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/model-versions/{versionId}/bpmn |
Download a version’s BPMN XML | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/model-versions/{versionId}/reactivate |
Reactivate an archived model version | 204, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/model-versions/{versionId}/schema-files |
Get the XSD files stored with a version | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/model-versions/{versionId}/start-data-schema |
Get the input schema for starting a version | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/models |
List visible BPMN models | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
GET /api/v1/models/{modelId} |
Get a BPMN model and its default version | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/models/{modelId}/history |
List a model’s deployment and version history | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/models/{modelId}/versions |
List visible versions of a model | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
BPMN and XSD bundles
Section titled “BPMN and XSD bundles”For a model with local schema Imports, send application/json with the XML in bpmn and the local XSD texts in schemaFiles, keyed by Import location. A BPMN-only request can use application/xml. The schema-files operation returns the XSD files attached to the published version.
Call Activity versions and history
Section titled “Call Activity versions and history”The capability endpoint advertises call-activity. The expanded BPMN calledElement and its Import namespace identify the target model series. Preflight and deployment select the newest startable version and compare its required input and output ports with the call.
GET /api/v1/model-versions/{versionId} exposes processInterface for a target with declared ports, and callBindings for a caller. Each binding contains callActivityId and targetVersionId. Redeploying identical caller XML can select a different target version. Archiving a target prevents direct starts and new bindings. Existing caller versions retain their recorded targets.
The validation report includes behaviorTargetVersionIds when it examines a bound chain. Behavioral checks report search limits and can identify the model version and scope of a counterexample. Reference and port diagnostics identify the affected Call Activity.
GET /api/v1/instances/{instanceId} includes callHistory for authorized readers. The executionId stays the same from started to returned or withdrawn. A nested call may also have a parentExecutionId. Called tasks carry the root instance ID, their own model versionId, and a scope path whose call entries include targetVersionId. An incomplete or invalid result appears as invalid-call-output.
See Call Activity modeling and the execution contract.
Readiness
Section titled “Readiness”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/health/ready |
Check server readiness | 200, 503 |
Process instances
Section titled “Process instances”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/instances |
List visible process instances | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
GET /api/v1/instances/{instanceId} |
Get a process instance and its execution history | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/models/{modelId}/instances |
Start a process instance | 201, 400, 401, 403, 404, 409, 413, 415, 422, 500, 503 |
An authorized instance detail includes decisionHistory after its first committed Business Rule Task decision.
Each entry contains executionId, bpmnElementId, decisionTableId, ruleId, at and, for a nested task, scopePath.
The instance’s versionId identifies the published BPMN document and table. The server stores each decision with its bound output and workflow continuation.
A missing or invalid runtime input produces an invalid-decision-input issue at the task and leaves its outgoing step inactive.
Model validation reports table and binding errors before deployment.
Business Rule Task contract.
One-shot reminder history
Section titled “One-shot reminder history”The Effect server advertises non-interrupting-boundary-timer. Once a non-interrupting Boundary Timer has fired, the authorized instance detail includes reminderHistory.
Each entry contains the Boundary Event ID (bpmnElementId), task activation (activityId), model versionId, dueAt, firedAt and scopePath for nested work.
The path and history commit together. The Worklist continues to display the earliest active interrupting deadline.
One-shot reminder contract.
BPMN Error history and terminal status
Section titled “BPMN Error history and terminal status”The server advertises bpmn-error. Validation associates invalid Error references, codes, payloads and attachments with their BPMN event. A potential error-code mismatch can be deployed.
The authorized instance detail includes modeledErrors after the first modeled throw. Each entry contains at, errorCode, source (BPMN element and version), the active scopePath if present, and handler when caught. A Service Task source adds serviceExecutionId and serviceAttemptId. The handler records the Error Boundary Event, its version and either callExecutionId or serviceActivityId. The history retains an entry after the surrounding tasks or instance have completed.
An unhandled Error gives the instance terminal status failed. Instance listing accepts status=failed. An interrupted call contributes no regular result.
An accepted Service Task fault has state faulted and a faultCode in the attempt view. The server commits the attempt and the selected Error branch or failed instance together. Only success writes regular Service Task outputs.
The server advertises service-operation for native BPMN Operation bindings and http-service-fault with the version 1 HTTP connector. See the delivery reservation walkthrough.
BPMN Error execution contract.
Sessions
Section titled “Sessions”| Method and path | Operation | Response status |
|---|---|---|
POST /api/v1/login |
Sign in and rotate the session | 200, 400, 401, 403, 409, 413, 415, 422, 429, 500, 503 |
POST /api/v1/logout |
Sign out and revoke the current session | 204, 400, 401, 403, 409, 413, 415, 422, 429, 500, 503 |
GET /api/v1/profile |
Get the current account profile | 200, 400, 401, 403, 409, 413, 415, 422, 429, 500, 503 |
GET /api/v1/session/csrf |
Get a CSRF token | 200, 400, 401, 403, 409, 413, 415, 422, 429, 500, 503 |
Message dispatches
Section titled “Message dispatches”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/message-dispatches/{dispatchId} |
Get an outgoing message dispatch | 200, 400, 401, 403, 404, 409, 413, 415, 422, 500, 503 |
POST /api/v1/message-dispatches/{dispatchId}/acceptance |
Confirm acceptance of an uncertain dispatch | 200, 400, 401, 403, 404, 409, 413, 415, 422, 500, 503 |
POST /api/v1/message-dispatches/{dispatchId}/attempts |
Retry a failed outgoing dispatch | 200, 400, 401, 403, 404, 409, 413, 415, 422, 500, 503 |
These administrative operations require an active administrator session. Retry a confirmed failure with its original outgoing ID, or submit an independently obtained transport reference for the adapter to verify an unknown outcome.
See the dispatch reconciliation contract.
Messages
Section titled “Messages”| Method and path | Operation | Response status |
|---|---|---|
POST /api/v1/messages |
Deliver a BPMN message | 200, 400, 401, 403, 404, 409, 413, 415, 422, 500, 503 |
GET /api/v1/messages/{receiptId} |
Get a message receipt and its current state | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
Authenticate using the sending account and its exact message type grant. Send message: { namespace, id }, messageId, and a JSON object payload. Use JSON strings for long and decimal fields. An identical retry returns the original receipt with its current state.
A receipt identifies the instance and published version. States are started, buffered, consumed, late and cancelled. Reading a receipt requires the original sender and a current grant.
The server reports message-forbidden (403), message-start-not-found or unknown-message-correlation (404), message-delivery-conflict, confirmation-already-received or message-correlation-closed (409), and invalid-message-payload (422).
Follow the purchase order walkthrough or read the delivery contract.
Accounts and roles
Section titled “Accounts and roles”| Method and path | Operation | Response status |
|---|---|---|
POST /api/v1/profile/password |
Change the current account’s password | 204, 400, 401, 403, 409, 413, 415, 500, 503 |
GET /api/v1/roles |
List roles | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
POST /api/v1/roles |
Create a role | 201, 400, 401, 403, 409, 413, 415, 500, 503 |
GET /api/v1/roles/{roleKey} |
Get a role | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
PATCH /api/v1/roles/{roleKey} |
Rename a role without changing its key | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
DELETE /api/v1/roles/{roleKey} |
Delete an unused role | 204, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/users |
List accounts | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
POST /api/v1/users |
Create an account | 201, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/users/{userId} |
Get an account | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
PATCH /api/v1/users/{userId} |
Update an account | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
DELETE /api/v1/users/{userId} |
Delete an account | 204, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/users/{userId}/password |
Reset another account’s password | 204, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
PUT /api/v1/users/{userId}/roles |
Replace an account’s role memberships | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
Service Tasks
Section titled “Service Tasks”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/service-tasks/{executionId} |
Get a Service Task execution | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/service-tasks/{executionId}/attempts |
Create another attempt for a Service Task | 201, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/service-tasks/{executionId}/attempts/{attemptId} |
Get an exact attempt for a Service Task | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
When a Sub-Process is withdrawn, remaining Service Task attempts in it are visible as withdrawn to authorized readers.
Their audit identifies a timer or Error Boundary Event, a Terminate End Event, or the source Error End Event through boundaryEventId, terminateEventId or errorEventId. An already-started handler may still act externally.
Only a current attempt in an active scope can publish a result. Pending scope timers are read from durable storage at restart.
See the scope deadline contract.
Worklist and User Tasks
Section titled “Worklist and User Tasks”| Method and path | Operation | Response status |
|---|---|---|
GET /api/v1/tasks/{taskId} |
Get a User Task and its available actions | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/tasks/{taskId}/attempts |
Open a fresh attempt for a User Task | 201, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/tasks/{taskId}/attempts/{attemptId} |
Get an exact attempt for a User Task | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/tasks/{taskId}/claim |
Claim an unassigned role-pool task | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/tasks/{taskId}/complete |
Complete a User Task with the current attempt | 200, 400, 401, 403, 404, 409, 413, 415, 422, 500, 503 |
GET /api/v1/tasks/{taskId}/history |
List audit events for a User Task | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
POST /api/v1/tasks/{taskId}/release |
Release a claimed role-pool task | 200, 400, 401, 403, 404, 409, 413, 415, 500, 503 |
GET /api/v1/worklist |
List available User Tasks | 200, 400, 401, 403, 409, 413, 415, 500, 503 |
Worklist dueAt reflects the earliest active interrupting deadline that can withdraw a task.
Authorized historical reads keep the withdrawn task and its audit event. The outer timeout task shows its own effective deadline.
See the HTTP task deadline contract.
Script Tasks
Section titled “Script Tasks”The server advertises script-task-expression for the Getriebe dialect.
Set GETRIEBE_JAVASCRIPT_SCRIPT_TASKS=true to enable script-task-javascript and accept text/javascript models.
Set GETRIEBE_JAVASCRIPT_SCRIPT_TIMEOUT_MS to configure JavaScript execution time. The default is 100 ms.
When composing with makeServer, supply javascriptScripts: { timeoutMs: 100 }.
Preflight reports an unavailable language, invalid script syntax or invalid port binding at the BPMN task.
An evaluation failure appears in the instance detail and administrative problem list with a problem type URI ending in /script-task-error.
The server applies a successful typed output and its continuation in the same transaction, using the instance’s deployed version.
Enable JavaScript only for models approved as application code. See Script Task modeling and the execution contract.