Worker REST API

The worker is, technically, an HTTP server. The platform calls into it whenever it needs to run a node, list available components, test a connector, or kick off the OAuth handshake. Both the Node.js and PHP SDKs implement the same routes, so the wire contract below applies to both.

You don't usually need to think about these routes: they are wired up by the SDK and the bundle. This page exists for the cases where you do, for example when you put a reverse proxy in front of the worker or when you debug an integration test.

Discovery #

MethodRoutePurpose
GET/applicationsList all Applications registered in this worker.
GET/applications/{key}Application detail (name, description, form definition).
GET/connector/listList all Connectors.
GET/custom_node/listList all custom nodes.
GET/batch/listList all batch nodes.

The platform calls discovery routes once at worker start (and on demand from the Admin UI) to know which components are available.

Execution #

MethodRoutePurpose
POST/connector/{id}/actionRun one connector against an inbound message.
POST/custom_node/{id}/processRun one custom node against an inbound message.
POST/batch/{key}/actionRun one batch node iteration.

These are the routes the platform calls during topology execution. The request body is the inbound ProcessDto; the response is the outbound ProcessDto.

Test endpoints #

MethodRoutePurpose
GET/connector/{id}/action/testHealth-check this connector (does it even resolve)?
GET/custom_node/{id}/process/testSame for a custom node.
GET/batch/{key}/action/testSame for a batch node.

The Admin UI's "test" buttons call these routes.

Application sync calls #

MethodRoutePurpose
GET/applications/{key}/sync/listList the synchronous methods the Application exposes.
GET, POST/applications/{key}/sync/{method}Invoke one synchronous method (used for in-Admin lookups, e.g. populating a select box from upstream).

OAuth handshake #

MethodRoutePurpose
GET/applications/{key}/users/{user}/sdk/{sdk}/authorizeBuild the authorize URL the user is redirected to.
GET/applications/{key}/users/{user}/sdk/{sdk}/authorize/tokenCallback target the provider returns to.
GET/applications/authorize/tokenGeneric OAuth callback variant.

Source of truth #

For the canonical machine-readable definition with full request/response shapes, consult the OpenAPI files shipped with each SDK:

See also #

© 2025 Orchesty Solutions. All rights reserved.