Skip to main content

Stateway API

The Stateway API is a RESTful interface for managing BPMN 2.0 process definitions, instances, tasks, timers, webhooks, and decisions. All endpoints require authentication via API Key (except health checks and registration).

Base URL

https://api.stateway.io

Authentication

Include your API key in the X-API-Key header:

curl -H "X-API-Key: sw_live_xxxxxxxx" https://api.stateway.io/v1/definitions

Interactive API Explorer

Use the Swagger UI below to explore all endpoints, request/response schemas, and test the API interactively.

tip

The explorer loads the live OpenAPI specification. You can also download the raw spec at /openapi.json.

API Categories

CategoryDescription
AuthRegister tenants and manage API keys
DefinitionsCreate, update, version, and deploy BPMN process definitions
InstancesStart, suspend, resume, terminate, and inspect process instances
TasksClaim, complete, delegate, and unclaim human tasks
EventsSend messages and broadcast signals to running instances
TimersList and cancel scheduled timer jobs
WebhooksSubscribe to events and inspect delivery attempts
DecisionsCreate DMN decision tables and evaluate them
CredentialsStore and rotate encrypted secrets for service task headers
MonitoringOperational metrics for process health and service reliability
TenantManage tenant settings
HealthLiveness and readiness probes

API Explorer

Browse all endpoints, view request/response schemas, and test the API interactively.

Open API Explorer →

caution

The "Try it out" feature requires a valid API key. Register a tenant and obtain an API key before testing endpoints.