Skip to content

List flow deployment audit logs

GET
/organizations/{organizationId}/environments/{environmentId}/flow-deployments/{flowDeploymentId}/audit-logs
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/FLDP-3fa85f64-5717-4562-b3fc-2c963f66afa6/audit-logs?limit=100&cursor=eyJvZmZzZXQiOjEwMH0%3D&actionId=ACTN-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d&include=data' \
--header 'Authorization: Bearer <token>'

Returns action audit events for one deployment: runs, deploy lifecycle, and (when filtering by run) step events. Newest first. This is not the organization-wide export on GET /audit-logs (that route needs viewAuditLogs).

Request

  • Method: GET
  • Path: …/flow-deployments/{flowDeploymentId}/audit-logs
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
flowDeploymentId
required
Flow deployment id

Opaque id of a deployment of one flow into one environment. Use it to read its start endpoints, change the version, bind credentials, run, and stop.

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

Opaque id of the deployment. Pass it unchanged.

Example
FLDP-3fa85f64-5717-4562-b3fc-2c963f66afa6
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=
actionId
string
<= 128 characters /^[^\p{C}]+$/

Optional run id. When set, returns all events for that run (flow and step). When omitted, returns the deployment timeline (runs and deploy events, newest first). A cursor issued for one scope cannot be reused with another actionId → 400 BAD_REQUEST.

Example
ACTN-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
include
Array<string>
<= 1 items unique items
Allowed values: data

Optional data inclusion. Omit for summary fields only.

include=data adds an exported data object on each item. Small values appear inline. Large values appear as a download-url object with a short-lived HTTPS link (treat the link as secret). At most 15 download links per response; additional large values use unavailable with reason export-limit. Page size is capped at 20 rows; the response may shrink when the total size approaches 4 MB. One item that still exceeds 4 MB alone returns 500.

Security: Each downloadUrl works without a Mindflow bearer token until it expires (about 600 seconds). Anyone who has the URL can fetch the content until then. Use HTTPS only.

Example
?include=data

One page of action audit events for the deployment. pagination.nextCursor is null on the last page.

Media typeapplication/json
object
auditLogs
required
Array
<= 1000 items
Flow deployment audit log

Action audit event for one deployment. Same summary shape as organization audit export. data appears only when the caller requested include=data. Exported data may nest AuditLogDataDownloadUrl or AuditLogDataUnavailable objects inside step I/O. Step I/O may be redacted when the flow hides execution data.

object
auditLogId

Opaque id of this audit record.

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

The category of the audit log entry, which determines the context and scope of the logged action. Valid categories are: ‘flow’ for flow-related operations, ‘flow-deployment’ for deployment-specific events, ‘credential’ for credential management actions, ‘environment’ for environment management actions, ‘permission’ for permission-related changes, ‘mcp’ for Model Context Protocol (HTTP MCP) activity, ‘relay’ for Relay network register/unbind, ‘team’ for team management actions, ‘organization’ for organization lifecycle operations, ‘database’ for database and database item writes, ‘signup-email-domain’ for signup email domain changes, and ‘authentication’ for sign-up, sign-up confirmation, sign-in, and password reset activity.

string
Allowed values: flow flow-deployment credential environment permission mcp relay team organization database signup-email-domain authentication
type

The specific type of action or event that was logged. The value of this field is dependent on the category and provides detailed information about the nature of the audit event.

Audit Event Types

Category: flow-deployment

  • deploy_queued: Flow deployment deploy queued
  • deploy_started: Flow deployment deploy started
  • deploy_completed: Flow deployment deploy completed
  • deploy_failed: Flow deployment deploy failed
  • run_queued: Flow deployment run queued
  • run_started: Flow deployment run started
  • run_completed: Flow deployment run completed
  • run_failed: Flow deployment run failed
  • step_run_queued: Flow deployment step run queued
  • step_run_started: Flow deployment step run started
  • step_run_completed: Flow deployment step run completed
  • step_run_failed: Flow deployment step run failed

Category: flow

  • step_create: Creation of a new step in a flow
  • step_update: Update to an existing step in a flow
  • step_delete: Deletion of a step from a flow
  • link_create: Creation of a new link between steps
  • link_update: Update to an existing link between steps
  • link_delete: Deletion of a link between steps
  • flow_create: Creation of a new flow
  • flow_update: Update to an existing flow
  • flow_delete: Deletion of a flow
  • flow_move: Moving a flow between environments
  • flow_duplicate: Duplicating a flow
  • flow-deployment_mode: A flow deployment switched between Test and Live
  • import_export: Importing entities into the system
  • ai_generate_flow_description: AI generation of a playbook description
  • ai_generate_flow: AI generation of a flow
  • revert: Reverting a changelog action

Category: permission

  • create_completed: Permission was successfully created
  • create_failed: Failed to create permission
  • update_completed: Permission was successfully updated
  • update_failed: Failed to update permission
  • delete_completed: Permission was successfully deleted
  • delete_failed: Failed to delete permission

Category: credential

  • create_completed: Credential was successfully created
  • create_failed: Failed to create credential
  • update_completed: Credential was successfully updated
  • update_failed: Failed to update credential
  • delete_completed: Credential was successfully deleted
  • delete_failed: Failed to delete credential
  • update_value_completed: Credential value was successfully updated
  • update_value_failed: Failed to update credential value
  • get_completed: Credential value was successfully accessed/decrypted
  • get_failed: Failed to access credential value

Category: environment

  • create_completed: Environment was successfully created
  • create_failed: Failed to create environment
  • update_completed: Environment was successfully updated
  • update_failed: Failed to update environment
  • delete_completed: Environment was successfully deleted
  • delete_failed: Failed to delete environment

Category: mcp

  • invocation_completed: An MCP JSON-RPC request completed successfully
  • invocation_failed: An MCP JSON-RPC request failed with an error

Category: team

  • create_completed: Team was successfully created
  • create_failed: Failed to create team
  • update_completed: Team was successfully updated
  • update_failed: Failed to update team
  • delete_completed: Team was successfully deleted
  • delete_failed: Failed to delete team

Category: organization

  • create_completed: Organization was successfully created
  • create_failed: Failed to create organization
  • update_completed: Organization was successfully updated
  • update_failed: Failed to update organization
  • delete_completed: Organization was successfully deleted
  • delete_failed: Failed to delete organization

Category: database

  • create_completed: Database was successfully created
  • create_failed: Failed to create database
  • update_completed: Database was successfully updated
  • update_failed: Failed to update database
  • delete_completed: Database was successfully deleted
  • delete_failed: Failed to delete database
  • item_create_completed: Database item was successfully created
  • item_create_failed: Failed to create database item
  • item_update_completed: Database item was successfully updated
  • item_update_failed: Failed to update database item
  • item_delete_completed: Database item was successfully deleted
  • item_delete_failed: Failed to delete database item

Category: signup-email-domain

  • add_completed: An email domain was allowed to sign up
  • remove_completed: An email domain was removed from the signup list

Category: authentication

  • sign_up_accepted: Mindflow accepted a sign-up request (email and password, SSO first sign-in, admin invitation, or magic link); the account is created right after
  • sign_up_failed: Mindflow rejected a sign-up request; metadata.reason gives the rejection reason
  • sign_up_confirmation_completed: An account was confirmed (email verification code, admin confirmation, SSO first sign-in, or magic link)
  • sign_in_completed: A user signed in and received new tokens; token refreshes are not logged
  • sign_in_failed: A user passed their identity check but Mindflow could not complete the sign-in; wrong passwords are not logged
  • password_reset_completed: A user set a new password through the forgot-password flow
string
<= 50 characters /^[a-z_-]+$/
timestamp

The exact date and time when the audited event occurred, recorded in ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ). This timestamp is set at the moment the event is logged and is used for chronological ordering and time-based queries.

string format: date-time
<= 29 characters
createdAt

Time when this audit record was stored, as ISO 8601 UTC. Use timestamp for when the action happened. Use expiresAt for when the record is deleted under retention.

string format: date-time
<= 29 characters
expiresAt

Time when this audit record is automatically deleted, as ISO 8601 UTC. After this instant list and get calls do not include it. Retention uses this field.

string format: date-time
<= 29 characters
metadata

Additional context-specific information about the audit event. This flexible object can contain any relevant data that provides more details about the event, such as user information, resource identifiers, or specific parameters of the action. The structure of this object varies depending on the category and type of the audit log.

object
key
additional properties
any
data

Exported event data when the list request used include=data. Omitted otherwise. Shape varies by event type; large values appear as download-url links rather than inline content.

object
key
additional properties
any
pagination
required
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
{
"auditLogs": [
{
"auditLogId": "AUDI-33090c4f-a7b9-48e0-8a2c-79b79d91dff9",
"category": "flow",
"type": "step_update",
"timestamp": "2025-05-12T14:20:31.702Z",
"createdAt": "2025-05-12T14:20:31.800Z",
"expiresAt": "2025-05-19T14:20:31.959Z",
"metadata": {
"stepName": "Run script",
"stepId": "STEP-1d03452e-b664-4d30-96b4-6fe90096ef41",
"flowId": "PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19",
"principalInfo": {
"name": "Example User",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
"id": "USER-c3545882-60b1-709d-1806-d53d80bfaa22",
"type": "user",
"email": "john.doe@example.com",
"ip": "246.157.181.77"
},
"flowName": "Exporting logs"
}
}
],
"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.

Forbidden. The server understood the request but refuses to authorize it.

For connector APIs, this often indicates insufficient permissions on the remote system (for example SFTP write access denied).

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 FORBIDDEN on this response. The token was accepted and the action is not allowed.

string
Allowed values: FORBIDDEN
Example
{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "You cannot perform this action.",
"code": "FORBIDDEN"
}
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.