Skip to content

List flow deployments

GET
/organizations/{organizationId}/environments/{environmentId}/flow-deployments
curl --request GET \
--url 'https://api-dev.mindflow.io/v1/organizations/ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742/environments/ENVI-57b858ed-ec60-4507-b2ef-ea58244ac742/flow-deployments?flowId=PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19&name=Production&fields=organizationId%2CflowDeploymentId%2CflowId&limit=100&cursor=eyJvZmZzZXQiOjEwMH0%3D' \
--header 'Authorization: Bearer <token>'

Returns one page of deployments in the environment that the caller can see. Omit cursor for the first page. name filters by name. * matches any sequence of characters. Omit name to skip that filter. flowId keeps only the deployments of that flow. Use it to find the deployment that tracks a flow’s live canvas (tracksLatest true) before you create one. A page can hold fewer items than limit, even none, when the caller cannot see every deployment or flowId skips some. An empty page does not mean the end. Follow nextCursor until it is null.

organizationId
required
Organization id

Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.

string
default: $CURRENT_ORGANIZATION_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/

Opaque id of the organization. Pass it unchanged.

Example
ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742
environmentId
required
Environment id

Opaque id of an environment. In a playbook step this can be filled from the current environment when the caller leaves it unset.

string
default: $CURRENT_ENVIRONMENT_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/

Opaque id of the environment. Pass it unchanged.

Example
ENVI-57b858ed-ec60-4507-b2ef-ea58244ac742
flowId
Flow id

Opaque id of a flow. Use it on get, update, delete, versions, and when deploying the flow.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/

Keeps only deployments of this flow. Omit it to list deployments of every flow. An unknown flow id returns an empty list.

Example
PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19
name
string
<= 128 characters /^[^\p{C}]+$/

Name filter. * matches any sequence of characters. Omit it to skip name filtering. Maximum 128 characters.

Example
Production
fields
Array<string>
<= 12 items unique items
Allowed values: organizationId flowDeploymentId environmentId flowId versionId mode tracksLatest credentialsMapping createdAt updatedAt deployedAt studioUrl

Comma-separated deployment field names. Omit this parameter to receive the full deployment. An unknown name is 400 BAD_REQUEST. The response still includes the full deployment.

Example
?fields=organizationId,flowDeploymentId,flowId
limit
integer format: int32
default: 100 >= 1 <= 1000

Maximum number of items in this page. Omit it to use 100. The value must be from 1 to 1000. A smaller page returns faster. A larger page needs fewer round trips. Some lists can return fewer items than limit when the caller cannot see every row.

Example
100
cursor
string
<= 1024 characters

Opaque token from the previous response pagination.nextCursor. Omit it to read the first page. Send the token unchanged. Do not combine it with before or after on audit logs. An unknown or altered token is 400 BAD_REQUEST.

Example
eyJvZmZzZXQiOjEwMH0=

One page of deployments the caller can see. pagination.nextCursor is null on the last page.

Media typeapplication/json

Deployments on this page and the cursor for the next page.

object
flowDeployments
required

Deployments on this page, at most limit entries. The array can be shorter when the caller cannot see every deployment.

Array
<= 1000 items

One deployment. fields does not remove properties.

object
organizationId
required

Organization that owns this deployment. Same value as the organizationId path parameter.

string
default: $CURRENT_ORGANIZATION_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/
flowDeploymentId
required

Opaque id of this deployment.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
environmentId
required

Environment the flow is deployed into. Same value as the environmentId path parameter.

string
default: $CURRENT_ENVIRONMENT_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/
flowId
required

Opaque id of the flow that was deployed.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
versionId
required

Opaque id of the version this deployment runs. Change it with the version route. When tracksLatest is true, this id names the flow’s live canvas, not a frozen snapshot.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
mode
required

When external triggers may start runs. Read-only on this API; change it in Studio. BUILD is a test deployment: webhook, email, schedule, and chat triggers start runs only while a build session is open in Studio. Runs started with the run operation always start. LIVE is always on and counts toward the organization’s live-deployment quota.

string
Allowed values: BUILD LIVE
tracksLatest
required

True when the deployment follows the flow’s live canvas: every saved edit to the flow is picked up by the next run. False when the deployment is pinned to one saved version and ignores later edits.

boolean
credentialsMapping

Map of step id to credential id. Values are credential ids, never secret payloads. An empty object means no step is bound. Read or change this map on the credentials-mapping route.

object
createdAt

When the deployment was created, as ISO 8601 UTC.

string format: date-time
<= 30 characters
updatedAt

When the deployment was last changed, as ISO 8601 UTC.

string format: date-time
<= 30 characters
deployedAt

When the current version was deployed, as ISO 8601 UTC. Absent before the first successful deploy.

string format: date-time
<= 30 characters
studioUrl
required

Link that opens this deployment in the Studio designer. Give it to the user to review or edit the flow. Treat it as opaque; do not build it yourself.

string format: uri
<= 2048 characters
pagination
required

Cursor for the next page. nextCursor is null when this is the last page.

object
nextCursor

Opaque token for the next page. Send it unchanged as cursor. Null when there are no further items. The token can be longer than this example and is not a stable document format.

string
nullable <= 1024 characters
Example
{
"flowDeployments": [
{
"organizationId": "ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742",
"flowDeploymentId": "FLDP-3fa85f64-5717-4562-b3fc-2c963f66afa6",
"environmentId": "ENVI-57b858ed-ec60-4507-b2ef-ea58244ac742",
"flowId": "PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19",
"versionId": "VERS-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"mode": "BUILD",
"tracksLatest": true,
"studioUrl": "https://kronos.mindflow.io/57b858edec604507b2efea58244ac742/designer/FLDP-3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"pagination": {
"nextCursor": "eyJvZmZzZXQiOjEwMH0="
}
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

The request was invalid. Common causes include:

  • Invalid timestamp format.
  • Using cursor with before or after.
  • Missing limit when using before or after.
  • Invalid field names in the fields parameter.

See the error response for specific details about what went wrong.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always BAD_REQUEST on this response. Read detail for which value to change, then send a corrected request.

string
Allowed values: BAD_REQUEST
Example
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "The request body or query is invalid.",
"code": "BAD_REQUEST"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Authentication failed. The request lacks valid credentials or the provided credentials are invalid.

Ensure you have:

  • A valid API key or token.
  • Proper authentication headers.
  • Required permissions.
Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.

string
Allowed values: MISSING_OR_INVALID_TOKEN
Example
{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "The bearer token is missing or invalid.",
"code": "MISSING_OR_INVALID_TOKEN"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Too many requests. The request rate limit has been exceeded.

Please wait until the rate limit window resets before making additional requests.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.

string
Allowed values: RATE_LIMIT_EXCEEDED
Example
{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "The request rate limit has been exceeded.",
"code": "RATE_LIMIT_EXCEEDED"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Internal server error. The server encountered an unexpected condition that prevented it from fulfilling the request.

Please try again later or contact support if the problem persists.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.

string
Allowed values: INTERNAL_ERROR
Example
{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "The request could not be completed.",
"code": "INTERNAL_ERROR"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.