---
title: "Get a run"
method: GET
path: "/runs/{runId}"
tags: ["Runs"]
---

# Get a run

`GET /runs/{runId}`

## Path parameters

- `runId` string, uuid, required

## Query parameters

- `snapshotDelivery` 'inline' | 'downloadUrl' — Controls how an available run snapshot is returned. Defaults to `downloadUrl`. Use `inline` to return `snapshotContent` directly.

## Response `200`

Run details

- GetRunResponse
  - `run` Run, required
    - `runId` string, uuid, required
    - `notebookId` string, required — Opaque notebook identifier.
    - `status` 'pending' | 'running' | 'success' | 'error' | 'internal_error' | 'stopped', required
    - `snapshotContent` string, nullable, required — Full `.snapshot.deepnote` content when requested with `snapshotDelivery=inline` and the run snapshot is available. Null when unavailable or when `snapshotDelivery=downloadUrl`.
    - `snapshotDownloadUrl` string, uri, nullable, required — Short-lived, presigned URL for downloading the `.snapshot.deepnote` file when `snapshotDelivery=downloadUrl` (the default). Null when unavailable or when `snapshotDelivery=inline`.
    - `error` string, nullable — Error message when status is error, internal_error, or stopped (e.g. a stopped run whose module submission failed).
    - `createdAt` string, date-time, required
    - `completedAt` string, date-time, nullable

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `403` — Insufficient permissions
- `404` — Run not found
- `409` — Project is suspended
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/deepnote/apis/deepnote-public-api.md) · [All operations](https://skmtc.net/deepnote/apis/deepnote-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepnote/deepnote-public-api/revisions/726970fd2992/schema)
