Skip to main content
POST
/
function-apps
/
{functionExternalId}
/
calls
Call Function Endpoint
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/function-apps/{functionExternalId}/calls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "path": "<string>",
    "method": "<string>",
    "body": {}
  },
  "nonce": "<string>"
}
'
{
  "callId": 123456,
  "functionId": 789,
  "runtimeStatus": "Completed",
  "response": {
    "status_code": 200,
    "data": {
      "id": "item-123",
      "name": "Example item",
      "created_at": "2026-03-22T12:00:00Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Headers

prefer
string

Prefer header for async execution (RFC 7240). Set to respond-async to receive HTTP 202 with a Location header for polling.

Path Parameters

functionExternalId
string
required

Function external ID

Body

application/json
data
object
required
nonce
string
required

Session nonce from the Sessions API.

Response

Successful Response

The response contains the function call result envelope. runtimeStatus indicates the outcome: Completed, Failed, or Timeout. The response field is present only for Completed calls.

callId
integer
required

ID of the call, for log correlation.

functionId
integer
required

ID of the function that was called.

runtimeStatus
enum<string>
required

Cognite Functions platform status. Running is not returned for synchronous calls.

Available options:
Completed,
Failed,
Timeout
response
object

Function response envelope, present only when runtimeStatus is Completed.

error
object

Cognite API error, present when the response fetch returns 400.

Last modified on April 23, 2026