Function calls

Call a Function

POST
/v2/functions/{functionName}/call
x-api-key<token>

Authenticate using API Key in request header

In: header

Path Parameters

functionName*string
arguments*

Array of function-specific call arguments

Response Body

application/json

curl -X POST "https://api.bem.ai/v2/functions/string/call" \  -H "Content-Type: application/json" \  -d '{    "arguments": [      {        "referenceID": "string",        "inputType": "csv",        "inputContent": "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"
        }
      ]
    }
  ]
}