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

Stacks

Stacks are execution environments that run custom extension code for integrations. Two types are supported: server (self-hosted) and lambda (AWS Lambda).

Stack schema

List stacks

get
/v1/stacks

Returns all stacks configured in the account.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
limitinteger · min: 1 · max: 1000Optional

Maximum number of stacks to return per page.

Default: 1000Example: 100
includestringOptional

Comma-separated list of fields to project into each returned record. Triggers summary projection: the response contains a minimal identity set (_id, name, plus resource-specific fields) with the requested fields added on top. Supports dot notation for nested fields. Mutually exclusive with exclude.

Example: _integrationId,disabled,lastModified
excludestringOptional

Comma-separated list of fields to strip from the default response. Unlike include, does not trigger summary projection — returns the full record with the named fields removed. Protected identity fields (e.g. name) cannot be stripped. Mutually exclusive with include.

Example: createdAt,lastModified
Responses
200

Array of stack objects.

application/json
get/v1/stacks
GET /v1/stacks HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "_id": "62100ec7abb76c310718b0f0",
    "name": "Realtime-ify Stack",
    "type": "server",
    "lastModified": "2022-02-18T21:25:27.903Z",
    "createdAt": "2022-02-18T21:25:27.864Z",
    "server": {
      "systemToken": "******",
      "hostURI": "https://my-stack-server.example.com:3000"
    }
  },
  {
    "_id": "62b4e242bffb3066e9e0a80d",
    "name": "Order Processing Lambda",
    "type": "lambda",
    "lastModified": "2025-08-10T14:22:33.000Z",
    "createdAt": "2022-06-23T21:59:30.448Z",
    "lambda": {
      "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
      "secretAccessKey": "******",
      "awsRegion": "us-east-1",
      "functionName": "processOrders",
      "language": "Node.js"
    }
  }
]

Create a stack

post
/v1/stacks

Creates a new stack. For server stacks, retrieve the system token after creation via GET /v1/stacks/{_id}/systemToken.

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

Request body for creating or updating a stack.

namestring · max: 1024Required

Human-readable display name for the stack.

Example: Production Server Stack
typestring · enumRequired

Execution environment type.

Example: serverPossible values:
frameworkstring · enumOptional

Framework version. Currently only twoDotZero is supported. Optional — if omitted on create, the field is absent from the response. If omitted on PUT, a previously set value is cleared.

Example: twoDotZeroPossible values:
Responses
201

Created stack.

application/json

Stack resource as returned by the API.

_idstring · objectIdRead-onlyRequired

Unique identifier for the stack.

Example: 62100ec7abb76c310718b0f0
namestring · max: 1024Required

Human-readable display name for the stack.

Example: Production Server Stack
typestring · enumRequired

Execution environment type that determines which configuration block is present.

Possible values:
frameworkstring · enumOptional

Framework version. Currently only twoDotZero is supported.

Possible values:
createdAtstring · date-timeRead-onlyRequired

Timestamp when the stack was created.

Example: 2022-02-18T21:25:27.864Z
lastModifiedstring · date-timeRead-onlyRequired

Timestamp when the stack was last modified.

Example: 2022-02-18T21:25:27.903Z
post/v1/stacks
POST /v1/stacks HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 114

{
  "name": "Production Server Stack",
  "type": "server",
  "server": {
    "hostURI": "https://my-stack-server.example.com:3000"
  }
}
{
  "_id": "673e35899096693f4572c83c",
  "name": "Production Server Stack",
  "type": "server",
  "lastModified": "2024-11-20T19:16:25.412Z",
  "createdAt": "2024-11-20T19:16:25.412Z",
  "server": {
    "systemToken": "******",
    "hostURI": "https://my-stack-server.example.com:3000"
  }
}

Get a stack

get
/v1/stacks/{_id}

Returns a single stack by ID.

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

Stack ID.

Responses
200

Stack object.

application/json

Stack resource as returned by the API.

_idstring · objectIdRead-onlyRequired

Unique identifier for the stack.

Example: 62100ec7abb76c310718b0f0
namestring · max: 1024Required

Human-readable display name for the stack.

Example: Production Server Stack
typestring · enumRequired

Execution environment type that determines which configuration block is present.

Possible values:
frameworkstring · enumOptional

Framework version. Currently only twoDotZero is supported.

Possible values:
createdAtstring · date-timeRead-onlyRequired

Timestamp when the stack was created.

Example: 2022-02-18T21:25:27.864Z
lastModifiedstring · date-timeRead-onlyRequired

Timestamp when the stack was last modified.

Example: 2022-02-18T21:25:27.903Z
get/v1/stacks/{_id}
GET /v1/stacks/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "_id": "62100ec7abb76c310718b0f0",
  "name": "Realtime-ify Stack",
  "type": "server",
  "lastModified": "2022-02-18T21:25:27.903Z",
  "createdAt": "2022-02-18T21:25:27.864Z",
  "server": {
    "systemToken": "******",
    "hostURI": "https://my-stack-server.example.com:3000"
  }
}

Update a stack

put
/v1/stacks/{_id}

Updates a stack. Omitting the config object clears optional fields like framework. To rotate a server stack's system token, use DELETE /v1/stacks/{_id}/systemToken instead.

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

Stack ID.

Body

Request body for creating or updating a stack.

namestring · max: 1024Required

Human-readable display name for the stack.

Example: Production Server Stack
typestring · enumRequired

Execution environment type.

Example: serverPossible values:
frameworkstring · enumOptional

Framework version. Currently only twoDotZero is supported. Optional — if omitted on create, the field is absent from the response. If omitted on PUT, a previously set value is cleared.

Example: twoDotZeroPossible values:
Responses
200

Updated stack.

application/json

Stack resource as returned by the API.

_idstring · objectIdRead-onlyRequired

Unique identifier for the stack.

Example: 62100ec7abb76c310718b0f0
namestring · max: 1024Required

Human-readable display name for the stack.

Example: Production Server Stack
typestring · enumRequired

Execution environment type that determines which configuration block is present.

Possible values:
frameworkstring · enumOptional

Framework version. Currently only twoDotZero is supported.

Possible values:
createdAtstring · date-timeRead-onlyRequired

Timestamp when the stack was created.

Example: 2022-02-18T21:25:27.864Z
lastModifiedstring · date-timeRead-onlyRequired

Timestamp when the stack was last modified.

Example: 2022-02-18T21:25:27.903Z
put/v1/stacks/{_id}
PUT /v1/stacks/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 114

{
  "name": "Production Server Stack",
  "type": "server",
  "server": {
    "hostURI": "https://my-stack-server.example.com:3000"
  }
}
{
  "_id": "62100ec7abb76c310718b0f0",
  "name": "Production Server Stack",
  "type": "server",
  "lastModified": "2025-09-04T08:17:42.901Z",
  "createdAt": "2022-02-18T21:25:27.864Z",
  "server": {
    "systemToken": "******",
    "hostURI": "https://my-stack-server.example.com:3000"
  }
}

Delete a stack

delete
/v1/stacks/{_id}

Deletes a stack. Soft-deleted and retained in the recycle bin for 30 days.

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

Stack ID.

Responses
204

Stack deleted.

No content

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

No content

Get stack system token (server stacks only)

get
/v1/stacks/{_id}/systemToken

Returns the unmasked system token for a server stack.

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

Stack ID.

Responses
200

System token object.

application/json

Response containing the actual system token value for a server stack.

systemTokenstringOptional

The actual system token value for authenticating with the server stack.

Example: a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6
get/v1/stacks/{_id}/systemToken
GET /v1/stacks/{_id}/systemToken HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "systemToken": "465f5c448f434bc5ae3753bc83d96feb"
}

Recycle stack system token (server stacks only)

delete
/v1/stacks/{_id}/systemToken

Rotates (recycles) the server stack's system token. The old token is immediately invalidated. Retrieve the new token via GET /v1/stacks/{_id}/systemToken.

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

Stack ID.

Responses
204

Token recycled.

No content

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

No content

Get audit log for a stack

get
/v1/stacks/{_id}/audit

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

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

Stack ID.

Example: 62b4e242bffb3066e9e0a80d
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.

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

Only return entries at or before this timestamp.

Example: 2026-05-31T23:59:59.999Z
actionstring · enumOptional

Filter by the change type. Maps to the event field on each entry.

Example: updatePossible values:
sourcestring · enumOptional

Filter by how the change was initiated.

Example: uiPossible values:
_byUserIdstring · objectIdOptional

Filter to changes performed by a single user.

Example: 624cb0346309dc3a543733a2
Responses
200

Array of audit entries, newest first.

application/json
get/v1/stacks/{_id}/audit
GET /v1/stacks/{_id}/audit HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "_id": "69f63dd77009ea11abf0bce3",
    "resourceType": "stack",
    "_resourceId": "62b4e242bffb3066e9e0a80d",
    "source": "api",
    "event": "update",
    "time": "2026-05-02T18:09:26.975Z",
    "byUser": {
      "_id": "624cb0346309dc3a543733a2",
      "email": "user@example.com",
      "name": "Tyler Lamparter"
    },
    "fieldChanges": [
      {
        "fieldPath": "name",
        "oldValue": "AWS test",
        "newValue": "AWS"
      }
    ]
  }
]

List dependencies of a stack

get
/v1/stacks/{_id}/dependencies

Returns the set of resources that depend on the specified stack.

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

Stack ID.

Responses
200

Dependency map. Keys are resource-type strings; values are arrays of dependency entries. Returns {} when no dependents exist.

application/json

Map of dependent-resource types to arrays of dependency entries. Keys are plural resource type strings (e.g. flows, imports, connections). An empty object {} means no dependents.

get/v1/stacks/{_id}/dependencies
GET /v1/stacks/{_id}/dependencies HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "connections": [
    {
      "id": "673f806d0f9d0c860dcfab1e",
      "name": "Wrapper Connection",
      "paths": [
        "wrapper._stackId"
      ],
      "accessLevel": "manage",
      "dependencyIds": {
        "stack": [
          "673e35899096693f4572c83c"
        ]
      }
    }
  ],
  "flows": [
    {
      "id": "673e486ac12b3453ea0ba99a",
      "name": "Login flow",
      "paths": [
        "pageGenerators[*]._exportId"
      ],
      "accessLevel": "manage",
      "dependencyIds": {
        "export": [
          "673e486adc497ab5e649f1ca"
        ]
      }
    }
  ]
}

Last updated

Was this helpful?