POST
/
inference
/
v0
/
run
/
{org_id}
/
{flow_id}
import requests
import json

url = "https://api.stack-ai.com/inference/v0/run/{org_id}/{flow_id}"
headers = {
"Authorization": "Bearer <your-public-key>",
"Content-Type": "application/json"
}
data = json.dumps({"in-0": "message", "user_id": "conversation identifier"})

response = requests.post(url, headers=headers, data=data)

print(response.json())

"<any>"
import requests
import json

url = "https://api.stack-ai.com/inference/v0/run/{org_id}/{flow_id}"
headers = {
"Authorization": "Bearer <your-public-key>",
"Content-Type": "application/json"
}
data = json.dumps({"in-0": "message", "user_id": "conversation identifier"})

response = requests.post(url, headers=headers, data=data)

print(response.json())

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

org_id
string
required
flow_id
string
required

The flow ID. Learn how to get it.

Query Parameters

version
integer
default:
-1

Version of the flow

verbose
boolean
default:
true

Return the full model

Body

application/json · object

Input parameters for the flow

Response

200
application/json
Successful Response

The response is of type any.