Skip to main content
POST
/
{id}
curl --request POST \
--url https://runchat.app/api/v1/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"runchat_instance_id": "existing-instance-uuid",
"inputs": {
"prompt_xyz123": "Generate a story about a robot.",
"maxTokens_abc456": [
100
]
}
}'
{
  "metadata": "<string>",
  "runchat_instance_id": "<string>",
  "data": [
    {
      "id": "<string>",
      "label": "<string>",
      "type": "string",
      "description": "<string>",
      "data": [
        {}
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication using Runchat API key. API keys can be created from the account menu

Path Parameters

runchat_id
string
required

The unique identifier for the Runchat flow.

Body

application/json

Input data for the Runchat execution. Provide runchat_instance_id to continue an existing execution. The inputs object structure should match the parameters defined in the Runchat API schema, keyed by paramId_nodeId. Alternatively, send raw data for webhook-triggered flows.

Request body for executing a Runchat flow.

runchat_instance_id
string

Optional identifier to continue an existing Runchat instance.

inputs
object

Object containing input data keyed by 'paramId_nodeId'. Values can be primitive types, arrays, or structured objects for tree/list inputs (e.g., {"0": [...], "0:1": [...]}).

Response

Successful execution of the Runchat flow.

metadata
string<json>

Stringified JSON containing execution metadata.

runchat_instance_id
string

The unique identifier for the Runchat instance to be used. If omitted a new instance will be created.

data
object[]

Array of output data from the executed nodes.

I