Skip to main content
POST
/
compute
/
functions
/
{collection_topic}
/
{function_topic}
/
invoke
Invoke a function
curl --request POST \
  --url https://api.quiva.ai/compute/functions/{collection_topic}/{function_topic}/invoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payload": "{\"name\":\"World\"}",
  "invocation_type": "RequestResponse"
}
'
{
  "body": "{\"message\":\"Hello, World!\"}"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

collection_topic
string
required

Collection topic identifier

function_topic
string
required

Function topic identifier

Body

application/json

Function invocation parameters

payload
string
required

Function invocation payload (JSON string)

invocation_type
enum<string>
required

Type of invocation (Async for background processing, RequestResponse for immediate response)

Available options:
Async,
RequestResponse

Response

Function invoked successfully

body
string

Response from function invocation