Deepnote Public API v2
Runs API
Notebook executions.
Base URL
https://api.deepnote.com/v2Run a notebook
post
/runsRequest body
required
application/json
objectnotebookIdrequiredstringID of the notebook to run.
detachedbooleanRun the notebook as a detached run so it does not affect the live editor session.
detachedRunStorageMode"read_write" | "readonly"Storage mode for the detached run. `read_write` (default) mounts project storage as writable; `readonly` mounts it as read-only so the run cannot modify the persistent project storage, but can create ephemeral files outside of the persistent project storage directory. Only applies to detached runs.
inputsobjectInput values to use for this run, keyed by the input `name` returned from `GET /notebooks/{notebookId}`. Values must match the referenced input block type.
Responses
▸202Run started
application/json
CreateRunResponserunIdrequiredstring:uuidstatusrequired"pending" | "running" | "success" | "error" | "internal_error" | "stopped"createdAtrequiredstring:date-time▸400Validation error or notebook/project issue
application/json
ErrorResponsemessagerequiredstring▸401Unauthorized
application/json
ErrorResponsemessagerequiredstring▸403Insufficient permissions
application/json
ErrorResponsemessagerequiredstring▸500Hardware unable to start
application/json
ErrorResponsemessagerequiredstringGet a run
get
/runs/{runId}Parameters
runIdpathrequiredstring:uuidsnapshotDeliveryquery"inline" | "downloadUrl"Controls how an available run snapshot is returned. Defaults to `downloadUrl`. Use `inline` to return `snapshotContent` directly.
Responses
▸200Run details
application/json
GetRunResponserunrequiredRun▸400Validation error
application/json
ErrorResponsemessagerequiredstring▸401Unauthorized
application/json
ErrorResponsemessagerequiredstring▸403Insufficient permissions
application/json
ErrorResponsemessagerequiredstring▸404Run not found
application/json
ErrorResponsemessagerequiredstring▸409Project is suspended
application/json
ErrorResponsemessagerequiredstring▸500Internal server error
application/json
ErrorResponsemessagerequiredstring