Skip to content

Overview

Deploy a flow into an environment, then start and stop runs. A deployment either follows the flow’s live canvas (tracksLatest true, created with versionId latest) or pins one saved version. It exposes start endpoints in endpoints.triggers and a resume base URL in endpoints.resume.

Send Authorization: Bearer <token>. Deployment and run ids are opaque — pass them unchanged.

Method Path Result
GET …/flow-deployments One page of deployments in the environment. Optional flowId keeps one flow’s deployments.
POST same Deploys a flow at a required versionId: a saved version id, or latest to follow the live canvas. Optional credentialsMapping binds steps at create. Status 201.
GET …/flow-deployments/{flowDeploymentId} One deployment. 404 when it is missing.
DELETE same Removes the deployment. Status 204.
GET …/flow-deployments/{flowDeploymentId}/endpoints Start endpoints and resume base URL. Requires runFlowDeployment. 404 when the deployment is missing.
PATCH …/version Points the deployment at another snapshot (application/merge-patch+json).
GET …/credentials-mapping Current step-to-credential map and bindable steps with their serviceId.
PUT same Replaces the full map. Omitted steps become unbound.
PATCH same Merges step bindings. A null value clears one step. Omitted steps stay bound. Body is the map.
POST …/build-session Opens (or returns the open) the test session a BUILD deployment needs before its webhook, email, schedule, or chat triggers start runs. 400 on a LIVE deployment.
DELETE same Closes the test session. Status 204, also when none is open.
POST …/run Starts a run and returns 202 with flowDeploymentRunId. Optional body: replayRunId reuses an earlier run’s trigger input. The run continues after the response.
POST …/runs/{flowDeploymentRunId}/stop Asks that run to stop. Status 204.
GET …/flow-deployments/{flowDeploymentId}/audit-logs Action audit events for the deployment (runs and deploy activity). Optional actionId scopes to one run.

Authentication

Bearer token in Authorization. Deployment operations require viewFlowDeployment, deleteFlowDeployment, or runFlowDeployment on the deployment as documented per operation.

Start and resume endpoints

These URLs are for external triggers, not for this API’s bearer token. Each webhook entry in endpoints.triggers sets completion to synchronous or asynchronous, transport to tls or mtls, and authentication to query, header, or headers. Synchronous webhooks use authentication query only. Use transport mtls only when the environment has mutual TLS (mTLS).

When the flow requires a webhook API key, send it in the x-api-key header or in the apikey query parameter to match the entry’s authentication. For authentication headers, the path has no trigger id. Send x-api-key and x-mindflow-flow-deployment-id.

Limits

Limit Value
Deployment id length 128 characters
Run id length 128 characters
Trigger endpoints per deployment 10
Bindable steps per credentials mapping 1000

Errors

All errors use RFC 9457 Problem Details.

HTTP When
400 Invalid field, missing required versionId on create, or a malformed run body
401 Missing or invalid Bearer token
403 Caller lacks permission for the deployment
404 Deployment or run not found
429 Rate limit exceeded
500 Unexpected server error

Operation descriptions document auth, binding rules, and status codes for each surface.

Information

Bearer token for API authentication. The token must be provided in the Authorization header as ‘Bearer ’.

Security scheme type: http