Making Curl Requests


After deploying a Callable, Cortex provides the direct curl request to send inputs to.

curl -L[pID]/a/[aID]/r \
    -H "Authorization: Bearer $CORTEX_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "version": 1,
      "config": {
      "blocking": true,
      "inputs": [{ "Key": "Value" }]

By providing a specified key and value pairs into the input, the HTTP response will contain a json with the corresponding output from the callable.

Request body


version (Required)

(integer | 'latest') specify which version of the callable you want to run

config (Required)

(object) configures the callable blocks

inputs (Required)

(array) array of key and value pairs that will be sent to the callable


Example curl request

curl -L[pID]/knowledge/[knowledgeName]/d/[docID] \
    -H "Authorization: Bearer $CORTEX_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      β€œtext”: β€œvalue”

Request body

  • text (string)

    • the document text

Last updated