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

Admin / Functions V2

List trashed Functions of a team

get
/admin/functions/v2/trash

Lists the team's Functions V2 that were deleted less than 30 days ago and can still be restored, newest deletion first. Requires the scenario view admin permission.

Deleting a Function moves it to trash: it is switched off, its in-flight Runs are cancelled, and the Function, its versions and its Runs disappear from every non-admin route. After 30 days a background job deletes them permanently, and they no longer appear here.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Query parameters
teamIdinteger · int32 · min: 1Required

Team that owns the Function collection.

Example: 42
Responses
200

Trashed Functions of the team that can still be restored.

application/json
get/admin/functions/v2/trash
GET /api/v2/admin/functions/v2/trash?teamId=1 HTTP/1.1
Host: eu1.make.com
Authorization: Token your-api-token
Accept: */*
{
  "functions": [
    {
      "id": 741,
      "teamId": 42,
      "name": "normalizeInvoices",
      "description": "Normalizes invoice records.",
      "active": false,
      "latestVersion": {
        "version": 3,
        "inputSchema": {},
        "outputSchema": {},
        "connections": {
          "crm": 22019
        },
        "endpoints": [
          {
            "alias": "Get customer",
            "appName": "salesforce",
            "appVersion": 4,
            "endpointName": "getCustomer",
            "connectionKey": "crm"
          }
        ],
        "createdAt": "2026-09-20T10:30:00.000Z"
      },
      "createdAt": "2026-09-18T09:00:00.000Z",
      "updatedAt": "2026-09-22T08:00:00.000Z",
      "ownerUserId": 1001,
      "deletedAt": "2026-09-22T08:00:00.000Z"
    }
  ]
}

Restore a trashed Function

post
/admin/functions/v2/{functionId}/restore

Restores a Function V2 deleted less than 30 days ago, together with its versions and Runs. Requires the scenario edit admin permission. The request has no body.

The restored Function is switched off; its owner must switch it on before published versions accept Runs again. Runs cancelled by the deletion stay cancelled. Restoring a Function that is not in trash returns it unchanged. Returns 404 when the Function does not exist or was deleted 30 or more days ago.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
functionIdinteger · int32 · min: 1Required

Function identifier. Functions Control resolves its owning Team and performs authoritative Team and resource authorization for this Function and every nested resource.

Example: 741
Responses
200

The restored Function, switched off.

application/json
post/admin/functions/v2/{functionId}/restore
POST /api/v2/admin/functions/v2/{functionId}/restore HTTP/1.1
Host: eu1.make.com
Authorization: Token your-api-token
Accept: */*
{
  "function": {
    "id": 741,
    "teamId": 42,
    "name": "normalizeInvoices",
    "description": "Normalizes invoice records.",
    "active": false,
    "latestVersion": {
      "version": 3,
      "inputSchema": {},
      "outputSchema": {},
      "connections": {
        "crm": 22019
      },
      "endpoints": [
        {
          "alias": "Get customer",
          "appName": "salesforce",
          "appVersion": 4,
          "endpointName": "getCustomer",
          "connectionKey": "crm"
        }
      ],
      "createdAt": "2026-09-20T10:30:00.000Z"
    },
    "createdAt": "2026-09-18T09:00:00.000Z",
    "updatedAt": "2026-09-23T09:10:00.000Z"
  }
}

Last updated