# Runs

Submit pipeline runs, follow their progress, and download their files.

## GET /v1/pipelines

List pipelines

Named pipelines accepted by POST /v1/projects/{project_id}/runs.

/v1/job-types only covers the jobs endpoint, which left run-only pipelines with
no discovery path at all.

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/pipelines
```

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/PipelinesResponse",
  "$defs": {
    "CatalogPriceResponse": {
      "type": "object",
      "description": "The price of a standard basket, so two models can be compared on one number.",
      "required": [
        "credits",
        "count",
        "unit"
      ],
      "properties": {
        "credits": {
          "type": "integer"
        },
        "count": {
          "type": "integer"
        },
        "unit": {
          "type": "string"
        }
      }
    },
    "StagePricingResponse": {
      "type": "object",
      "required": [
        "stage",
        "unit",
        "cents",
        "cap",
        "gpu"
      ],
      "properties": {
        "stage": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "cents": {
          "type": "integer"
        },
        "cap": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "gpu": {
          "type": "string"
        },
        "per": {
          "type": "integer",
          "default": 1
        },
        "included": {
          "type": "integer",
          "default": 0
        },
        "start_cents": {
          "type": "integer",
          "default": 0
        },
        "basket": {
          "type": "integer",
          "default": 1
        }
      }
    },
    "PipelineTypeResponse": {
      "type": "object",
      "required": [
        "pipeline_type",
        "credit_cost",
        "pricing",
        "available_as_job",
        "default_params",
        "available",
        "gate_reason",
        "environments"
      ],
      "properties": {
        "pipeline_type": {
          "type": "string"
        },
        "credit_cost": {
          "type": "integer"
        },
        "catalog_price": {
          "anyOf": [
            {
              "$ref": "#/$defs/CatalogPriceResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "rate_revision": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pricing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StagePricingResponse"
          }
        },
        "available_as_job": {
          "type": "boolean"
        },
        "default_params": {
          "type": "object",
          "additionalProperties": true
        },
        "available": {
          "type": "boolean"
        },
        "gate_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "environments": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "typical_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "PipelinesResponse": {
      "type": "object",
      "required": [
        "pipelines"
      ],
      "properties": {
        "pipelines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PipelineTypeResponse"
          }
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "pipelines": [
    {
      "pipeline_type": "<value>",
      "credit_cost": 0,
      "catalog_price": {
        "credits": 0,
        "count": 0,
        "unit": "<value>"
      },
      "rate_revision": "<value>",
      "pricing": [
        {
          "stage": "<value>",
          "unit": "<value>",
          "cents": 0,
          "cap": 0,
          "gpu": "<value>",
          "per": 1,
          "included": 0,
          "start_cents": 0,
          "basket": 1
        }
      ],
      "available_as_job": false,
      "default_params": {},
      "available": false,
      "gate_reason": "<value>",
      "environments": [
        "<value>"
      ],
      "typical_seconds": 0
    }
  ]
}
```

## GET /v1/projects/{project_id}/runs

List project runs

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/projects/{project_id}/runs
```

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| project_id | path | string | Required |  | format: uuid |
| page | query | integer | Optional | 1 | minimum: 1 |
| page_size | query | integer | Optional | 20 | minimum: 1; maximum: 200 |
| batch_id | query | string or null | Optional |  |  |
| source_run_id | query | string or null | Optional |  | Only the runs sourced from this run, the reverse of a run's own source_run_id. Answers 'what scored this run' without paging the project. |
| cursor | query | string or null | Optional |  | Opaque keyset cursor from a prior X-Next-Cursor header |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/RunResponse"
  },
  "$defs": {
    "RunHeadline": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "pass_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunSummary": {
      "type": "object",
      "description": "A completed run at a glance. The headline and sample count are stored at\ncompletion; the duration is the run's own completed_at - created_at.",
      "properties": {
        "duration_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "headline": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunHeadline"
            },
            {
              "type": "null"
            }
          ]
        },
        "sample_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunResponse": {
      "type": "object",
      "required": [
        "id",
        "project_id",
        "user_id",
        "name",
        "pipeline_type",
        "status",
        "estimated_credits",
        "consumed_credits",
        "created_at",
        "updated_at",
        "completed_at",
        "error"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "project_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_id": {
          "type": "string"
        },
        "actor_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "actor_ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "batch_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_type": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "estimated_credits": {
          "type": "integer"
        },
        "consumed_credits": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "context": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "summary": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunSummary"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
[
  {
    "error_code": "<value>",
    "exit_code": 0,
    "recommended_action": "<value>",
    "id": "00000000-0000-4000-8000-000000000000",
    "project_id": "00000000-0000-4000-8000-000000000000",
    "dataset_id": "00000000-0000-4000-8000-000000000000",
    "source_run_id": "00000000-0000-4000-8000-000000000000",
    "user_id": "<value>",
    "actor_kind": "<value>",
    "actor_ref": "<value>",
    "name": "<value>",
    "batch_id": "<value>",
    "pipeline_type": "<value>",
    "status": "<value>",
    "estimated_credits": 0,
    "consumed_credits": 0,
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "completed_at": "2026-01-01T00:00:00Z",
    "error": "<value>",
    "context": {},
    "summary": {
      "duration_seconds": 0,
      "headline": {
        "key": "<value>",
        "value": 0,
        "pass_count": 0
      },
      "sample_count": 0
    }
  }
]
```

## POST /v1/projects/{project_id}/runs

Submit run

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/projects/{project_id}/runs \
  -H "content-type: application/json" \
  -d '{
  "inputs": {}
}'
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| project_id | path | string | Required | format: uuid |

### Body

| Field | Type | Required | Default |
|---|---|---|---|
| name | string or null | Optional |  |
| pipeline_type | string | Optional | "BINDER_DESIGN" |
| idempotency_key | string or null | Optional |  |
| batch_id | string or null | Optional |  |
| dataset_id | string or null | Optional |  |
| inputs | object | Required |  |
| params | object | Optional |  |
| context | object or null | Optional |  |

Returns 202 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/RunSubmit",
  "$defs": {
    "SpecFile": {
      "type": "object",
      "required": [
        "path",
        "content"
      ],
      "properties": {
        "path": {
          "type": "string",
          "description": "Relative path of this file within the design-spec bundle (e.g. 'VHH/pdl1_nanobody.yaml', 'prepared/pdl1.pdb'). Forward-slash separated; absolute or '..'-escaping paths are rejected."
        },
        "content": {
          "type": "string",
          "description": "Base64-encoded file contents."
        }
      },
      "additionalProperties": false
    },
    "RunInputs": {
      "type": "object",
      "properties": {
        "design_spec_files": {
          "description": "Design-spec bundle: the entry YAML plus every file it references (scaffold YAMLs, target/framework structures), each tagged with its relative path. Provide a design spec via this, design_spec_gcs_prefix, or design_spec_yaml.",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/SpecFile"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "design_spec_entry": {
          "description": "Relative path (within the bundle) of the YAML to run with `boltzgen run`. Defaults to the sole top-level *.yaml when unambiguous.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "design_spec_gcs_prefix": {
          "description": "gs:// prefix whose objects already mirror the design-spec bundle tree (alternative to design_spec_files for large/reused frameworks). Use with design_spec_entry.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "design_spec_yaml": {
          "description": "Inline single-file design spec with no external file references. Sugar for a one-file design_spec_files bundle.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_pdb": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_chain_id": {
          "type": "string",
          "default": "A"
        },
        "sequences": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "additionalProperties": true
                  }
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "binder_chain_id": {
          "type": "string",
          "default": "A"
        },
        "binder_pdbs": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "target_cif": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_cif_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_cifs_gcs_prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_gcs_prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_uris": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "source_run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "design_set": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "motif_pdb": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "motif_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "motif_segment_config_str": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "motif_total_length_min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "motif_total_length_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "RunParams": {
      "type": "object",
      "properties": {
        "num_seq_per_target": {
          "type": "integer",
          "default": 4
        },
        "sampling_temp": {
          "type": "number",
          "default": 0.1
        },
        "esmfold_batch_size": {
          "type": "integer",
          "default": 24,
          "minimum": 1
        },
        "proteinmpnn_batch_size": {
          "type": "integer",
          "default": 16,
          "minimum": 1
        },
        "hotspots": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "binder_length_min": {
          "type": "integer",
          "default": 70
        },
        "binder_length_max": {
          "type": "integer",
          "default": 100
        },
        "num_designs": {
          "type": "integer",
          "default": 100
        },
        "num_timesteps": {
          "type": "integer",
          "default": 200
        },
        "step_scale": {
          "type": "number",
          "default": 3
        },
        "is_non_loopy": {
          "description": "Penalize loop-heavy backbones. null leaves it unset for RFD3's native default.",
          "default": true,
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "protocol": {
          "type": "string",
          "default": "protein-anything"
        },
        "budget": {
          "type": "integer",
          "default": 50
        },
        "inverse_fold_num_sequences": {
          "type": "integer",
          "default": 1
        },
        "refolding_rmsd_threshold": {
          "type": "number",
          "default": 2
        },
        "alpha": {
          "type": "number",
          "default": 0.5
        },
        "gpu": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "a100",
                "t4",
                "a100_80gb",
                "h100",
                "a100_or_h100",
                "a100_80gb_or_h100",
                "a100_preferred",
                "h100_preferred"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true
    },
    "RunSubmit": {
      "type": "object",
      "required": [
        "inputs"
      ],
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_type": {
          "type": "string",
          "default": "BINDER_DESIGN"
        },
        "idempotency_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "batch_id": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "inputs": {
          "$ref": "#/$defs/RunInputs"
        },
        "params": {
          "$ref": "#/$defs/RunParams"
        },
        "context": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 202 response (application/json)

### 202 response fields and schema

```json
{
  "type": "object",
  "additionalProperties": true
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{}
```

## POST /v1/projects/{project_id}/runs/estimate

Estimate run

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/projects/{project_id}/runs/estimate \
  -H "content-type: application/json" \
  -d '{}'
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| project_id | path | string | Required | format: uuid |

### Body

| Field | Type | Required | Default |
|---|---|---|---|
| pipeline_type | string | Optional | "BINDER_DESIGN" |
| params | object | Optional |  |
| inputs | object | Optional |  |
| num_designs | integer or null | Optional |  |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/RunEstimateRequest",
  "$defs": {
    "RunEstimateRequest": {
      "type": "object",
      "properties": {
        "pipeline_type": {
          "type": "string",
          "default": "BINDER_DESIGN"
        },
        "params": {
          "type": "object",
          "additionalProperties": true
        },
        "inputs": {
          "type": "object",
          "additionalProperties": true
        },
        "num_designs": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/RunEstimateResponse",
  "$defs": {
    "QuoteLineResponse": {
      "type": "object",
      "required": [
        "stage",
        "unit",
        "count",
        "cents"
      ],
      "properties": {
        "stage": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "count": {
          "type": "integer"
        },
        "cents": {
          "type": "integer"
        }
      }
    },
    "RunEstimateResponse": {
      "type": "object",
      "required": [
        "pipeline_type",
        "estimated_credits",
        "breakdown"
      ],
      "properties": {
        "pipeline_type": {
          "type": "string"
        },
        "estimated_credits": {
          "type": "integer"
        },
        "breakdown": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuoteLineResponse"
          }
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "pipeline_type": "<value>",
  "estimated_credits": 0,
  "breakdown": [
    {
      "stage": "<value>",
      "unit": "<value>",
      "count": 0,
      "cents": 0
    }
  ]
}
```

## DELETE /v1/runs/{run_id}

Cancel run

```bash
curl -H "x-api-key: $PHI_KEY" -X DELETE https://api.dynophi.com/v1/runs/{run_id}
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| run_id | path | string | Required | format: uuid |

Returns 204 or 422.

### 204 response

No response body.

## GET /v1/runs/{run_id}

Get run

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| run_id | path | string | Required | format: uuid |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/RunDetailResponse",
  "$defs": {
    "RunHeadline": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "pass_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunSummary": {
      "type": "object",
      "description": "A completed run at a glance. The headline and sample count are stored at\ncompletion; the duration is the run's own completed_at - created_at.",
      "properties": {
        "duration_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "headline": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunHeadline"
            },
            {
              "type": "null"
            }
          ]
        },
        "sample_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunDetailResponse": {
      "type": "object",
      "required": [
        "id",
        "project_id",
        "user_id",
        "name",
        "pipeline_type",
        "status",
        "estimated_credits",
        "consumed_credits",
        "created_at",
        "updated_at",
        "completed_at",
        "error",
        "params"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "project_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_id": {
          "type": "string"
        },
        "actor_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "actor_ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "batch_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_type": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "estimated_credits": {
          "type": "integer"
        },
        "consumed_credits": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "context": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "summary": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "params": {
          "type": "object",
          "additionalProperties": true
        },
        "inputs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "input_manifest_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "error_code": "<value>",
  "exit_code": 0,
  "recommended_action": "<value>",
  "id": "00000000-0000-4000-8000-000000000000",
  "project_id": "00000000-0000-4000-8000-000000000000",
  "dataset_id": "00000000-0000-4000-8000-000000000000",
  "source_run_id": "00000000-0000-4000-8000-000000000000",
  "user_id": "<value>",
  "actor_kind": "<value>",
  "actor_ref": "<value>",
  "name": "<value>",
  "batch_id": "<value>",
  "pipeline_type": "<value>",
  "status": "<value>",
  "estimated_credits": 0,
  "consumed_credits": 0,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "completed_at": "2026-01-01T00:00:00Z",
  "error": "<value>",
  "context": {},
  "summary": {
    "duration_seconds": 0,
    "headline": {
      "key": "<value>",
      "value": 0,
      "pass_count": 0
    },
    "sample_count": 0
  },
  "params": {},
  "inputs": {},
  "input_manifest_uri": "<value>"
}
```

## GET /v1/runs/{run_id}/artifacts

List run artifacts

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/artifacts
```

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| run_id | path | string | Required |  | format: uuid |
| stage | query | string or null | Optional |  | Filter to a specific stage, e.g. boltzgen_design |
| pipeline_node_id | query | string or null | Optional |  | Filter to a graph node id |
| suffix | query | string or null | Optional |  | Filter by file extension, e.g. .cif |
| expires_in | query | integer | Optional | 3600 | Signed URL TTL in seconds minimum: 60; maximum: 86400 |
| page_size | query | integer or null | Optional |  | Artifacts per page. Omit with cursor to use 200; omit both for one full list. |
| cursor | query | string or null | Optional |  | Opaque keyset cursor from a prior X-Next-Cursor header |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/ArtifactItem"
  },
  "$defs": {
    "ArtifactItem": {
      "type": "object",
      "required": [
        "name",
        "stage",
        "size",
        "content_type",
        "url"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "size": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "content_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "url": {
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
[
  {
    "name": "<value>",
    "stage": "<value>",
    "pipeline_node_id": "<value>",
    "size": 0,
    "content_type": "<value>",
    "url": "<value>",
    "id": "00000000-0000-4000-8000-000000000000",
    "kind": "<value>"
  }
]
```

## GET /v1/runs/{run_id}/artifacts/{artifact_id}/url

Get run artifact URL

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/artifacts/{artifact_id}/url
```

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| run_id | path | string | Required |  | format: uuid |
| artifact_id | path | string | Required |  | format: uuid |
| expires_in | query | integer | Optional | 3600 | Signed URL TTL in seconds minimum: 60; maximum: 86400 |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/ArtifactUrlResponse",
  "$defs": {
    "ArtifactUrlResponse": {
      "type": "object",
      "required": [
        "url",
        "expires_in"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "expires_in": {
          "type": "integer"
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "url": "<value>",
  "expires_in": 0
}
```

## GET /v1/runs/{run_id}/backbone-uris

List backbone URIs

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/backbone-uris
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| run_id | path | string | Required | format: uuid |
| pipeline_node_id | query | string or null | Optional |  |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "type": "array",
  "items": {
    "type": "string"
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
[
  "<value>"
]
```

## GET /v1/runs/{run_id}/dag

Get run DAG

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/dag
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| run_id | path | string | Required | format: uuid |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/RunDagResponse",
  "$defs": {
    "DagNodeResponse": {
      "type": "object",
      "required": [
        "id",
        "stage_type",
        "batch_index",
        "status"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string"
        },
        "stage_type": {
          "type": "string"
        },
        "batch_index": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "k8s_job_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "progress_pct": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "DagEdgeResponse": {
      "type": "object",
      "required": [
        "from_node",
        "to_node"
      ],
      "properties": {
        "from_node": {
          "type": "string"
        },
        "to_node": {
          "type": "string"
        }
      }
    },
    "RunDagResponse": {
      "type": "object",
      "required": [
        "run_id",
        "pipeline_type",
        "overall_status",
        "nodes",
        "edges"
      ],
      "properties": {
        "run_id": {
          "type": "string",
          "format": "uuid"
        },
        "pipeline_type": {
          "type": "string"
        },
        "overall_status": {
          "type": "string"
        },
        "nodes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DagNodeResponse"
          }
        },
        "edges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DagEdgeResponse"
          }
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "run_id": "00000000-0000-4000-8000-000000000000",
  "pipeline_type": "<value>",
  "overall_status": "<value>",
  "nodes": [
    {
      "error_code": "<value>",
      "exit_code": 0,
      "recommended_action": "<value>",
      "id": "<value>",
      "stage_type": "<value>",
      "batch_index": 0,
      "status": "<value>",
      "k8s_job_name": "<value>",
      "progress_pct": 0,
      "started_at": "2026-01-01T00:00:00Z",
      "completed_at": "2026-01-01T00:00:00Z",
      "error": "<value>"
    }
  ],
  "edges": [
    {
      "from_node": "<value>",
      "to_node": "<value>"
    }
  ]
}
```

## POST /v1/runs/{run_id}/resume

Resume run

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/runs/{run_id}/resume
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| run_id | path | string | Required | format: uuid |

Returns 202 or 422.

### 202 response (application/json)

### 202 response fields and schema

```json
{
  "type": "object",
  "additionalProperties": true
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{}
```

## GET /v1/runs/{run_id}/timeline

Get run timeline

```bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/timeline
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| run_id | path | string | Required | format: uuid |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/RunTimelineResponse",
  "$defs": {
    "StageEventResponse": {
      "type": "object",
      "required": [
        "event_type",
        "message",
        "progress_pct",
        "occurred_at"
      ],
      "properties": {
        "event_type": {
          "type": "string"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "progress_pct": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "occurred_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "StageResponse": {
      "type": "object",
      "required": [
        "stage",
        "pipeline_node_id",
        "stage_order",
        "status",
        "started_at",
        "completed_at",
        "error"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "type": "string"
        },
        "pipeline_node_id": {
          "type": "string"
        },
        "stage_order": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StageEventResponse"
          }
        }
      }
    },
    "RunTimelineResponse": {
      "type": "object",
      "required": [
        "run_id",
        "pipeline_type",
        "overall_status",
        "stages"
      ],
      "properties": {
        "run_id": {
          "type": "string",
          "format": "uuid"
        },
        "pipeline_type": {
          "type": "string"
        },
        "overall_status": {
          "type": "string"
        },
        "stages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StageResponse"
          }
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "run_id": "00000000-0000-4000-8000-000000000000",
  "pipeline_type": "<value>",
  "overall_status": "<value>",
  "stages": [
    {
      "error_code": "<value>",
      "exit_code": 0,
      "recommended_action": "<value>",
      "stage": "<value>",
      "pipeline_node_id": "<value>",
      "stage_order": 0,
      "status": "<value>",
      "started_at": "2026-01-01T00:00:00Z",
      "completed_at": "2026-01-01T00:00:00Z",
      "error": "<value>",
      "events": [
        {
          "event_type": "<value>",
          "message": "<value>",
          "progress_pct": 0,
          "occurred_at": "2026-01-01T00:00:00Z"
        }
      ]
    }
  ]
}
```

## POST /v1/runs/delete

Delete runs

Only an organization admin can use this.

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/runs/delete \
  -H "content-type: application/json" \
  -d '{
  "run_ids": [
    "<run_id>"
  ],
  "dry_run": true
}'
```

### Body

| Field | Type | Required | Default |
|---|---|---|---|
| run_ids | (string)[] or null | Optional |  |
| project_name | string or null | Optional |  |
| dataset_name | string or null | Optional |  |
| dry_run | boolean | Optional | false |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/RunDeleteRequest",
  "$defs": {
    "RunDeleteRequest": {
      "type": "object",
      "properties": {
        "run_ids": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "project_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "dry_run": {
          "type": "boolean",
          "default": false
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/RunDeleteResponse",
  "$defs": {
    "RunDeleteResponse": {
      "type": "object",
      "required": [
        "affected_run_ids",
        "dry_run"
      ],
      "properties": {
        "affected_run_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "dry_run": {
          "type": "boolean"
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "affected_run_ids": [
    "00000000-0000-4000-8000-000000000000"
  ],
  "dry_run": false
}
```

## POST /v1/runs/restore

Restore deleted runs

Only an organization admin can use this.

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/runs/restore \
  -H "content-type: application/json" \
  -d '{
  "run_ids": [
    "<run_id>"
  ]
}'
```

### Body

| Field | Type | Required |
|---|---|---|
| run_ids | (string)[] or null | Optional |
| project_name | string or null | Optional |
| dataset_name | string or null | Optional |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/RunRestoreRequest",
  "$defs": {
    "RunRestoreRequest": {
      "type": "object",
      "properties": {
        "run_ids": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "project_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/RunRestoreResponse",
  "$defs": {
    "RunRestoreResponse": {
      "type": "object",
      "required": [
        "affected_run_ids"
      ],
      "properties": {
        "affected_run_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    }
  }
}
```

Illustrative response shape. Values are placeholders, not a recorded result.

```json
{
  "affected_run_ids": [
    "00000000-0000-4000-8000-000000000000"
  ]
}
```


---
Source: https://dynophi.com/docs/api/runs. From phi-api 0.2.2, 2026-11-23.
