Runs a given preview blueprint with given arguments. This endpoint can be used as part of a CI pipeline to automatically create a preview environment.
Required permission
Project > PreviewBlueprints > Runs > Start
Path parameters
projectId
string requiredID of the projectpreviewBlueprintId
string requiredID of the preview blueprint
Request body
- {object}
name
stringThe optional name of the preview blueprint run.min length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$description
stringThe optional description of the preview blueprint run.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$arguments
{object}A set of arguments that can be referenced in a template using '${args.argumentName}'.triggers
{object}Values passed in as blueprint triggers. This should be an object where each key corresponds to a trigger ref in the template. The values of each of these keys should also be an object, where each key value pair provided will set the value for that key in the given trigger. For example, the value `{ 'example-trigger': { 'branch': 'devel' } }` would set the `branch` field to `devel` for the trigger with ref `example-trigger`.
Response body
- {object}Response object.
data
{object} requiredResult data.name
stringOptional name of the run.description
stringOptional description of the run.apiVersion
stringTemplate API version.spec
(multiple options: anyOf)project
{object}ref
stringskipNodeExecution
(multiple options: anyOf)- boolean
- stringone oftrue, false
detailsHidden
boolean requiredkind
string requiredspec
{object} requiredresponse
{object}status
stringstartTime
numberendTime
numberduration
numberattempts
numberdata
{object}id
stringname
string_id
string_id
stringid
stringinternalId
stringtype
stringname
stringpipelineId
stringstatus
string requiredStatus of the template runone ofpending, running, success, failure, aborted, aborting, queued, unknown, skipped, waiting, retrying, async_wait, approval_waitconcluded
boolean requiredWhether execution has concluded.startedAt
stringWhen execution started.concludedAt
stringWhen execution concluded.createdAt
string requiredWhen the run was created.updatedAt
string requiredWhen the run was last updated.detailsHidden
boolean requiredRun details include available public results. Sensitive inputs and results are omitted._id
stringinternalId
stringentityId
stringentityType
stringprojectId
stringpipelineId
stringuserId
stringenvironmentName
stringexpiresAt
stringdeleted
booleanphase
stringtemplateVersionSha
stringcommitSHA
stringhasDiff
booleancontent
{object}name
stringdescription
stringapiVersion
stringspec
(multiple options: anyOf)project
{object}ref
stringskipNodeExecution
(multiple options: anyOf)- boolean
- stringone oftrue, false
detailsHidden
boolean requiredkind
string requiredspec
{object} requiredresponse
{object}status
stringstartTime
numberendTime
numberduration
numberattempts
numberdata
{object}id
stringname
string_id
string_id
stringid
stringinternalId
stringtype
stringname
stringpipelineId
stringtemplate
{object}_id
stringid
string requiredinternalId
stringtype
stringname
stringpipelineId
stringpipeline
{object}_id
stringid
string requiredinternalId
stringtype
stringname
stringpipelineId
stringstage
stringrun
{object}_id
stringid
string requiredinternalId
stringtype
stringname
stringpipelineId
stringauditLog
{object}_id
stringrunContext
{object}origin
stringuserId
stringuser
{object}_id
stringsha
stringbranch
stringpullRequestId
(multiple options: anyOf)- string
- integer
matchedFile
stringtrigger
{object}globalSecretInternalId
stringpendingApprovals
[array]- {object}
nodePath
string requireduser
string requiredid
string requiredIdentifier of the run.templateId
string requiredID of the preview blueprintenvironmentId
stringID of the preview environment created by this run
OR
OR
OR
POST /v1/projects/{projectId}/preview-blueprints/{previewBlueprintId}/runs
POST /v1/teams/{teamId}/projects/{projectId}/preview-blueprints/{previewBlueprintId}/runs
Example request
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"Example Run","description":"This is a description for the preview blueprint run.","arguments":{"ARG_1":"value"},"triggers":{"example-trigger":{"branch":"devel"}}}' \
"https://api.northflank.com/v1/projects/{projectId}/preview-blueprints/{previewBlueprintId}/runs"Example response
200 OK
JSON
{
"data": {
"name": "Production deployment",
"description": "Deploy the latest release.",
"status": "success",
"concluded": true,
"startedAt": "2026-01-01T12:00:00.000Z",
"concludedAt": "2026-01-01T12:01:00.000Z",
"createdAt": "2026-01-01T12:00:00.000Z",
"updatedAt": "2026-01-01T12:01:00.000Z",
"id": "110ddb52-bdcd-482d-8ac2-05ba580afe2f",
"templateId": "example-preview-blueprint",
"environmentId": "example-preview",
"detailsHidden": false
}
}