Launch Pipeline Run
POST
/v1/runs
const url = 'https://junction-api.qualiastudios.dev/v1/runs';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"pipeline_template_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","project_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","values":{},"name":"example","max_cost":1,"sample_cap":1,"idempotency_key":"example","quote_digest":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://junction-api.qualiastudios.dev/v1/runs \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "pipeline_template_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "values": {}, "name": "example", "max_cost": 1, "sample_cap": 1, "idempotency_key": "example", "quote_digest": "example" }'Launch any launchable template with flat values for its exposed ports.
A template billed per run reserves its whole bound before it starts and
needs max_cost; POST /v1/runs/estimate gives the bound first.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
RunSubmitRequest
object
pipeline_template_id
required
string format: uuid
project_id
required
string format: uuid
values
object
key
additional properties
any
name
string | null
max_cost
integer | null
sample_cap
integer | null
idempotency_key
string | null
quote_digest
string | null
Example generated
{ "pipeline_template_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "values": {}, "name": "example", "max_cost": 1, "sample_cap": 1, "idempotency_key": "example", "quote_digest": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
RunSubmitResponse
object
job_id
required
string
status
required
string
message
required
string
audience
string
Example
{ "audience": "internal"}Values violate the template contract
Media type application/json
ErrorResponse
Standard error response.
object
detail
required
Error message describing what went wrong
string
Example generated
{ "detail": "example"}Invalid or missing API key
Media type application/json
ErrorResponse
Standard error response.
object
detail
required
Error message describing what went wrong
string
Example generated
{ "detail": "example"}The account cannot cover the run’s bound
Missing capability on the workspace
Media type application/json
ErrorResponse
Standard error response.
object
detail
required
Error message describing what went wrong
string
Example generated
{ "detail": "example"}Stale quote, or an idempotency key reused
Validation error, or the run’s bound is over max_cost