Skills
Log in

Run release flow

Runs a given release flow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.

Required permission

Project > Pipelines > General > Update

Path parameters

    • projectId

      string required
      ID of the project
    • pipelineId

      string required
      ID of the pipeline
    • stage

      string required
      Stage of the pipeline

Request body

  • {object}
    • name

      string
      The optional name of the release-flow run.
      min length
      3
      max length
      39
      pattern
      ^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$
    • description

      string
      The optional description of the release-flow run.
      max length
      200
      pattern
      ^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
    • arguments

      {object}
      A set of arguments that can be referenced in a template using '${args.argumentName}'.
      • overrides

        {object}
        Overrides for specific reference values. This should be an object where each key corresponds to a ref defined in the template. The values of each of these keys should also be an object, where each key value pair provided will overwrite the value for that key in the given ref. For example, the value `{ 'example-ref': { 'branch': 'devel' } }` would set the `branch` field to `devel` for the node with ref `example-ref`.
        • releaseNodeOverrides

          {object}
          Overrides for release nodes. This should be an object where each key is the id of a deployment service used in a release node. The value of each of these keys should be also be an object containing the new spec of the release for that deployment service.

        Response body

        • {object}
          Response object.
          • data

            {object} required
            Result data.
            • name

              string
              Optional name of the run.
            • description

              string
              Optional description of the run.
            • apiVersion

              string
              Template API version.
            • spec

              (multiple options: anyOf)
            • project

              {object}
              • ref

                string
              • skipNodeExecution

                (multiple options: anyOf)
                • boolean
                • OR

                • string
                  one of
                  true, false
              • detailsHidden

                boolean required
              • kind

                string required
              • spec

                {object} required
                • response

                  {object}
                  • status

                    string
                  • startTime

                    number
                  • endTime

                    number
                  • duration

                    number
                  • attempts

                    number
                  • data

                    {object}
                    • id

                      string
                    • name

                      string
                    • _id

                      string
                • _id

                  string
                • id

                  string
                • internalId

                  string
                • type

                  string
                • name

                  string
                • pipelineId

                  string
              • templateId

                string
                Identifier of the template, when available.
              • environmentId

                string
                Identifier of the preview environment, when available.
              • status

                string required
                Status of the template run
                one of
                pending, running, success, failure, aborted, aborting, queued, unknown, skipped, waiting, retrying, async_wait, approval_wait
              • concluded

                boolean required
                Whether execution has concluded.
              • startedAt

                string
                When execution started.
              • concludedAt

                string
                When execution concluded.
              • createdAt

                string required
                When the run was created.
              • updatedAt

                string required
                When the run was last updated.
              • detailsHidden

                boolean required
                Run details include available public results. Sensitive inputs and results are omitted.
              • _id

                string
              • internalId

                string
              • entityId

                string
              • entityType

                string
              • projectId

                string
              • pipelineId

                string
              • userId

                string
              • environmentName

                string
              • expiresAt

                string
              • deleted

                boolean
              • phase

                string
              • templateVersionSha

                string
              • commitSHA

                string
              • hasDiff

                boolean
              • content

                {object}
                • name

                  string
                • description

                  string
                • apiVersion

                  string
                • spec

                  (multiple options: anyOf)
                • project

                  {object}
                  • ref

                    string
                  • skipNodeExecution

                    (multiple options: anyOf)
                    • boolean
                    • OR

                    • string
                      one of
                      true, false
                  • detailsHidden

                    boolean required
                  • kind

                    string required
                  • spec

                    {object} required
                    • response

                      {object}
                      • status

                        string
                      • startTime

                        number
                      • endTime

                        number
                      • duration

                        number
                      • attempts

                        number
                      • data

                        {object}
                        • id

                          string
                        • name

                          string
                        • _id

                          string
                    • _id

                      string
                    • id

                      string
                    • internalId

                      string
                    • type

                      string
                    • name

                      string
                    • pipelineId

                      string
                • template

                  {object}
                  • _id

                    string
                  • id

                    string required
                  • internalId

                    string
                  • type

                    string
                  • name

                    string
                  • pipelineId

                    string
                • pipeline

                  {object}
                  • _id

                    string
                  • id

                    string required
                  • internalId

                    string
                  • type

                    string
                  • name

                    string
                  • pipelineId

                    string
                  • stage

                    string
                • run

                  {object}
                  • _id

                    string
                  • id

                    string required
                  • internalId

                    string
                  • type

                    string
                  • name

                    string
                  • pipelineId

                    string
                • auditLog

                  {object}
                  • _id

                    string
                • runContext

                  {object}
                  • origin

                    string
                  • userId

                    string
                  • user

                    {object}
                    • _id

                      string
                  • sha

                    string
                  • branch

                    string
                  • pullRequestId

                    (multiple options: anyOf)
                    • string
                    • OR

                    • integer
                  • matchedFile

                    string
                  • trigger

                    {object}
                    • globalSecretInternalId

                      string
                • pendingApprovals

                  [array]
                  • {object}
                    • nodePath

                      string required
                    • user

                      string required
                • id

                  string required
                  Identifier of the run.

            POST /v1/projects/{projectId}/pipelines/{pipelineId}/release-flows/{stage}/runs

            POST /v1/teams/{teamId}/projects/{projectId}/pipelines/{pipelineId}/release-flows/{stage}/runs

            Example request

            Request body
            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 release-flow run.","arguments":{"ARG_1":"value"},"overrides":{"example-ref":{"branch":"devel"}},"releaseNodeOverrides":{"example-service":{"type":"registry","origin":{"imagePath":"nginx:latest"}}}}' \
              "https://api.northflank.com/v1/projects/{projectId}/pipelines/{pipelineId}/release-flows/{stage}/runs"

            Example response

            200 OK

            Details about the release flow run.

            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",
                "detailsHidden": false
              }
            }

            © 2026 Northflank Ltd. All rights reserved.

            northflank.com / Terms / Privacy / feedback@northflank.com