POST
/
v1
/
runnables
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "config_content": "<string>",
  "config_content_parsed": {
    "name": "<string>",
    "description": "<string>",
    "type": "prompt",
    "llms": [
      {
        "name": "<string>",
        "is_default": true,
        "provider": "openai",
        "model": "<string>",
        "params": {}
      }
    ],
    "inputs": [
      {
        "name": "<string>",
        "description": "<string>",
        "type": "text",
        "mime_types": [
          "<string>"
        ],
        "transforms": [
          {
            "name": "<string>",
            "type": "ocr",
            "provider": "<string>"
          }
        ],
        "required": true,
        "metadata": {
          "schema": {},
          "required": true
        }
      }
    ],
    "schemas": {},
    "prompt": {
      "system": "<string>",
      "messages": [
        {
          "role": "user",
          "content": "<string>"
        }
      ]
    }
  },
  "config_content_type": "prompt",
  "config_content_sha256": "<string>",
  "created_by": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "tags": [
    "<string>"
  ]
}
Create a new runnable with the specified configuration. The runnable can be a prompt, flow, or agent. The config_content_parsed field must match the schema for the specified config_content_type:
  • For prompt type: Must follow the PromptRunnable schema
  • For flow type: Must follow the FlowRunnable schema
  • For agent type: Must follow the AgentRunnable schema
The config_content_sha256 field should be the SHA-256 hash of the config_content field.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201 - application/json

Created runnable

The response is of type object.