List Functions

Hand off to an LLM

List functions in the current environment.

Returns each function's current version. Combine filters freely — they AND together.

Filtering

  • functionIDs / functionNames: exact-match identity filters.
  • displayName: case-insensitive substring match.
  • types: one or more of extract, classify, split, join, enrich, payload_shaping. Legacy transform, analyze, route, and send types remain readable via this filter.
  • tags: returns functions tagged with any of the supplied tags.
  • workflowIDs / workflowNames: returns only functions referenced by the named workflows. Useful for "what functions does this workflow depend on?" lookups.

Pagination

Cursor-based with startingAfter and endingBefore (functionIDs). Default limit 50, maximum 100.

GET
/v3/functions
x-api-key<token>

Authenticate using API Key in request header

In: header

Query Parameters

limit?integer
Default50
Range1 <= value <= 100
functionIDs?array<>
Items1 <= items
functionNames?array<>
Items1 <= items
displayName?string
types?array<>
Items1 <= items
sortOrder?string
Default"asc"
Value in"asc" | "desc"
startingAfter?string
endingBefore?string
tags?array<>
Items1 <= items
workflowIDs?array<>
Items1 <= items
workflowNames?array<>
Items1 <= items

Response Body

application/json

curl -X GET "https://api.bem.ai/v3/functions"
{
  "functions": [
    {
      "functionID": "string",
      "functionName": "string",
      "versionNum": 0,
      "usedInWorkflows": [
        {
          "workflowID": "string",
          "workflowName": "string",
          "currentVersionNum": 0,
          "usedInWorkflowVersionNums": [
            0
          ]
        }
      ],
      "displayName": "string",
      "tags": [
        "string"
      ],
      "audit": {
        "functionCreatedBy": {
          "userActionID": "string",
          "userID": "string",
          "userEmail": "string",
          "apiKeyName": "string",
          "emailAddress": "string",
          "createdAt": "2019-08-24T14:15:22Z"
        },
        "functionLastUpdatedBy": {
          "userActionID": "string",
          "userID": "string",
          "userEmail": "string",
          "apiKeyName": "string",
          "emailAddress": "string",
          "createdAt": "2019-08-24T14:15:22Z"
        },
        "versionCreatedBy": {
          "userActionID": "string",
          "userID": "string",
          "userEmail": "string",
          "apiKeyName": "string",
          "emailAddress": "string",
          "createdAt": "2019-08-24T14:15:22Z"
        }
      },
      "type": "transform",
      "outputSchemaName": "string",
      "outputSchema": {},
      "emailAddress": "string",
      "tabularChunkingEnabled": true
    }
  ],
  "totalCount": 0
}

See also