> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Bolt API

> GraphQL reference for managing Paradime Bolt schedules and runs: create, trigger, retry, cancel, suspend, and inspect commands, logs, and artifacts.

> [!NOTE]
>
> **Prerequisites:**
>
> * This feature is available with the [**Paradime Bolt plan**](https://www.paradime.io/pricing)**.**
> * Your API keys ***must*** have either Bolt Schedules Admin or Bolt Schedules Metadata Viewer capabilities.

The Bolt API allows you to easily manage and control Bolt schedules and runs within your workspace.

> [!WARNING]
>
> **Schedules are identified by slug.** The `triggerBoltRun`, `retryBoltRunFromFailure`, `boltScheduleName`, `suspendBoltSchedule`, `listBoltRuns`, and `deleteBoltSchedule` operations all take a `slug: String` argument: the identifier returned by `createBoltSchedule` and shown in the Bolt UI. `triggerBoltRun`, `boltScheduleName`, `suspendBoltSchedule`, and `listBoltRuns` also accept the schedule's display name in `slug`, such as the value of `PARADIME_SCHEDULE_NAME`. If two or more schedules share that name, the call fails with an error that lists their slugs, so pass a slug instead.

> [!NOTE]
>
> The examples below authenticate with an **account API key** — pass `Authorization: Bearer <token>` and `X-Paradime-Workspace: <workspace_uid>` (the account key starts with `prdm_cmp_`). Legacy **workspace API keys** are still supported: send `X-API-KEY` and `X-API-SECRET` headers instead. See API Keys.

### List Bolt schedules

This endpoint returns the Bolt schedules in your workspace's current configuration.

Set `showInactive: true` to get the inactive schedules instead: schedules that are no longer in your current configuration, for example ones you have deleted. Their runs stay available through [`listBoltRuns`](#list-runs-for-a-schedule). The two lists do not overlap, so call the endpoint with both values to cover every schedule.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query ListBoltSchedules {
>     listBoltSchedules(offset: 0, limit: 10, showInactive: false) {
>         schedules {
>             slug
>             name
>             schedule
>             owner
>             lastRunAt
>             lastRunState
>             nextRunAt
>             id
>             uuid
>             source
>             turboCi {
>                 enabled
>                 deferredScheduleSlug
>                 successfulRunOnly
>             }
>             deferredSchedule {
>                 deferredScheduleSlug
>                 enabled
>                 successfulRunOnly
>             }
>             commands
>             gitBranch
>             notifications {
>                 slackNotifications {
>                     channel
>                     events
>                 }
>                 emailNotifications {
>                     channel
>                     events
>                 }
>             }
>         }
>         totalCount
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query ListBoltSchedules($offset: Int!, $limit: Int!, $showInactive: Boolean!) { listBoltSchedules(offset: $offset, limit: $limit, showInactive: $showInactive) { schedules { slug name schedule owner lastRunAt lastRunState nextRunAt id uuid source turboCi { enabled deferredScheduleSlug successfulRunOnly } deferredSchedule { deferredScheduleSlug enabled successfulRunOnly } commands gitBranch notifications { slackNotifications { channel events } emailNotifications { channel events } } } totalCount } }",
>        "variables": {
>          "offset": 0,
>          "limit": 10,
>          "showInactive": false
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "listBoltSchedules": {
>       "schedules": [
>         {
>           "slug": "fabio-chld-yaml",
>           "name": "fabio-chld-yaml",
>           "schedule": "OFF",
>           "owner": "fabio@paradime.io",
>           "lastRunAt": null,
>           "lastRunState": null,
>           "nextRunAt": null,
>           "id": 973767,
>           "uuid": "f5f98a76-c978-31c5-9296-aae9903653f4",
>           "source": "yaml",
>           "turboCi": null,
>           "deferredSchedule": null,
>           "commands": ["dbt run"],
>           "gitBranch": "main",
>           "notifications": {
>             "slackNotifications": [],
>             "emailNotifications": []
>           }
>         }
>       ],
>       "totalCount": 26
>     }
>   }
> }
> ```

### List schedules across all workspaces

This endpoint returns the schedule names and slugs across **all workspaces** in your account, together with the workspace each one belongs to. This is useful with an account API key, where a single credential can operate across multiple workspaces.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query ListAllScheduleNames {
>     listAllScheduleNames {
>         ok
>         schedules {
>             name
>             slug
>             workspaceName
>             workspaceUid
>         }
>     }
> }
> """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query ListAllScheduleNames { listAllScheduleNames { ok schedules { name slug workspaceName workspaceUid } } }"
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "listAllScheduleNames": {
>       "ok": true,
>       "schedules": [
>         {
>           "name": "Nightly build",
>           "slug": "nightly-build-a1b2c3",
>           "workspaceName": "Analytics",
>           "workspaceUid": "abc123def456"
>         }
>       ]
>     }
>   }
> }
> ```

### List runs for a schedule

This endpoint returns the runs for a given Bolt schedule, identified by its `slug`. Runs come back newest first, up to 1000 per call. Use `offset` to page through older runs.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query ListBoltRuns {
>     listBoltRuns(slug: "flowing-pachy-wyy4fs", offset: 0, limit: 10) {
>         ok
>         runs {
>             id
>             state
>             actor
>             actorEmail
>             parentScheduleRunId
>             startDttm
>             endDttm
>             gitInfo {
>                 branch
>                 commitHash
>                 pullRequestId
>             }
>         }
>     }
> }
> """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query ListBoltRuns($slug: String, $offset: Int!, $limit: Int!) { listBoltRuns(slug: $slug, offset: $offset, limit: $limit) { ok runs { id state actor actorEmail parentScheduleRunId startDttm endDttm gitInfo { branch commitHash pullRequestId } } } }",
>        "variables": {
>          "slug": "flowing-pachy-wyy4fs",
>          "offset": 0,
>          "limit": 10
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "listBoltRuns": {
>       "ok": true,
>       "runs": [
>         {
>           "id": 15509,
>           "state": "SUCCESS",
>           "actor": "John Doe",
>           "actorEmail": "john@acme.io",
>           "parentScheduleRunId": null,
>           "startDttm": "2024-08-27 22:58:57.738046",
>           "endDttm": "2024-08-27 22:59:11.323692",
>           "gitInfo": {
>             "branch": "main",
>             "commitHash": "a1b2c3d",
>             "pullRequestId": null
>           }
>         }
>       ]
>     }
>   }
> }
> ```

### Get Bolt schedule details

This endpoint will enable you to check the status of a schedule by passing a Bolt schedule `slug`.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query BoltScheduleName {
>     boltScheduleName(slug: "flowing-pachy-wyy4fs") {
>         ok
>         slug
>         name
>         latestRunId
>         commands
>         owner
>         schedule
>         uuid
>         source
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
>
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query BoltScheduleName($slug: String) { boltScheduleName(slug: $slug) { ok slug name latestRunId commands owner schedule uuid source } }",
>        "variables": {
>          "slug": "flowing-pachy-wyy4fs"
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "boltScheduleName": {
>       "ok": true,
>       "slug": "flowing-pachy-wyy4fs",
>       "name": "Nightly build",
>       "latestRunId": 15475,
>       "commands": ["dbt test"],
>       "owner": "john@acme.io",
>       "schedule": "OFF",
>       "uuid": "a3d6ceea-abe3-333e-ac8b-c0b48cce5678",
>       "source": "ui"
>     }
>   }
> }
> ```

### Trigger a Bolt run

This endpoint will enable you to trigger a Bolt schedule run by passing a schedule `slug`.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation TriggerBoltRun {
>     triggerBoltRun(slug: "flowing-pachy-wyy4fs") {
>         runId
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
>
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation TriggerBoltRun($slug: String) { triggerBoltRun(slug: $slug) { runId } }",
>        "variables": {
>          "slug": "flowing-pachy-wyy4fs"
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "triggerBoltRun": {
>       "runId": 15477
>     }
>   }
> }
> ```

### Trigger a Bolt run with custom commands

This endpoint will enable you to trigger a Bolt schedule with a custom command and overwrite the actual commands defined in the schedule for that particular run.

This only modifies the command at runtime for the triggered Bolt schedule and not the commands configuration defined in the schedule.

> [!NOTE]
>
> `triggerBoltRun` also accepts `commandConfigs: [BoltCommandInput]` (each entry is `{command, continueOnError}`) instead of `commands`, plus a run-level `continueOnError: Boolean` default, so an ad-hoc run can keep going past a failed command. Pass exactly one of `commands` or `commandConfigs`.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation TriggerBoltRun {
>     triggerBoltRun(slug: "flowing-pachy-wyy4fs", commands: ["dbt compile", "dbt test"]) {
>         runId
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
>
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation TriggerBoltRun($slug: String, $commands: [String!]) { triggerBoltRun(slug: $slug, commands: $commands) { runId } }",
>        "variables": {
>          "slug": "flowing-pachy-wyy4fs",
>          "commands": ["dbt compile", "dbt test"]
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "triggerBoltRun": {
>       "runId": 15483
>     }
>   }
> }
> ```

### Trigger a Bolt run with a custom git branch

This endpoint will enable you to trigger a Bolt schedule with a custom git commit and overwrite the branch name defined in the schedule configuration.

This only modifies the commit at runtime for the triggered Bolt schedule and not the branch name defined in the schedule.

> [!NOTE]
>
> If `branch` isn't the schedule's own branch (or, for a schedule without a branch, the workspace's default branch), or the commit you pass isn't on that branch, schedules with an [On run completion](https://docs.paradime.io/products/bolt/creating-schedules/trigger-types.md#on-run-completion) trigger on this schedule don't start after the run. The run page shows a **Branch override** pill.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation TriggerBoltRun {
>     triggerBoltRun(slug: "flowing-pachy-wyy4fs", branch: "feature-branch-123") {
>         runId
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation TriggerBoltRun($slug: String, $branch: String!) { triggerBoltRun(slug: $slug, branch: $branch) { runId } }",
>        "variables": {
>          "slug": "flowing-pachy-wyy4fs",
>          "branch": "feature-branch-123"
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "triggerBoltRun": {
>       "runId": 15483
>     }
>   }
> }
> ```

### Trigger a Bolt run with a PR number

This endpoint enables you to trigger a Bolt schedule with a specific pull request number, which is particularly useful for Turbo CI workflows that need to associate runs with pull requests for smart cancellation and concurrency enabedled.

> [tab] GraphQL
>
> ```python theme={"system"}
> import os
> import requests
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation TriggerBoltRun($slug: String, $branch: String, $prNumber: Int) {
>     triggerBoltRun(slug: $slug, branch: $branch, prNumber: $prNumber) {
>         runId
>     }
> }
> """
>
> variables = {
>     "slug": "flowing-pachy-wyy4fs",
>     "branch": "feature-branch-123",
>     "prNumber": 123
> }
>
> response = requests.post(
>     api_endpoint,
>     json={
>         "query": graphql_query,
>         "variables": variables
>     },
>     headers={
>         "Content-Type": "application/json",
>         "Authorization": f"Bearer {api_token}",
>         "X-Paradime-Workspace": workspace_uid,
>     }
> )
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST <YOUR_API_ENDPOINT> \
>   -H "Content-Type: application/json" \
>   -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>   -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>   -d '{
>     "query": "mutation TriggerBoltRun($slug: String, $branch: String, $prNumber: Int) { triggerBoltRun(slug: $slug, branch: $branch, prNumber: $prNumber) { runId } }",
>     "variables": {
>       "slug": "flowing-pachy-wyy4fs",
>       "branch": "feature-branch-123",
>       "prNumber": 123
>     }
>   }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "triggerBoltRun": {
>       "runId": 15477
>     }
>   }
> }
> ```

### Trigger a Bolt run with a reason

This endpoint enables you to trigger a Bolt schedule with a freeform `reason` describing why or from where the run was triggered (e.g. the application that made the call). The reason is stored with the run for context and auditing.

> [tab] GraphQL
>
> ```python theme={"system"}
> import os
> import requests
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation TriggerBoltRun($slug: String, $reason: String) {
>     triggerBoltRun(slug: $slug, reason: $reason) {
>         runId
>     }
> }
> """
>
> variables = {
>     "slug": "flowing-pachy-wyy4fs",
>     "reason": "triggered by data-quality-bot"
> }
>
> response = requests.post(
>     api_endpoint,
>     json={
>         "query": graphql_query,
>         "variables": variables
>     },
>     headers={
>         "Content-Type": "application/json",
>         "Authorization": f"Bearer {api_token}",
>         "X-Paradime-Workspace": workspace_uid,
>     }
> )
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST <YOUR_API_ENDPOINT> \
>   -H "Content-Type: application/json" \
>   -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>   -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>   -d '{
>     "query": "mutation TriggerBoltRun($slug: String, $reason: String) { triggerBoltRun(slug: $slug, reason: $reason) { runId } }",
>     "variables": {
>       "slug": "flowing-pachy-wyy4fs",
>       "reason": "triggered by data-quality-bot"
>     }
>   }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "triggerBoltRun": {
>       "runId": 15477
>     }
>   }
> }
> ```

### Cancel a Bolt run

This endpoint will enable you to cancel a Bolt run by passing the `runID` of a Bolt schedule.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation CancelBoltRun {
>     cancelBoltRun(scheduleRunId: 15507) {
>         ok
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
>
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation CancelBoltRun($scheduleRunId: Int!) { cancelBoltRun(scheduleRunId: $scheduleRunId) { ok } }",
>        "variables": {
>          "scheduleRunId": 15507
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "cancelBoltRun": {
>       "ok": true
>     }
>   }
> }
> ```

### Retry a Bolt Run

**Retry the latest failed run of a schedule by slug**

This endpoint will enable you to retry the **latest failed run** of a Bolt schedule by passing only the schedule `slug` — no run ID required. The retry resumes from the failed command of the most recent run of the schedule. The first failed dbt command is automatically substituted with `dbt retry` when supported. Infrastructure commands (`git clone`, `dbt deps`) are skipped — they run automatically on every Bolt run.

A new Bolt run is created and its `runId` is returned. The original failed run is unchanged.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation RetryBoltRunFromFailure {
>     retryBoltRunFromFailure(slug: "flowing-pachy-wyy4fs") {
>         runId
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation RetryBoltRunFromFailure($slug: String) { retryBoltRunFromFailure(slug: $slug) { runId } }",
>        "variables": {
>          "slug": "flowing-pachy-wyy4fs"
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "retryBoltRunFromFailure": {
>       "runId": 15513
>     }
>   }
> }
> ```

> [!WARNING]
>
> This endpoint will return an error if:
>
> * the schedule has no runs yet
> * the latest run is still in progress
> * the latest run has no commands to retry
> * all commands in the latest run succeeded — in this case, there is nothing to retry.
> * the run is a step of a CI/CD chain, such as a Turbo CI or merge run (`This run is a step of a CI/CD chain. Retry it from the Paradime UI or with GitHub's Re-run button, so the steps after it run too.`)

### **Retry a failed Bolt run by ID (failed commands only)**

This endpoint will enable you to retry a failed Bolt run by re-running **only the failed commands**. The first failed dbt command is automatically substituted with `dbt retry` when supported, re-running just the failed models. Infrastructure commands (`git clone`, `dbt deps`) are skipped — they run automatically on every Bolt run.

A new Bolt run is created and its `runId` is returned. The original failed run is unchanged.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation RetryBoltRun {
>     retryBoltRun(scheduleRunId: 15509) {
>         ok
>         runId
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation RetryBoltRun($scheduleRunId: Int!) { retryBoltRun(scheduleRunId: $scheduleRunId) { ok runId } }",
>        "variables": {
>          "scheduleRunId": 15509
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "retryBoltRun": {
>       "ok": true,
>       "runId": 15511
>     }
>   }
> }
> ```

> [!WARNING]
>
> This endpoint will return an error if:
>
> * the original run is still in progress (`Cannot retry a run that is still in progress`)
> * the original run has no commands to retry (`Schedule run has no commands to retry`)
> * all original commands succeeded (`All commands were successful, nothing to retry`)
> * only infrastructure commands (`git clone`, `dbt deps`) failed — in this case, trigger the original schedule again instead.
> * the run is a step of a CI/CD chain, such as a Turbo CI or merge run (`This run is a step of a CI/CD chain. Retry it from the Paradime UI or with GitHub's Re-run button, so the steps after it run too.`)

### **Retry a Bolt run by ID (all commands)**

This endpoint will enable you to retry a Bolt run by re-running **every** original command verbatim, regardless of which ones succeeded or failed. Infrastructure commands (`git clone`, `dbt deps`) are excluded — they run automatically on every Bolt run.

A new Bolt run is created and its `runId` is returned. The original run is unchanged.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation RetryAllBoltRun {
>     retryAllBoltRun(scheduleRunId: 15509) {
>         ok
>         runId
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation RetryAllBoltRun($scheduleRunId: Int!) { retryAllBoltRun(scheduleRunId: $scheduleRunId) { ok runId } }",
>        "variables": {
>          "scheduleRunId": 15509
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "retryAllBoltRun": {
>       "ok": true,
>       "runId": 15512
>     }
>   }
> }
> ```

### Get Bolt run status

This endpoint will enable you to check the status of a Bolt run run by passing the `runID`.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query BoltRunStatus {
>     boltRunStatus(runId: 15509) {
>         ok
>         state
>         commands {
>             id
>             command
>             startDttm
>             endDttm
>             stdout
>             stderr
>             returnCode
>         }
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query BoltRunStatus($runId: Int!) { boltRunStatus(runId: $runId) { ok state commands { id command startDttm endDttm stdout stderr returnCode } } }",
>        "variables": {
>          "runId": 15509
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "boltRunStatus": {
>       "ok": true,
>       "state": "ERROR",
>       "commands": [
>         {
>           "id": 59241,
>           "command": "dbt test",
>           "startDttm": "2024-08-27 22:59:01.476387",
>           "endDttm": "2024-08-27 22:59:11.323692",
>           "stdout": "the command logs",
>           "stderr": "the command logs",
>           "returnCode": 1
>         },
>         {
>           "id": 59239,
>           "command": "git clone ...",
>           "startDttm": "2024-08-27 22:58:57.738046",
>           "endDttm": "2024-08-27 22:58:59.135456",
>           "stdout": "",
>           "stderr": "the command logs",
>           "returnCode": -10
>         },
>         {
>           "id": 59240,
>           "command": "dbt deps",
>           "startDttm": "2024-08-27 22:58:59.234308",
>           "endDttm": "2024-08-27 22:59:01.468001",
>           "stdout": "the command logs",
>           "stderr": "the command logs",
>           "returnCode": -10
>         }
>       ]
>     }
>   }
> }
> ```

### Get the dbt™ node results of a Bolt run

`boltRunNodeExecutions` returns the dbt™ node results of a run: one row per model, test, seed, or snapshot, per dbt™ command, with the data from `run_results.json`. Use it to see which nodes failed or ran slowly without downloading the artifacts. It needs the `bolt:run:status` capability, which both **Bolt schedules admin** and **Bolt schedules metadata viewer** keys have.

* **Pages:** `first` sets the page size, 100 by default and 500 at most. To get the next page, pass `pageInfo.endCursor` as `after` while `pageInfo.hasNextPage` is `true`.
* **Commands:** `commandId` matches `commands.id` in [`boltRunStatus`](#get-bolt-run-status), so you can group the results by command.
* **Retention:** results are kept for 60 days by default. An older run returns no edges.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query BoltRunNodeExecutions($runId: Int!, $after: String) {
>     boltRunNodeExecutions(runId: $runId, first: 100, after: $after) {
>         edges {
>             node {
>                 commandId
>                 uniqueId
>                 resourceType
>                 status
>                 message
>                 failures
>                 executionTime
>                 adapterResponse
>             }
>         }
>         pageInfo {
>             hasNextPage
>             endCursor
>         }
>     }
> }
> """
>
> headers = {
>     "Content-Type": "application/json",
>     "Authorization": f"Bearer {api_token}",
>     "X-Paradime-Workspace": workspace_uid,
> }
>
> nodes, after = [], None
> while True:
>     response = requests.post(api_endpoint, json={
>         "query": graphql_query,
>         "variables": {"runId": 15509, "after": after},
>     }, headers=headers)
>     page = response.json()["data"]["boltRunNodeExecutions"]
>     nodes += [edge["node"] for edge in page["edges"]]
>     if not page["pageInfo"]["hasNextPage"]:
>         break
>     after = page["pageInfo"]["endCursor"]
>
> print([node["uniqueId"] for node in nodes if node["status"] in ("error", "fail")])
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query BoltRunNodeExecutions($runId: Int!) { boltRunNodeExecutions(runId: $runId, first: 100) { edges { node { commandId uniqueId resourceType status message failures executionTime adapterResponse } } pageInfo { hasNextPage endCursor } } }",
>        "variables": {
>          "runId": 15509
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "boltRunNodeExecutions": {
>       "edges": [
>         {
>           "node": {
>             "commandId": 59241,
>             "uniqueId": "model.jaffle_shop.orders",
>             "resourceType": "model",
>             "status": "success",
>             "message": "SUCCESS 1",
>             "failures": null,
>             "executionTime": 4.21,
>             "adapterResponse": "{\"_message\": \"SUCCESS 1\", \"rows_affected\": 1, \"query_id\": \"01b2c3d4-0000-1234-0000-000000000001\"}"
>           }
>         },
>         {
>           "node": {
>             "commandId": 59241,
>             "uniqueId": "test.jaffle_shop.not_null_orders_order_id.cf6c17daed",
>             "resourceType": "test",
>             "status": "fail",
>             "message": "Got 3 results, configured to fail if != 0",
>             "failures": 3,
>             "executionTime": 0.87,
>             "adapterResponse": "{}"
>           }
>         }
>       ],
>       "pageInfo": {
>         "hasNextPage": false,
>         "endCursor": "MTIzNDU="
>       }
>     }
>   }
> }
> ```

### Get Bolt command details

This endpoint will enable you to extract for a given command all the related details including raw error logs by passing a `commandId`. This is normally used in conjunction with the Paradime Webhooks.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query BoltCommand {
>     boltCommand(commandId: 59241) {
>         command
>         startDttm
>         endDttm
>         stdout
>         stderr
>         returnCode
>         scheduleRunId
>         resources {
>             id
>             path
>             available
>             archivedAt
>         }
>         ok
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
>
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query BoltCommand($commandId: Int!) { boltCommand(commandId: $commandId) { command startDttm endDttm stdout stderr returnCode scheduleRunId resources { id path available archivedAt } ok } }",
>        "variables": {
>          "commandId": 59241
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "boltCommand": {
>       "command": "dbt test",
>       "startDttm": "2024-08-27 22:59:01.476387",
>       "endDttm": "2024-08-27 22:59:11.323692",
>       "stdout": "your command log",
>       "stderr": "your command log",
>       "returnCode": 1,
>       "scheduleRunId": 15509,
>       "resources": [
>         {"id": 306227, "path": "target/partial_parse.msgpack"},
>         {"id": 306228, "path": "target/manifest.json"},
>         {"id": 306229, "path": "target/semantic_manifest.json"},
>         {"id": 306230, "path": "target/graph_summary.json"},
>         {"id": 306231, "path": "target/graph.gpickle"},
>         {"id": 306232, "path": "target/compiled/demo_sales_project/data/schema.yml/not_null_customer_conversions_revenue.sql"},
>         {"id": 306233, "path": "target/compiled/demo_sales_project/data/schema.yml/not_null_customer_conversions_converted_at.sql"},
>         {"id": 306234, "path": "target/compiled/demo_sales_project/data/schema.yml/not_null_customer_conversions_customer_id.sql"},
>         {"id": 306235, "path": "target/compiled/demo_sales_project/data/schema.yml/not_null_sessions_customer_id.sql"},
>         {"id": 306236, "path": "target/compiled/demo_sales_project/data/schema.yml/not_null_sessions_ended_at.sql"},
>         {"id": 306237, "path": "target/compiled/demo_sales_project/data/schema.yml/not_null_sessions_started_at.sql"},
>         {"id": 306238, "path": "target/compiled/demo_sales_project/data/schema.yml/unique_customer_conversions_customer_id.sql"},
>         {"id": 306239, "path": "target/compiled/demo_sales_project/models/staging/schema.yml/accepted_values_stg_payments_c7909fb19b1f0177c2bf99c7912f06ef.sql"},
>         {"id": 306240, "path": "target/compiled/demo_sales_project/models/staging/schema.yml/accepted_values_stg_orders_status__placed.sql"},
>         {"id": 306241, "path": "target/compiled/demo_sales_project/models/staging/schema.yml/not_null_stg_payments_payment_id.sql"},
>         {"id": 306242, "path": "target/compiled/demo_sales_project/models/staging/schema.yml/not_null_stg_customers_customer_id.sql"},
>         {"id": 306243, "path": "target/compiled/demo_sales_project/models/staging/schema.yml/unique_stg_customers_customer_id.sql"},
>         {"id": 306244, "path": "target/compiled/demo_sales_project/models/staging/schema.yml/unique_stg_payments_payment_id.sql"},
>         {"id": 306245, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/accepted_values_order_items_7244335ae3a9655e09872a7a5b8cb110.sql"},
>         {"id": 306246, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_amount.sql"},
>         {"id": 306247, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_coupon_amount.sql"},
>         {"id": 306248, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_bank_transfer_amount.sql"},
>         {"id": 306249, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_credit_card_amount.sql"},
>         {"id": 306250, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_customer_id.sql"},
>         {"id": 306251, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_order_id.sql"},
>         {"id": 306252, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_gift_card_amount.sql"},
>         {"id": 306253, "path": "target/compiled/demo_sales_project/models/marts/core/schema.yml/unique_order_items_order_id.sql"},
>         {"id": 306254, "path": "target/compiled/demo_sales_project/models/marts/core/intermediate/schema.yml/accepted_values_order_payments_b6878290bdd2ef4d6ef0513a1d8fdbbc.sql"},
>         {"id": 306255, "path": "target/compiled/demo_sales_project/models/marts/core/intermediate/schema.yml/not_null_order_payments_payment_id.sql"},
>         {"id": 306256, "path": "target/compiled/demo_sales_project/models/marts/core/intermediate/schema.yml/relationships_order_payments_1c8c3f46d5739a85e060a829410bf06d.sql"},
>         {"id": 306257, "path": "target/compiled/demo_sales_project/models/marts/core/intermediate/schema.yml/unique_order_payments_payment_id.sql"},
>         {"id": 306258, "path": "target/compiled/demo_sales_project/tests/assert_total_payment_amount_is_positive.sql"},
>         {"id": 306259, "path": "target/run/demo_sales_project/data/schema.yml/not_null_customer_conversions_converted_at.sql"},
>         {"id": 306260, "path": "target/run/demo_sales_project/data/schema.yml/not_null_customer_conversions_revenue.sql"},
>         {"id": 306261, "path": "target/run/demo_sales_project/data/schema.yml/not_null_customer_conversions_customer_id.sql"},
>         {"id": 306262, "path": "target/run/demo_sales_project/data/schema.yml/not_null_sessions_customer_id.sql"},
>         {"id": 306263, "path": "target/run/demo_sales_project/data/schema.yml/not_null_sessions_ended_at.sql"},
>         {"id": 306264, "path": "target/run/demo_sales_project/data/schema.yml/not_null_sessions_started_at.sql"},
>         {"id": 306265, "path": "target/run/demo_sales_project/data/schema.yml/unique_customer_conversions_customer_id.sql"},
>         {"id": 306266, "path": "target/run/demo_sales_project/tests/assert_total_payment_amount_is_positive.sql"},
>         {"id": 306267, "path": "target/run/demo_sales_project/models/staging/schema.yml/accepted_values_stg_payments_c7909fb19b1f0177c2bf99c7912f06ef.sql"},
>         {"id": 306268, "path": "target/run/demo_sales_project/models/staging/schema.yml/accepted_values_stg_orders_status__placed.sql"},
>         {"id": 306269, "path": "target/run/demo_sales_project/models/staging/schema.yml/not_null_stg_payments_payment_id.sql"},
>         {"id": 306270, "path": "target/run/demo_sales_project/models/staging/schema.yml/not_null_stg_customers_customer_id.sql"},
>         {"id": 306271, "path": "target/run/demo_sales_project/models/staging/schema.yml/unique_stg_customers_customer_id.sql"},
>         {"id": 306272, "path": "target/run/demo_sales_project/models/staging/schema.yml/unique_stg_payments_payment_id.sql"},
>         {"id": 306273, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/accepted_values_order_items_7244335ae3a9655e09872a7a5b8cb110.sql"},
>         {"id": 306274, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_amount.sql"},
>         {"id": 306275, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_coupon_amount.sql"},
>         {"id": 306276, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_bank_transfer_amount.sql"},
>         {"id": 306277, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_credit_card_amount.sql"},
>         {"id": 306278, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_customer_id.sql"},
>         {"id": 306279, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_gift_card_amount.sql"},
>         {"id": 306280, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/not_null_order_items_order_id.sql"},
>         {"id": 306281, "path": "target/run/demo_sales_project/models/marts/core/schema.yml/unique_order_items_order_id.sql"},
>         {"id": 306282, "path": "target/run/demo_sales_project/models/marts/core/intermediate/schema.yml/accepted_values_order_payments_b6878290bdd2ef4d6ef0513a1d8fdbbc.sql"},
>         {"id": 306283, "path": "target/run/demo_sales_project/models/marts/core/intermediate/schema.yml/not_null_order_payments_payment_id.sql"},
>         {"id": 306284, "path": "target/run/demo_sales_project/models/marts/core/intermediate/schema.yml/relationships_order_payments_1c8c3f46d5739a85e060a829410bf06d.sql"},
>         {"id": 306285, "path": "target/run/demo_sales_project/models/marts/core/intermediate/schema.yml/unique_order_payments_payment_id.sql"},
>         {"id": 306286, "path": "target/run_results.json"},
>         {"id": 306287, "path": "logs/dbt.log"}
>       ],
>       "ok": true
>     }
>   }
> }
> ```

### **Get Bolt command live logs**

This endpoint streams stdout and stderr for a Bolt command **while it is still running** — useful for tailing a run in real time rather than waiting for it to finish and reading the final logs from `boltCommand`.

The query is cursor-paginated:

* Pass `cursor: "0:0"` on the first call to fetch from the beginning of the command's output.
* Each response includes a new `cursor` — pass it back into the next call to fetch only new lines.
* When the command finishes, `finished` returns `true`. Stop polling.
* Each line carries a `stream` field of either `STDOUT` or `STDERR`. Within a batch, `STDOUT` lines precede `STDERR` lines — true cross-stream ordering is not recorded.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import time
> import requests
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query BoltCommandLogs($commandId: Int!, $cursor: String) {
>     boltCommandLogs(commandId: $commandId, cursor: $cursor) {
>         lines {
>             stream
>             line
>         }
>         cursor
>         finished
>     }
> }
> """
>
> headers = {
>     "Content-Type": "application/json",
>     "Authorization": f"Bearer {api_token}",
>     "X-Paradime-Workspace": workspace_uid,
> }
>
> cursor = "0:0"
> while True:
>     response = requests.post(
>         api_endpoint,
>         json={
>             "query": graphql_query,
>             "variables": {"commandId": 59241, "cursor": cursor},
>         },
>         headers=headers,
>     )
>     batch = response.json()["data"]["boltCommandLogs"]
>
>     for entry in batch["lines"]:
>         print(f"[{entry['stream'].lower()}] {entry['line']}", end="")
>
>     if batch["finished"]:
>         break
>
>     cursor = batch["cursor"]
>     if not batch["lines"]:
>         time.sleep(2)
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query BoltCommandLogs($commandId: Int!, $cursor: String) { boltCommandLogs(commandId: $commandId, cursor: $cursor) { lines { stream line } cursor finished } }",
>        "variables": {
>          "commandId": 59241,
>          "cursor": "0:0"
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "boltCommandLogs": {
>       "lines": [
>         {"stream": "STDOUT", "line": "Running with dbt=1.7.4\n"},
>         {"stream": "STDOUT", "line": "Found 24 models, 12 tests, 4 sources\n"},
>         {"stream": "STDOUT", "line": "1 of 24 START sql table model dbt_prod.stg_orders ... [RUN]\n"},
>         {"stream": "STDERR", "line": "WARNING: Stale manifest detected\n"}
>       ],
>       "cursor": "12:3",
>       "finished": false
>     }
>   }
> }
> ```
>
> When the command has exited, the response looks like:
>
> ```json theme={"system"}
> {
>   "data": {
>     "boltCommandLogs": {
>       "lines": [
>         {"stream": "STDOUT", "line": "Completed successfully\n"}
>       ],
>       "cursor": "32:3",
>       "finished": true
>     }
>   }
> }
> ```

### Get Bolt command resource URL

This endpoint will enable you to extract for a given command the related resource generated by the execution of the command, for example the `run_results.json` or the `manifest.json` by passing a `resourceId`. This is normally used in conjunction with the Paradime Webhooks.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
> import os
>
> # API credentials
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> query BoltResourceUrl {
>     boltResourceUrl(resourceId: 306228) {
>         ok
>         url
>         message
>     }
> }
>   """
>
> response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
>       "Content-Type": "application/json",
>       "Authorization": f"Bearer {api_token}",
>       "X-Paradime-Workspace": workspace_uid,
>   })
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "query BoltResourceUrl($resourceId: Int!) { boltResourceUrl(resourceId: $resourceId) { ok url message } }",
>        "variables": {
>          "resourceId": 306228
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "boltResourceUrl": {
>       "ok": true,
>       "url": "the url to the resource e.g. manifest.json"
>     }
>   }
> }
> ```

### Archived resources

Bolt archives a run's artifacts 60 days after the run starts. See [Archived artifacts](https://docs.paradime.io/products/bolt/managing-schedules/run-logs-and-artifacts.md#archived-artifacts).

* In [`boltCommand`](#get-bolt-command-details), each resource has `available` (`false` once it is archived) and `archivedAt` (when it is or will be archived, ISO 8601 with a UTC offset). `archivedAt` is `null` when the artifacts are in [your own S3 bucket](https://docs.paradime.io/integrations/amazon-s3.md), which Paradime never archives.
* For an archived resource, `boltResourceUrl` returns `ok: false`, an empty `url`, and a `message` that says why:

```json theme={"system"}
{
  "data": {
    "boltResourceUrl": {
      "ok": false,
      "url": "",
      "message": "Run 15509 started on 2026-08-27, more than 60 days ago; its artifacts are archived."
    }
  }
}
```

Check `ok` before you download from `url`.

### Create a Bolt schedule

This mutation creates a new Bolt schedule and returns its `slug`. The slug is the identifier you pass to every other Bolt endpoint (`triggerBoltRun`, `boltScheduleName`, `deleteBoltSchedule`, etc.).

The required input fields are `name`, `schedule`, `environment`, and the command list. Commands are passed as exactly one of two fields: the plain `commands: [String]` list, or `commandConfigs: [BoltCommandInput]` where each entry is `{command, continueOnError}` for per-command failure handling. The `BoltScheduleInput` type also supports a wide set of optional fields (`gitBranch`, `description`, `timezone`, `ownerEmail`, `suspended`, `slaSeconds`, `triggerOnMerge`, `continueOnError`) plus nested objects for notifications, third-party incident integrations, the self-healing agent, Turbo CI / deferred-schedule config, parent-schedule triggers, and environment-variable overrides.

**Continue on error**: by default a failed command skips the remaining commands in the run. Set `continueOnError: true` at the schedule level to keep running after a failure, and use `commandConfigs` to override the behavior per command (`continueOnError: null` inherits the schedule default). The run is still reported as failed. For example:

```json theme={"system"}
{
  "schedule": {
    "name": "Nightly build",
    "schedule": "0 1 * * *",
    "environment": "production",
    "continueOnError": true,
    "commandConfigs": [
      {"command": "dbt seed"},
      {"command": "dbt run", "continueOnError": false},
      {"command": "dbt test"}
    ]
  }
}
```

> [!WARNING]
>
> There is a short consistency window (\~10s) between schedule creation and the trigger path accepting the new slug. Clients that immediately call `triggerBoltRun` on a brand-new slug may need to retry for a few seconds.

**Minimal create**

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
>
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation CreateBoltSchedule($schedule: BoltScheduleInput!) {
>     createBoltSchedule(schedule: $schedule) {
>         ok
>         slug
>         name
>     }
> }
> """
>
> variables = {
>     "schedule": {
>         "name": "Nightly build",
>         "schedule": "0 1 * * *",
>         "environment": "production",
>         "commands": ["dbt build"]
>     }
> }
>
> response = requests.post(
>     api_endpoint,
>     json={"query": graphql_query, "variables": variables},
>     headers={
>         "Content-Type": "application/json",
>         "Authorization": f"Bearer {api_token}",
>         "X-Paradime-Workspace": workspace_uid,
>     },
> )
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation CreateBoltSchedule($schedule: BoltScheduleInput!) { createBoltSchedule(schedule: $schedule) { ok slug name } }",
>        "variables": {
>          "schedule": {
>            "name": "Nightly build",
>            "schedule": "0 1 * * *",
>            "environment": "production",
>            "commands": ["dbt build"]
>          }
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "createBoltSchedule": {
>       "ok": true,
>       "slug": "nightly-build-a1b2c3",
>       "name": "Nightly build"
>     }
>   }
> }
> ```

### **Create with notifications, env vars, and self-healing**

The same mutation, with the optional nested objects populated.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
>
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation CreateBoltSchedule($schedule: BoltScheduleInput!) {
>     createBoltSchedule(schedule: $schedule) {
>         ok
>         slug
>         name
>     }
> }
> """
>
> variables = {
>     "schedule": {
>         "name": "Nightly build",
>         "schedule": "0 1 * * *",
>         "environment": "production",
>         "commands": ["dbt build"],
>         "gitBranch": "main",
>         "description": "Nightly run of the production warehouse build.",
>         "timezone": "UTC",
>         "notifications": {
>             "slackNotifications": [
>                 {"channel": "#data-alerts", "events": ["failed"]}
>             ],
>             "emailNotifications": [
>                 {"channel": "ops@example.com", "events": ["failed", "passed"]}
>             ]
>         },
>         "selfHealing": {
>             "enabled": True,
>             "slackChannel": "#data-alerts"
>         },
>         "envVars": [
>             {"key": "DBT_PROFILES_DIR", "value": "/workspace/profiles"},
>             {"key": "DBT_TARGET", "value": "prod"}
>         ]
>     }
> }
>
> response = requests.post(
>     api_endpoint,
>     json={"query": graphql_query, "variables": variables},
>     headers={
>         "Content-Type": "application/json",
>         "Authorization": f"Bearer {api_token}",
>         "X-Paradime-Workspace": workspace_uid,
>     },
> )
>
> print(response.json())
> ```

### Suspend or resume a Bolt schedule

This mutation suspends or resumes a Bolt schedule by `slug`. Pass `suspend: true` to suspend the schedule (pausing its time-based runs) or `suspend: false` to resume it.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
>
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation SuspendBoltSchedule($slug: String, $suspend: Boolean!) {
>     suspendBoltSchedule(slug: $slug, suspend: $suspend) {
>         ok
>     }
> }
> """
>
> variables = {"slug": "flowing-pachy-wyy4fs", "suspend": True}
>
> response = requests.post(
>     api_endpoint,
>     json={"query": graphql_query, "variables": variables},
>     headers={
>         "Content-Type": "application/json",
>         "Authorization": f"Bearer {api_token}",
>         "X-Paradime-Workspace": workspace_uid,
>     },
> )
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation SuspendBoltSchedule($slug: String, $suspend: Boolean!) { suspendBoltSchedule(slug: $slug, suspend: $suspend) { ok } }",
>        "variables": {
>          "slug": "flowing-pachy-wyy4fs",
>          "suspend": true
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "suspendBoltSchedule": {
>       "ok": true
>     }
>   }
> }
> ```

### Delete a Bolt schedule

This mutation deletes a Bolt schedule by `slug`. Schedules defined in YAML cannot be deleted via the API — remove them from the repository instead.

**Example Request**

> [tab] GraphQL
>
> ```python theme={"system"}
> import requests
>
> api_endpoint = "<YOUR_API_ENDPOINT>"
> api_token = "<YOUR_API_TOKEN>"          # account API key (starts with prdm_cmp_)
> workspace_uid = "<YOUR_WORKSPACE_UID>"
>
> graphql_query = """
> mutation DeleteBoltSchedule($slug: String!) {
>     deleteBoltSchedule(slug: $slug) {
>         ok
>     }
> }
> """
>
> variables = {"slug": "nightly-build-a1b2c3"}
>
> response = requests.post(
>     api_endpoint,
>     json={"query": graphql_query, "variables": variables},
>     headers={
>         "Content-Type": "application/json",
>         "Authorization": f"Bearer {api_token}",
>         "X-Paradime-Workspace": workspace_uid,
>     },
> )
>
> print(response.json())
> ```

> [tab] cURL
>
> ```bash theme={"system"}
> curl -X POST "<YOUR_API_ENDPOINT>" \
>      -H "Content-Type: application/json" \
>      -H "Authorization: Bearer <YOUR_API_TOKEN>" \
>      -H "X-Paradime-Workspace: <YOUR_WORKSPACE_UID>" \
>      -d '{
>        "query": "mutation DeleteBoltSchedule($slug: String!) { deleteBoltSchedule(slug: $slug) { ok } }",
>        "variables": {
>          "slug": "nightly-build-a1b2c3"
>        }
>      }'
> ```

> [accordion] Example response
>
> ```json theme={"system"}
> {
>   "data": {
>     "deleteBoltSchedule": {
>       "ok": true
>     }
>   }
> }
> ```

> [!WARNING]
>
> This endpoint will return an error if the slug does not match a UI/API-created schedule in the workspace (e.g. it belongs to a YAML-defined schedule, has already been deleted, or never existed).

## FAQ

> [accordion] How do I get the debug logs for a command?
>
> The **Debug logs** toggle on a run page shows dbt™'s `logs/dbt.log` file for that command, which holds the debug-level output. The `stdout` and `stderr` fields that [`boltRunStatus`](#get-bolt-run-status) and [`boltCommand`](#get-bolt-command-details) return are the console logs.
>
> To download the debug log:
>
> 1. Call `boltCommand(commandId)` and find the resource whose `path` is `logs/dbt.log`.
> 2. Pass its `id` to [`boltResourceUrl`](#get-bolt-command-resource-url) to get a download URL.
>
> If you start from the [`bolt.run.completed` webhook](https://docs.paradime.io/developers/webhooks/bolt-run-completed), each command's `api_query` is this same `boltCommand` query. The payload's `json_resources` lists only the JSON artifacts directly in `target/`, such as `manifest.json` and `run_results.json`, so the log file is not in it.

> [accordion] How do I list every run ID?
>
> 1. List your schedules with [`listBoltSchedules`](#list-bolt-schedules), once with `showInactive: false` and once with `showInactive: true`. The second call returns only the schedules that are no longer in your configuration, so you need both.
> 2. For each slug, page through [`listBoltRuns`](#list-runs-for-a-schedule) with `offset` until a call returns fewer runs than your `limit`. Runs come back newest first, up to 1000 per call.
>
> To capture runs as they happen instead, subscribe to the `bolt.run.started` and `bolt.run.completed` [webhooks](https://docs.paradime.io/developers/webhooks.md). Both carry the run ID in their `id` field.


## Related topics

- [Bolt API](https://docs.paradime.io/products/bolt/bolt-api.md)
- [Bolt API and schedule trigger errors](https://docs.paradime.io/get-help/error-list/bolt-api-and-schedule-trigger-errors.md)
- [API Reference](https://docs.paradime.io/developers/graphql-api/api-reference/index.md)
- [Discovery API](https://docs.paradime.io/developers/graphql-api/api-reference/discovery-api.md)
- [Trigger Bolt externally](https://docs.paradime.io/guides/orchestrate-data-pipelines/trigger-bolt-externally.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.