Run Flow
Gets the logged metadata of a run.
The flow ID. Learn how to get it.
Run ID of the flow
Successful Response
Validation Error
GET /inference/v0/run/{org_id}/{flow_id}/metadata HTTP/1.1
Host: api.stack-ai.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}Run a flow and get the result.
The flow ID. Learn how to get it.
Version of the flow
-1Return the full model
trueInput parameters for the flow
Successful Response
Validation Error
POST /inference/v0/run/{org_id}/{flow_id} HTTP/1.1
Host: api.stack-ai.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}No content
Run a flow and get the result streamed while the flow is running.
The flow ID. Learn how to get it.
Version of the flow. -1 for the latest published version.
-1Add a prefix to the output
falseStream deltas instead of full output
trueUse server sent events instead of streaming response
falseReturn the full model
trueRun the draft version of the flow instead of the published one.
falseInput parameters for the flow
Successful Response
Validation Error
POST /inference/v0/stream/{org_id}/{flow_id} HTTP/1.1
Host: api.stack-ai.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}No content
Run a flow and get the result streamed while the flow is running.
Version of the flow. -1 for the latest published version.
-1Add a prefix to the output
falseStream deltas instead of full output
trueUse server sent events instead of streaming response
falseReturn the full model
trueRun the draft version of the flow instead of the published one.
falseInput parameters for the flow
Successful Response
Validation Error
POST /inference/v0/sso/stream/{org_id}/{flow_id} HTTP/1.1
Host: api.stack-ai.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}No content
Send a feedback message for a given run.
The flow ID. Learn how to get it.
Input parameters: feedback, inputs, outputs
Successful Response
Validation Error
POST /inference/v0/feedback/{org_id}/{flow_id} HTTP/1.1
Host: api.stack-ai.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"run_id": "text",
"feedback": "text"
}{
"ANY_ADDITIONAL_PROPERTY": 1
}Last updated
Was this helpful?

