For the complete documentation index, see llms.txt. This page is also available as Markdown.

Alerts

Proactive alerts define long-runtime thresholds and recipients for flows or whole integrations. Create, list, update, and delete alerts; bulk-update recipients across many alerts; and fetch per-alert audit history.

Alert schema

List alerts

get
/v1/alerts

Returns proactive alerts for the account. Soft-deleted alerts are excluded. Requires permission get:alert:models. Returns 403 when the ENABLE_PROACTIVE_ALERTS feature flag is off.

With populate=true, nested flow / integration summaries and recipient { _id, name, email } objects are returned. Without populate, foreign keys are raw ObjectIds.

Tile-level (shared) users must include _integrationId.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
populatestring · enumOptional

When true, populate flow, integration, and recipient user fields.

Possible values:
typestring · enumOptional

Filter by alert type.

Possible values:
_integrationIdstring · objectIdOptional

Filter by integration id. Returns the integration's flow-level alerts and its integration-level alert. Required for tile-level (shared) users.

Example: 5e5eb06fdd83ed4f8206a4ea
_flowIdstring · objectIdOptional

Filter by flow id. Returns only the flow-level alert on this flow, not the integration-level alert that also covers it; filter by _integrationId to get both.

Example: 69497fc443fc1f9a03d31bd9
_recipientUserIdstring · objectIdOptional

Filter alerts that include this user as a recipient.

Example: 624cb0346309dc3a543733a2
lastTriggeredAtstring · enumOptional

Returns only alerts that have never fired. For a time range, use lastTriggeredAt_gte / lastTriggeredAt_lte instead.

Example: neverPossible values:
lastTriggeredAt_gtestring · date-timeOptional

Include alerts last triggered at or after this ISO-8601 timestamp.

Example: 2026-05-01T00:00:00.000Z
lastTriggeredAt_ltestring · date-timeOptional

Include alerts last triggered at or before this ISO-8601 timestamp.

Example: 2026-06-01T00:00:00.000Z
Responses
200

Array of alerts (empty array when none match).

application/json

Proactive alert configuration. Soft-deleted alerts are omitted from list and get responses. With populate=true on GET, _flowId and _integrationId stay ObjectId strings and the flow / integration enrichment objects are added alongside them; _recipientUserIds entries become { _id, name, email }. POST and PUT always return the unpopulated shape.

_idstring · objectIdRead-onlyRequired

Unique identifier for the alert.

Example: 674a1b2c3d4e5f6789012345
typestring · enumRequired

Alert type.

Example: long-runtimePossible values:
_userIdstring · objectIdRead-onlyRequired

Account owner user id for the alert.

Example: 624cb0346309dc3a543733a2
_integrationIdstring · objectIdRequired

Integration the alert belongs to. Always an ObjectId string. With populate=true on an integration-level alert, a sibling integration object { flowCount } is added; this id is not replaced.

Example: 5e5eb06fdd83ed4f8206a4ea
_flowIdstring · objectIdOptional

Flow for a flow-level alert; omitted on integration-level alerts. Always an ObjectId string — with populate=true the display fields arrive in the sibling flow object instead of replacing this value.

Example: 69497fc443fc1f9a03d31bd9
lastTriggeredAtstring · date-timeRead-onlyOptional

Timestamp when the alert last fired. Absent until the alert first fires; the list's lastTriggeredAt=never filter matches those alerts.

Example: 2026-06-01T12:00:00.000Z
createdAtstring · date-timeRead-onlyRequired

When the alert was created.

Example: 2026-05-01T10:00:00.000Z
lastModifiedstring · date-timeRead-onlyRequired

When the alert was last updated.

Example: 2026-05-15T14:30:00.000Z
get/v1/alerts
GET /v1/alerts HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "_id": "674a1b2c3d4e5f6789012345",
    "type": "long-runtime",
    "_userId": "624cb0346309dc3a543733a2",
    "_integrationId": "5e5eb06fdd83ed4f8206a4ea",
    "_flowId": "69497fc443fc1f9a03d31bd9",
    "longRuntime": {
      "thresholdMinutes": 30
    },
    "_recipientUserIds": [
      "624cb0346309dc3a543733a2"
    ],
    "createdAt": "2026-05-01T10:00:00.000Z",
    "lastModified": "2026-05-01T10:00:00.000Z"
  }
]

Create an alert

post
/v1/alerts

Creates a proactive alert. Validates type, flow/integration, and duplicate constraints, then resolves _recipientEmails to _recipientUserIds and dual-writes the long-runtime threshold onto the related flow document(s). A flow read doesn't return that threshold, but the flow's lastModified moves, and the flow's own audit log gets no entry for it.

Requires permission put:alert:models. Returns 403 when ENABLE_PROACTIVE_ALERTS is off. Response is always unpopulated.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Create a proactive alert. Recipients are supplied as _recipientEmails; the API resolves them to _recipientUserIds (inviting users or granting integration access when needed). Response never echoes _recipientEmails.

Either _flowId or _integrationId (or both) must be provided. When _flowId is set, _integrationId may be omitted (inferred from the flow). Integration-level alerts require _integrationId without _flowId.

typestring · enumRequired

Alert type.

Example: long-runtimePossible values:
_flowIdstring · objectIdOptional

Flow id for a flow-level alert. When set, _integrationId may be omitted and is inferred from the flow.

Example: 69497fc443fc1f9a03d31bd9
_integrationIdstring · objectIdOptional

Integration id. Required for integration-level alerts (no _flowId). Required for long-runtime unless inferred from _flowId.

Example: 5e5eb06fdd83ed4f8206a4ea
_recipientEmailsstring · email[] · min: 1 · max: 50Required

Recipient email addresses. Trimmed, lowercased, and deduplicated server-side. Minimum 1; maximum controlled by ALERT_MAX_RECIPIENT_EMAILS (default 50).

Responses
201

Created alert (unpopulated ObjectIds).

application/json

Proactive alert configuration. Soft-deleted alerts are omitted from list and get responses. With populate=true on GET, _flowId and _integrationId stay ObjectId strings and the flow / integration enrichment objects are added alongside them; _recipientUserIds entries become { _id, name, email }. POST and PUT always return the unpopulated shape.

_idstring · objectIdRead-onlyRequired

Unique identifier for the alert.

Example: 674a1b2c3d4e5f6789012345
typestring · enumRequired

Alert type.

Example: long-runtimePossible values:
_userIdstring · objectIdRead-onlyRequired

Account owner user id for the alert.

Example: 624cb0346309dc3a543733a2
_integrationIdstring · objectIdRequired

Integration the alert belongs to. Always an ObjectId string. With populate=true on an integration-level alert, a sibling integration object { flowCount } is added; this id is not replaced.

Example: 5e5eb06fdd83ed4f8206a4ea
_flowIdstring · objectIdOptional

Flow for a flow-level alert; omitted on integration-level alerts. Always an ObjectId string — with populate=true the display fields arrive in the sibling flow object instead of replacing this value.

Example: 69497fc443fc1f9a03d31bd9
lastTriggeredAtstring · date-timeRead-onlyOptional

Timestamp when the alert last fired. Absent until the alert first fires; the list's lastTriggeredAt=never filter matches those alerts.

Example: 2026-06-01T12:00:00.000Z
createdAtstring · date-timeRead-onlyRequired

When the alert was created.

Example: 2026-05-01T10:00:00.000Z
lastModifiedstring · date-timeRead-onlyRequired

When the alert was last updated.

Example: 2026-05-15T14:30:00.000Z
post/v1/alerts
POST /v1/alerts HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 156

{
  "type": "long-runtime",
  "_flowId": "69497fc443fc1f9a03d31bd9",
  "longRuntime": {
    "thresholdMinutes": 30
  },
  "_recipientEmails": [
    "ops@example.com",
    "jane@example.com"
  ]
}
{
  "_id": "674a1b2c3d4e5f6789012345",
  "type": "long-runtime",
  "_userId": "624cb0346309dc3a543733a2",
  "_integrationId": "5e5eb06fdd83ed4f8206a4ea",
  "_flowId": "69497fc443fc1f9a03d31bd9",
  "longRuntime": {
    "thresholdMinutes": 30
  },
  "_recipientUserIds": [
    "624cb0346309dc3a543733a2",
    "6356f24327114d57ab843e1f"
  ],
  "createdAt": "2026-05-01T10:00:00.000Z",
  "lastModified": "2026-05-01T10:00:00.000Z"
}

Bulk update alert recipients

patch
/v1/alerts/bulk/recipients

Adds or removes recipients across many alerts in one call. Provide either _alertIds or _integrationId (not both). Both add and remove accept _recipientEmails.

Full success returns 204 with no body. Partial failure returns 200 with { failed: [...] } only — successful alerts are omitted. There is no success or skipped array. A remove never takes an alert's last recipient: that recipient stays, and the alert is listed in failed[] with the kept email in affectedRecipientEmails. An id in _alertIds that matches no alert is listed there too, not answered with 404.

Requires permission put:alert:models. Returns 403 when ENABLE_PROACTIVE_ALERTS is off. add is limited to one integration per call; remove may span integrations.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Add or remove recipients across one or more alerts. Provide exactly one target: _alertIds or _integrationId (not both). Both actions use _recipientEmails (resolved to user ids server-side). add is limited to one integration per call; remove may span integrations.

Sending both _alertIds and _integrationId returns 400.

actionstring · enumRequired

Whether to add or remove the listed recipients.

Example: addPossible values:
_alertIdsstring · objectId[] · min: 1Optional

Explicit alert ids to update. Mutually exclusive with _integrationId.

_integrationIdstring · objectIdOptional

When set, the operation applies to every alert under this integration. Mutually exclusive with _alertIds.

Example: 5e5eb06fdd83ed4f8206a4ea
_recipientEmailsstring · email[] · min: 1 · max: 50Required

Recipient emails to add or remove. Trimmed, lowercased, and deduplicated.

Responses
200

One or more alerts failed. Body contains only failed[]; each entry includes _id, optional affectedRecipientEmails, and errors[].

application/json

Partial-failure body returned with HTTP 200 when at least one alert in the bulk recipients call could not be fully updated. Full success returns 204 with no body.

patch/v1/alerts/bulk/recipients
PATCH /v1/alerts/bulk/recipients HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 123

{
  "action": "add",
  "_alertIds": [
    "674a1b2c3d4e5f6789012345",
    "674a1b2c3d4e5f6789012346"
  ],
  "_recipientEmails": [
    "ops@example.com"
  ]
}
{
  "failed": [
    {
      "_id": "674a1b2c3d4e5f6789012345",
      "affectedRecipientEmails": [
        "ops@example.com"
      ],
      "errors": [
        {
          "code": "not_allowed",
          "message": "Cannot remove the last recipient of an alert. Delete the alert instead."
        }
      ]
    }
  ]
}

Get an alert

get
/v1/alerts/{_id}

Returns a single proactive alert by id. Soft-deleted alerts return 404. Requires permission get:alert:model. Returns 403 when ENABLE_PROACTIVE_ALERTS is off.

With populate=true, nested flow / integration / recipient objects are returned; otherwise foreign keys are raw ObjectIds.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
_idstring · objectIdRequired

Alert id.

Example: 674a1b2c3d4e5f6789012345
Query parameters
populatestring · enumOptional

When true, populate flow, integration, and recipient user fields.

Possible values:
Responses
200

Alert object.

application/json

Proactive alert configuration. Soft-deleted alerts are omitted from list and get responses. With populate=true on GET, _flowId and _integrationId stay ObjectId strings and the flow / integration enrichment objects are added alongside them; _recipientUserIds entries become { _id, name, email }. POST and PUT always return the unpopulated shape.

_idstring · objectIdRead-onlyRequired

Unique identifier for the alert.

Example: 674a1b2c3d4e5f6789012345
typestring · enumRequired

Alert type.

Example: long-runtimePossible values:
_userIdstring · objectIdRead-onlyRequired

Account owner user id for the alert.

Example: 624cb0346309dc3a543733a2
_integrationIdstring · objectIdRequired

Integration the alert belongs to. Always an ObjectId string. With populate=true on an integration-level alert, a sibling integration object { flowCount } is added; this id is not replaced.

Example: 5e5eb06fdd83ed4f8206a4ea
_flowIdstring · objectIdOptional

Flow for a flow-level alert; omitted on integration-level alerts. Always an ObjectId string — with populate=true the display fields arrive in the sibling flow object instead of replacing this value.

Example: 69497fc443fc1f9a03d31bd9
lastTriggeredAtstring · date-timeRead-onlyOptional

Timestamp when the alert last fired. Absent until the alert first fires; the list's lastTriggeredAt=never filter matches those alerts.

Example: 2026-06-01T12:00:00.000Z
createdAtstring · date-timeRead-onlyRequired

When the alert was created.

Example: 2026-05-01T10:00:00.000Z
lastModifiedstring · date-timeRead-onlyRequired

When the alert was last updated.

Example: 2026-05-15T14:30:00.000Z
get/v1/alerts/{_id}
GET /v1/alerts/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "_id": "674a1b2c3d4e5f6789012345",
  "type": "long-runtime",
  "_userId": "624cb0346309dc3a543733a2",
  "_integrationId": "5e5eb06fdd83ed4f8206a4ea",
  "_flowId": "69497fc443fc1f9a03d31bd9",
  "longRuntime": {
    "thresholdMinutes": 30
  },
  "_recipientUserIds": [
    "624cb0346309dc3a543733a2"
  ],
  "createdAt": "2026-05-01T10:00:00.000Z",
  "lastModified": "2026-05-01T10:00:00.000Z"
}

Update an alert

put
/v1/alerts/{_id}

Replace-all update of threshold and recipients. type, _flowId, and _integrationId are immutable. Resolves _recipientEmails the same way as create, then dual-writes the updated threshold to related flow(s).

Requires permission put:alert:models. Returns 403 when ENABLE_PROACTIVE_ALERTS is off. Response is always unpopulated.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
_idstring · objectIdRequired

Alert id.

Example: 674a1b2c3d4e5f6789012345
Body

Replace-all update for an alert. type, _flowId, and _integrationId are immutable and ignored if sent. Recipients are replace-all via _recipientEmails (same resolution/invite behavior as create).

_recipientEmailsstring · email[] · min: 1 · max: 50Required

Full replacement recipient email list. Trimmed, lowercased, and deduplicated server-side. Must contain at least one address.

Responses
200

Updated alert (unpopulated ObjectIds).

application/json

Proactive alert configuration. Soft-deleted alerts are omitted from list and get responses. With populate=true on GET, _flowId and _integrationId stay ObjectId strings and the flow / integration enrichment objects are added alongside them; _recipientUserIds entries become { _id, name, email }. POST and PUT always return the unpopulated shape.

_idstring · objectIdRead-onlyRequired

Unique identifier for the alert.

Example: 674a1b2c3d4e5f6789012345
typestring · enumRequired

Alert type.

Example: long-runtimePossible values:
_userIdstring · objectIdRead-onlyRequired

Account owner user id for the alert.

Example: 624cb0346309dc3a543733a2
_integrationIdstring · objectIdRequired

Integration the alert belongs to. Always an ObjectId string. With populate=true on an integration-level alert, a sibling integration object { flowCount } is added; this id is not replaced.

Example: 5e5eb06fdd83ed4f8206a4ea
_flowIdstring · objectIdOptional

Flow for a flow-level alert; omitted on integration-level alerts. Always an ObjectId string — with populate=true the display fields arrive in the sibling flow object instead of replacing this value.

Example: 69497fc443fc1f9a03d31bd9
lastTriggeredAtstring · date-timeRead-onlyOptional

Timestamp when the alert last fired. Absent until the alert first fires; the list's lastTriggeredAt=never filter matches those alerts.

Example: 2026-06-01T12:00:00.000Z
createdAtstring · date-timeRead-onlyRequired

When the alert was created.

Example: 2026-05-01T10:00:00.000Z
lastModifiedstring · date-timeRead-onlyRequired

When the alert was last updated.

Example: 2026-05-15T14:30:00.000Z
put/v1/alerts/{_id}
PUT /v1/alerts/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 97

{
  "longRuntime": {
    "thresholdMinutes": 45
  },
  "_recipientEmails": [
    "ops@example.com",
    "jane@example.com"
  ]
}
{
  "_id": "674a1b2c3d4e5f6789012345",
  "type": "long-runtime",
  "_userId": "624cb0346309dc3a543733a2",
  "_integrationId": "5e5eb06fdd83ed4f8206a4ea",
  "_flowId": "69497fc443fc1f9a03d31bd9",
  "longRuntime": {
    "thresholdMinutes": 45
  },
  "_recipientUserIds": [
    "624cb0346309dc3a543733a2",
    "6356f24327114d57ab843e1f"
  ],
  "createdAt": "2026-05-01T10:00:00.000Z",
  "lastModified": "2026-05-15T14:30:00.000Z"
}

Delete an alert

delete
/v1/alerts/{_id}

Soft-deletes an alert and clears __longRuntimeThresholdMinutes on the related flow document(s), which moves each flow's lastModified. A deleted alert reads 404 and has no recycle-bin entry. Requires permission put:alert:models. Returns 403 when ENABLE_PROACTIVE_ALERTS is off.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
_idstring · objectIdRequired

Alert id.

Example: 674a1b2c3d4e5f6789012345
Responses
204

Alert soft-deleted.

No content

delete/v1/alerts/{_id}
DELETE /v1/alerts/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get audit log for an alert

get
/v1/alerts/{_id}/audit

Returns the change history for an alert. Each entry records a mutation event with who made the change, when, and which fields were affected.

Requires permission to read the alert (get:alert:model). Returns 403 when ENABLE_PROACTIVE_ALERTS is off or the caller lacks access.

The history stays readable after the alert is deleted, even though the alert itself then reads 404. The same entries also appear in the integration's audit log (GET /v1/integrations/{_id}/audit).

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
_idstring · objectIdRequired

Alert ID.

Example: 674a1b2c3d4e5f6789012345
Query parameters
limitinteger · min: 1 · max: 1000Optional

Maximum number of audit entries to return per page.

Default: 1000Example: 100
afterstringOptional

Opaque pagination cursor for the next page. Take it from the after value in the Link response header's rel="next" URL rather than constructing it.

Example: W3siJGRhdGUiOiIyMDI2LTA1LTAxVDAwOjAwOjAwLjAwMFoifSwiNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIl0
fromstring · date-timeOptional

Only return entries at or after this timestamp. On a platform license, leaving it out limits the range to the year before to (or the last year when to is omitted too), and a value older than the audit window — the license's auditLogRetentionYears — starts the range at the window's edge instead of failing. A future value fails with 422 invalid_time_period.

Example: 2026-05-01T00:00:00.000Z
tostring · date-timeOptional

Only return entries at or before this timestamp. A future value, or one older than the account's audit window, fails with 422 invalid_time_period; the message names the window in years (the license's auditLogRetentionYears on a platform license). A value earlier than from fails with 422 invalid_time_range.

Example: 2026-05-31T23:59:59.999Z
Responses
200

Audit entries for the alert.

application/json
get/v1/alerts/{_id}/audit
GET /v1/alerts/{_id}/audit HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "_id": "69e38cb1a749d34a9732a270",
    "resourceType": "alert",
    "_resourceId": "674a1b2c3d4e5f6789012345",
    "resourceName": "Long runtime - All flows (Shopify to NetSuite)",
    "source": "api",
    "event": "update",
    "time": "2026-04-18T13:52:49.729Z",
    "byUser": {
      "_id": "624cb0346309dc3a543733a2",
      "email": "user@example.com",
      "name": "Jane Doe"
    },
    "fieldChanges": [
      {
        "fieldPath": "longRuntime",
        "oldValue": {
          "thresholdMinutes": 30
        },
        "newValue": {
          "thresholdMinutes": 45
        }
      }
    ]
  }
]

Last updated

Was this helpful?