Calls

List Calls

Retrieve a list of workflow and function calls with filtering options.

Use this endpoint to:

  • Monitor the status of submitted calls
  • Search for calls by reference ID, workflow, or function
  • Paginate through large result sets

Filtering Options

Filter calls using any combination of:

  • callIDs: Specific call identifiers
  • referenceIDs: Your custom reference IDs (set via callReferenceID)
  • callTypes: Filter by call type
  • workflowIDs / workflowNames: Filter by workflow
  • functionIDs / functionNames: Filter by function

Pagination

Results are paginated with a default limit of 50. Use startingAfter and endingBefore cursors for efficient pagination through large result sets.

GET
/v2/calls
x-api-key<token>

Authenticate using API Key in request header

In: header

Query Parameters

limit?integer
Default50
Range1 <= value <= 100
callIDs?array<>
Items1 <= items
callTypes?array<>
Items1 <= items
workflowIDs?array<>
Items1 <= items
workflowNames?array<>
Items1 <= items
functionIDs?array<>
Items1 <= items
functionNames?array<>
Items1 <= items
referenceIDs?array<>
Items1 <= items
referenceIDSubstring?string

Used for search over referenceIDs of calls. Will perform case-insensitive substring matching.

sortOrder?string
Default"asc"
Value in"asc" | "desc"
startingAfter?string
endingBefore?string

Response Body

application/json

curl -X GET "https://api.bem.ai/v2/calls"
{
  "calls": [
    {
      "callID": "string",
      "callType": "string",
      "status": "pending",
      "createdAt": "2019-08-24T14:15:22Z",
      "finishedAt": "2019-08-24T14:15:22Z",
      "workflowID": "string",
      "workflowName": "string",
      "workflowVersionNum": 0,
      "functionID": "string",
      "functionName": "string",
      "functionType": "string",
      "functionVersionNum": 0,
      "callReferenceID": "string",
      "functionCalls": [
        {
          "functionCallID": "string",
          "functionID": "string",
          "functionName": "string",
          "type": "transform",
          "referenceID": "string",
          "status": "pending",
          "functionVersionNum": 0,
          "activity": [
            {
              "displayName": "string",
              "status": "pending"
            }
          ],
          "sourceFunctionCallID": "string",
          "workflowCallID": "string",
          "inputType": "string",
          "s3URL": "string",
          "inputs": [
            {
              "inputType": "string",
              "itemReferenceID": "string",
              "s3URL": "string"
            }
          ]
        }
      ],
      "input": {
        "singleFile": {
          "inputType": "string",
          "s3URL": "string"
        },
        "batchFiles": {
          "inputs": [
            {
              "inputType": "string",
              "itemReferenceID": "string",
              "s3URL": "string"
            }
          ]
        }
      }
    }
  ],
  "totalCount": 0,
  "error": "string"
}