# Designs

Read, update, move, and export designs, and trace where a design came from.

## PATCH /v1/designs

Curate designs

```bash
curl -H "x-api-key: $PHI_KEY" -X PATCH https://api.dynophi.com/v1/designs \
  -H "content-type: application/json" \
  -d '{
  "ids": [
    "<id>"
  ]
}'
```

### Body

| Field | Type | Required | Description |
|---|---|---|---|
| is_starred | boolean or null | Optional |  |
| curation_status | "unreviewed" \| "promising" \| "rejected" \| "selected" or null | Optional |  |
| user_notes | string or null | Optional |  |
| ids | (string)[] | Required | minimum items: 1 |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/DesignCurateRequest",
  "$defs": {
    "DesignCurateRequest": {
      "type": "object",
      "required": [
        "ids"
      ],
      "properties": {
        "is_starred": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unreviewed",
                "promising",
                "rejected",
                "selected"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "ids": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/DesignResponse"
  },
  "$defs": {
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "missing_input",
            "not_applicable",
            "failed",
            "unsupported"
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DesignResponse": {
      "type": "object",
      "required": [
        "id",
        "type",
        "root_design_id",
        "project_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "source_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_method_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "import_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean",
          "default": false
        },
        "curation_status": {
          "type": "string",
          "default": "unreviewed"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EvaluationSummary"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
[
  {
    "id": "00000000-0000-4000-8000-000000000000",
    "type": "<value>",
    "parent_id": "00000000-0000-4000-8000-000000000000",
    "root_design_id": "00000000-0000-4000-8000-000000000000",
    "source_method": "<value>",
    "source_method_type": "<value>",
    "project_id": "00000000-0000-4000-8000-000000000000",
    "dataset_id": "00000000-0000-4000-8000-000000000000",
    "run_id": "00000000-0000-4000-8000-000000000000",
    "pipeline_node_id": "<value>",
    "config_fingerprint": "<value>",
    "import_id": "00000000-0000-4000-8000-000000000000",
    "name": "<value>",
    "sequence": "<value>",
    "length": 0,
    "structure_uri": "<value>",
    "is_starred": false,
    "curation_status": "unreviewed",
    "user_notes": "<value>",
    "curated_by": "<value>",
    "curated_at": "2026-01-01T00:00:00Z",
    "evaluations": [
      {
        "run_id": "00000000-0000-4000-8000-000000000000",
        "pipeline_node_id": "<value>",
        "config_fingerprint": "<value>",
        "tool": "<value>",
        "mode": "<value>",
        "status": "ok",
        "error": "<value>",
        "metrics": {},
        "params": {},
        "pae_json_uri": "<value>",
        "created_at": "2026-01-01T00:00:00Z"
      }
    ],
    "extra": {},
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "passes": false,
    "gates_failed": [
      "<value>"
    ]
  }
]
```

## DELETE /v1/designs/{design_id}

Delete design

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

### Parameters

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

Returns 204 or 422.

### 204 response

No response body.

## GET /v1/designs/{design_id}

Get design

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

### Parameters

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

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/DesignResponse",
  "$defs": {
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "missing_input",
            "not_applicable",
            "failed",
            "unsupported"
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DesignResponse": {
      "type": "object",
      "required": [
        "id",
        "type",
        "root_design_id",
        "project_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "source_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_method_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "import_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean",
          "default": false
        },
        "curation_status": {
          "type": "string",
          "default": "unreviewed"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EvaluationSummary"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "id": "00000000-0000-4000-8000-000000000000",
  "type": "<value>",
  "parent_id": "00000000-0000-4000-8000-000000000000",
  "root_design_id": "00000000-0000-4000-8000-000000000000",
  "source_method": "<value>",
  "source_method_type": "<value>",
  "project_id": "00000000-0000-4000-8000-000000000000",
  "dataset_id": "00000000-0000-4000-8000-000000000000",
  "run_id": "00000000-0000-4000-8000-000000000000",
  "pipeline_node_id": "<value>",
  "config_fingerprint": "<value>",
  "import_id": "00000000-0000-4000-8000-000000000000",
  "name": "<value>",
  "sequence": "<value>",
  "length": 0,
  "structure_uri": "<value>",
  "is_starred": false,
  "curation_status": "unreviewed",
  "user_notes": "<value>",
  "curated_by": "<value>",
  "curated_at": "2026-01-01T00:00:00Z",
  "evaluations": [
    {
      "run_id": "00000000-0000-4000-8000-000000000000",
      "pipeline_node_id": "<value>",
      "config_fingerprint": "<value>",
      "tool": "<value>",
      "mode": "<value>",
      "status": "ok",
      "error": "<value>",
      "metrics": {},
      "params": {},
      "pae_json_uri": "<value>",
      "created_at": "2026-01-01T00:00:00Z"
    }
  ],
  "extra": {},
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "passes": false,
  "gates_failed": [
    "<value>"
  ]
}
```

## PATCH /v1/designs/{design_id}

Curate design

```bash
curl -H "x-api-key: $PHI_KEY" -X PATCH https://api.dynophi.com/v1/designs/{design_id} \
  -H "content-type: application/json" \
  -d '{}'
```

### Parameters

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

### Body

| Field | Type | Required |
|---|---|---|
| name | string or null | Optional |
| is_starred | boolean or null | Optional |
| curation_status | "unreviewed" \| "promising" \| "rejected" \| "selected" or null | Optional |
| user_notes | string or null | Optional |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/DesignPatchRequest",
  "$defs": {
    "DesignPatchRequest": {
      "type": "object",
      "description": "Body of ``PATCH /v1/designs/{id}``: a rename, curation, or both in one call.",
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unreviewed",
                "promising",
                "rejected",
                "selected"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/DesignResponse",
  "$defs": {
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "missing_input",
            "not_applicable",
            "failed",
            "unsupported"
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DesignResponse": {
      "type": "object",
      "required": [
        "id",
        "type",
        "root_design_id",
        "project_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "source_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_method_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "import_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean",
          "default": false
        },
        "curation_status": {
          "type": "string",
          "default": "unreviewed"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EvaluationSummary"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "id": "00000000-0000-4000-8000-000000000000",
  "type": "<value>",
  "parent_id": "00000000-0000-4000-8000-000000000000",
  "root_design_id": "00000000-0000-4000-8000-000000000000",
  "source_method": "<value>",
  "source_method_type": "<value>",
  "project_id": "00000000-0000-4000-8000-000000000000",
  "dataset_id": "00000000-0000-4000-8000-000000000000",
  "run_id": "00000000-0000-4000-8000-000000000000",
  "pipeline_node_id": "<value>",
  "config_fingerprint": "<value>",
  "import_id": "00000000-0000-4000-8000-000000000000",
  "name": "<value>",
  "sequence": "<value>",
  "length": 0,
  "structure_uri": "<value>",
  "is_starred": false,
  "curation_status": "unreviewed",
  "user_notes": "<value>",
  "curated_by": "<value>",
  "curated_at": "2026-01-01T00:00:00Z",
  "evaluations": [
    {
      "run_id": "00000000-0000-4000-8000-000000000000",
      "pipeline_node_id": "<value>",
      "config_fingerprint": "<value>",
      "tool": "<value>",
      "mode": "<value>",
      "status": "ok",
      "error": "<value>",
      "metrics": {},
      "params": {},
      "pae_json_uri": "<value>",
      "created_at": "2026-01-01T00:00:00Z"
    }
  ],
  "extra": {},
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "passes": false,
  "gates_failed": [
    "<value>"
  ]
}
```

## GET /v1/designs/{design_id}/lineage

Get design lineage

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

### Parameters

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

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/DesignLineageResponse",
  "$defs": {
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "missing_input",
            "not_applicable",
            "failed",
            "unsupported"
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DesignResponse": {
      "type": "object",
      "required": [
        "id",
        "type",
        "root_design_id",
        "project_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "source_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_method_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "import_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean",
          "default": false
        },
        "curation_status": {
          "type": "string",
          "default": "unreviewed"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EvaluationSummary"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "LineageRun": {
      "type": "object",
      "required": [
        "id",
        "pipeline_type",
        "status",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_type": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "context": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunEvaluations": {
      "type": "object",
      "required": [
        "evaluations"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationSummary"
          }
        }
      }
    },
    "CampaignResponse": {
      "type": "object",
      "required": [
        "id",
        "organization_id",
        "project_id",
        "name",
        "objective",
        "status",
        "created_by",
        "created_at",
        "updated_at",
        "archived_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "organization_id": {
          "type": "string"
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "objective": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string"
        },
        "created_by": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "archived_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "GateResponse": {
      "type": "object",
      "required": [
        "id",
        "campaign_id",
        "name",
        "stage",
        "tool",
        "mode",
        "metric",
        "op",
        "value",
        "sort_order",
        "source",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "campaign_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metric": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "op": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "sort_order": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "SliceResponse": {
      "type": "object",
      "required": [
        "id",
        "campaign_id",
        "name",
        "library",
        "target_id",
        "hotspot_set_id",
        "pipeline_type",
        "params_fingerprint",
        "length_min",
        "length_max",
        "planned",
        "sort_order",
        "is_pilot",
        "pilot_id",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "campaign_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "library": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "hotspot_set_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "params_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length_min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "length_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "planned": {
          "type": "integer"
        },
        "sort_order": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_pilot": {
          "type": "boolean"
        },
        "pilot_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "TargetChain": {
      "type": "object",
      "properties": {
        "auth": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "range": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "TargetResponse": {
      "type": "object",
      "required": [
        "id",
        "campaign_id",
        "name",
        "structure_uri",
        "source",
        "source_ref",
        "chains",
        "design_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "campaign_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "chains": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TargetChain"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "design_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "HotspotResidue": {
      "type": "object",
      "properties": {
        "chain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "auth_seq": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "ins_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "HotspotSetResponse": {
      "type": "object",
      "required": [
        "id",
        "campaign_id",
        "target_id",
        "name",
        "residues",
        "evidence",
        "created_by",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "campaign_id": {
          "type": "string",
          "format": "uuid"
        },
        "target_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "residues": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/HotspotResidue"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "evidence": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ]
        },
        "created_by": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "LineageSlice": {
      "type": "object",
      "required": [
        "campaign_slice",
        "run_ids"
      ],
      "properties": {
        "campaign_slice": {
          "$ref": "#/$defs/SliceResponse"
        },
        "target": {
          "anyOf": [
            {
              "$ref": "#/$defs/TargetResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "hotspot_set": {
          "anyOf": [
            {
              "$ref": "#/$defs/HotspotSetResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    },
    "LineageCampaign": {
      "type": "object",
      "required": [
        "campaign",
        "gates",
        "slices"
      ],
      "properties": {
        "campaign": {
          "$ref": "#/$defs/CampaignResponse"
        },
        "gates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GateResponse"
          }
        },
        "slices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LineageSlice"
          }
        }
      }
    },
    "DesignLineageResponse": {
      "type": "object",
      "required": [
        "design",
        "ancestors",
        "descendants",
        "runs",
        "evaluations_by_run",
        "campaigns"
      ],
      "properties": {
        "design": {
          "$ref": "#/$defs/DesignResponse"
        },
        "ancestors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DesignResponse"
          }
        },
        "descendants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DesignResponse"
          }
        },
        "runs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LineageRun"
          }
        },
        "evaluations_by_run": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RunEvaluations"
          }
        },
        "campaigns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LineageCampaign"
          }
        }
      }
    }
  }
}
```

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

```json
{
  "design": {
    "id": "00000000-0000-4000-8000-000000000000",
    "type": "<value>",
    "parent_id": "00000000-0000-4000-8000-000000000000",
    "root_design_id": "00000000-0000-4000-8000-000000000000",
    "source_method": "<value>",
    "source_method_type": "<value>",
    "project_id": "00000000-0000-4000-8000-000000000000",
    "dataset_id": "00000000-0000-4000-8000-000000000000",
    "run_id": "00000000-0000-4000-8000-000000000000",
    "pipeline_node_id": "<value>",
    "config_fingerprint": "<value>",
    "import_id": "00000000-0000-4000-8000-000000000000",
    "name": "<value>",
    "sequence": "<value>",
    "length": 0,
    "structure_uri": "<value>",
    "is_starred": false,
    "curation_status": "unreviewed",
    "user_notes": "<value>",
    "curated_by": "<value>",
    "curated_at": "2026-01-01T00:00:00Z",
    "evaluations": [
      {
        "run_id": "00000000-0000-4000-8000-000000000000",
        "pipeline_node_id": "<value>",
        "config_fingerprint": "<value>",
        "tool": "<value>",
        "mode": "<value>",
        "status": "ok",
        "error": "<value>",
        "metrics": {},
        "params": {},
        "pae_json_uri": "<value>",
        "created_at": "2026-01-01T00:00:00Z"
      }
    ],
    "extra": {},
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "passes": false,
    "gates_failed": [
      "<value>"
    ]
  },
  "ancestors": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "type": "<value>",
      "parent_id": "00000000-0000-4000-8000-000000000000",
      "root_design_id": "00000000-0000-4000-8000-000000000000",
      "source_method": "<value>",
      "source_method_type": "<value>",
      "project_id": "00000000-0000-4000-8000-000000000000",
      "dataset_id": "00000000-0000-4000-8000-000000000000",
      "run_id": "00000000-0000-4000-8000-000000000000",
      "pipeline_node_id": "<value>",
      "config_fingerprint": "<value>",
      "import_id": "00000000-0000-4000-8000-000000000000",
      "name": "<value>",
      "sequence": "<value>",
      "length": 0,
      "structure_uri": "<value>",
      "is_starred": false,
      "curation_status": "unreviewed",
      "user_notes": "<value>",
      "curated_by": "<value>",
      "curated_at": "2026-01-01T00:00:00Z",
      "evaluations": [
        {
          "run_id": "00000000-0000-4000-8000-000000000000",
          "pipeline_node_id": "<value>",
          "config_fingerprint": "<value>",
          "tool": "<value>",
          "mode": "<value>",
          "status": "ok",
          "error": "<value>",
          "metrics": {},
          "params": {},
          "pae_json_uri": "<value>",
          "created_at": "2026-01-01T00:00:00Z"
        }
      ],
      "extra": {},
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z",
      "passes": false,
      "gates_failed": [
        "<value>"
      ]
    }
  ],
  "descendants": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "type": "<value>",
      "parent_id": "00000000-0000-4000-8000-000000000000",
      "root_design_id": "00000000-0000-4000-8000-000000000000",
      "source_method": "<value>",
      "source_method_type": "<value>",
      "project_id": "00000000-0000-4000-8000-000000000000",
      "dataset_id": "00000000-0000-4000-8000-000000000000",
      "run_id": "00000000-0000-4000-8000-000000000000",
      "pipeline_node_id": "<value>",
      "config_fingerprint": "<value>",
      "import_id": "00000000-0000-4000-8000-000000000000",
      "name": "<value>",
      "sequence": "<value>",
      "length": 0,
      "structure_uri": "<value>",
      "is_starred": false,
      "curation_status": "unreviewed",
      "user_notes": "<value>",
      "curated_by": "<value>",
      "curated_at": "2026-01-01T00:00:00Z",
      "evaluations": [
        {
          "run_id": "00000000-0000-4000-8000-000000000000",
          "pipeline_node_id": "<value>",
          "config_fingerprint": "<value>",
          "tool": "<value>",
          "mode": "<value>",
          "status": "ok",
          "error": "<value>",
          "metrics": {},
          "params": {},
          "pae_json_uri": "<value>",
          "created_at": "2026-01-01T00:00:00Z"
        }
      ],
      "extra": {},
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z",
      "passes": false,
      "gates_failed": [
        "<value>"
      ]
    }
  ],
  "runs": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "name": "<value>",
      "pipeline_type": "<value>",
      "status": "<value>",
      "created_at": "2026-01-01T00:00:00Z",
      "completed_at": "2026-01-01T00:00:00Z",
      "context": {}
    }
  ],
  "evaluations_by_run": [
    {
      "run_id": "00000000-0000-4000-8000-000000000000",
      "evaluations": [
        {
          "run_id": "00000000-0000-4000-8000-000000000000",
          "pipeline_node_id": "<value>",
          "config_fingerprint": "<value>",
          "tool": "<value>",
          "mode": "<value>",
          "status": "ok",
          "error": "<value>",
          "metrics": {},
          "params": {},
          "pae_json_uri": "<value>",
          "created_at": "2026-01-01T00:00:00Z"
        }
      ]
    }
  ],
  "campaigns": [
    {
      "campaign": {
        "id": "00000000-0000-4000-8000-000000000000",
        "organization_id": "<value>",
        "project_id": "00000000-0000-4000-8000-000000000000",
        "name": "<value>",
        "objective": "<value>",
        "status": "<value>",
        "created_by": "<value>",
        "created_at": "2026-01-01T00:00:00Z",
        "updated_at": "2026-01-01T00:00:00Z",
        "archived_at": "2026-01-01T00:00:00Z"
      },
      "gates": [
        {
          "id": "00000000-0000-4000-8000-000000000000",
          "campaign_id": "00000000-0000-4000-8000-000000000000",
          "name": "<value>",
          "stage": "<value>",
          "tool": "<value>",
          "mode": "<value>",
          "metric": "<value>",
          "op": "<value>",
          "value": 0,
          "sort_order": 0,
          "source": "<value>",
          "created_at": "2026-01-01T00:00:00Z",
          "updated_at": "2026-01-01T00:00:00Z"
        }
      ],
      "slices": [
        {
          "campaign_slice": {
            "id": "00000000-0000-4000-8000-000000000000",
            "campaign_id": "00000000-0000-4000-8000-000000000000",
            "name": "<value>",
            "library": "<value>",
            "target_id": "00000000-0000-4000-8000-000000000000",
            "hotspot_set_id": "00000000-0000-4000-8000-000000000000",
            "pipeline_type": "<value>",
            "params_fingerprint": "<value>",
            "length_min": 0,
            "length_max": 0,
            "planned": 0,
            "sort_order": 0,
            "is_pilot": false,
            "pilot_id": "00000000-0000-4000-8000-000000000000",
            "created_at": "2026-01-01T00:00:00Z",
            "updated_at": "2026-01-01T00:00:00Z"
          },
          "target": {
            "id": "00000000-0000-4000-8000-000000000000",
            "campaign_id": "00000000-0000-4000-8000-000000000000",
            "name": "<value>",
            "structure_uri": "<value>",
            "source": "<value>",
            "source_ref": "<value>",
            "chains": [
              {
                "auth": "<value>",
                "label": "<value>",
                "length": 0,
                "range": "<value>",
                "kind": "<value>"
              }
            ],
            "design_id": "00000000-0000-4000-8000-000000000000"
          },
          "hotspot_set": {
            "id": "00000000-0000-4000-8000-000000000000",
            "campaign_id": "00000000-0000-4000-8000-000000000000",
            "target_id": "00000000-0000-4000-8000-000000000000",
            "name": "<value>",
            "residues": [
              {
                "chain": "<value>",
                "auth_seq": 0,
                "ins_code": "<value>"
              }
            ],
            "evidence": "<value>",
            "created_by": "<value>",
            "created_at": "2026-01-01T00:00:00Z"
          },
          "run_ids": [
            "00000000-0000-4000-8000-000000000000"
          ]
        }
      ]
    }
  ]
}
```

## GET /v1/designs/{design_id}/structure

Get design structure URL

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

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| design_id | path | string | Required |  | format: uuid |
| model | query | string | Optional | "any" | For a sequence design: a fold method (esmfold, alphafold, boltz2, ...) or `any`, the complex the design was scored with, else its esmfold monomer. A structure design is its own file and ignores it. pattern: ^(any\|esmfold\|alphafold\|esmfold2\|capsid_fold_esmfold2\|capsid_fold_openfold3\|protenix\|opendde\|openfold3\|chai1\|mol1\|boltz2\|colabdesign)$ |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/StructureUrlResponse",
  "$defs": {
    "StructureUrlResponse": {
      "type": "object",
      "description": "A signed URL to one predicted structure of a sequence, and what it is.",
      "required": [
        "url",
        "model",
        "format"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "format": {
          "type": "string"
        }
      }
    }
  }
}
```

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

```json
{
  "url": "<value>",
  "model": "<value>",
  "format": "<value>"
}
```

## POST /v1/designs/delete

Delete designs

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

### Body

| Field | Type | Required | Description |
|---|---|---|---|
| ids | (string)[] | Required | minimum items: 1; maximum items: 500 |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/DesignDeleteRequest",
  "$defs": {
    "DesignDeleteRequest": {
      "type": "object",
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

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

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

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

## POST /v1/designs/move

Move designs

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/designs/move \
  -H "content-type: application/json" \
  -d '{
  "ids": [
    "<id>"
  ],
  "target_project_id": "<target_project_id>"
}'
```

### Body

| Field | Type | Required | Description |
|---|---|---|---|
| ids | (string)[] | Required | minimum items: 1 |
| target_project_id | string | Required | format: uuid |
| target_dataset_id | string or null | Optional |  |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/DesignMoveRequest",
  "$defs": {
    "DesignMoveRequest": {
      "type": "object",
      "required": [
        "ids",
        "target_project_id"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "target_project_id": {
          "type": "string",
          "format": "uuid"
        },
        "target_dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/DesignResponse"
  },
  "$defs": {
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "missing_input",
            "not_applicable",
            "failed",
            "unsupported"
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DesignResponse": {
      "type": "object",
      "required": [
        "id",
        "type",
        "root_design_id",
        "project_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "source_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_method_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "import_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean",
          "default": false
        },
        "curation_status": {
          "type": "string",
          "default": "unreviewed"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EvaluationSummary"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
[
  {
    "id": "00000000-0000-4000-8000-000000000000",
    "type": "<value>",
    "parent_id": "00000000-0000-4000-8000-000000000000",
    "root_design_id": "00000000-0000-4000-8000-000000000000",
    "source_method": "<value>",
    "source_method_type": "<value>",
    "project_id": "00000000-0000-4000-8000-000000000000",
    "dataset_id": "00000000-0000-4000-8000-000000000000",
    "run_id": "00000000-0000-4000-8000-000000000000",
    "pipeline_node_id": "<value>",
    "config_fingerprint": "<value>",
    "import_id": "00000000-0000-4000-8000-000000000000",
    "name": "<value>",
    "sequence": "<value>",
    "length": 0,
    "structure_uri": "<value>",
    "is_starred": false,
    "curation_status": "unreviewed",
    "user_notes": "<value>",
    "curated_by": "<value>",
    "curated_at": "2026-01-01T00:00:00Z",
    "evaluations": [
      {
        "run_id": "00000000-0000-4000-8000-000000000000",
        "pipeline_node_id": "<value>",
        "config_fingerprint": "<value>",
        "tool": "<value>",
        "mode": "<value>",
        "status": "ok",
        "error": "<value>",
        "metrics": {},
        "params": {},
        "pae_json_uri": "<value>",
        "created_at": "2026-01-01T00:00:00Z"
      }
    ],
    "extra": {},
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "passes": false,
    "gates_failed": [
      "<value>"
    ]
  }
]
```

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

List designs

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

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| project_id | path | string | Required |  | format: uuid |
| sort | query | string or null | Optional |  | Sort by metric: <tool>.<mode>.<key>:asc\|desc, nulls last |
| count | query | boolean | Optional | false | Set X-Total-Count to the filtered total |
| cursor | query | string or null | Optional |  | Opaque keyset cursor from a prior X-Next-Cursor header |
| page | query | integer | Optional | 1 | minimum: 1 |
| page_size | query | integer | Optional | 50 | minimum: 1; maximum: 200 |
| type | query | string or null | Optional |  | Filter by design type |
| tool | query | string or null | Optional |  | Only include designs with this evaluation tool |
| mode | query | string or null | Optional |  | Only include designs with this evaluation mode |
| run_id | query | (string)[] or null | Optional |  | Filter by run id (repeatable) |
| dataset_id | query | (string)[] or null | Optional |  | Filter by dataset id (repeatable) |
| parent_id | query | string or null | Optional |  | Only designs derived directly from this design |
| root_design_id | query | string or null | Optional |  | Only designs in this design's lineage |
| curation_status | query | (string)[] or null | Optional |  | Filter by curation status (repeatable) |
| is_starred | query | boolean or null | Optional |  | Filter by starred flag |
| root_only | query | boolean | Optional | false | Only root designs |
| campaign_id | query | string or null | Optional |  | Designs whose run is attached to this campaign |
| slice_id | query | string or null | Optional |  | Designs whose run is attached to this slice |
| metric | query | (string)[] or null | Optional |  | Metric filter <tool>.<mode>.<key><op><value> (repeatable) |
| include | query | string or null | Optional |  | Comma-separated extras: evaluations, curation |
| filter_set | query | string or null | Optional |  | Judge each row by this filter set, given as an id or slug. 'passes_all' is the fixed three-gate flag. |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/DesignResponse"
  },
  "$defs": {
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "missing_input",
            "not_applicable",
            "failed",
            "unsupported"
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DesignResponse": {
      "type": "object",
      "required": [
        "id",
        "type",
        "root_design_id",
        "project_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "source_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_method_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "import_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean",
          "default": false
        },
        "curation_status": {
          "type": "string",
          "default": "unreviewed"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EvaluationSummary"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
[
  {
    "id": "00000000-0000-4000-8000-000000000000",
    "type": "<value>",
    "parent_id": "00000000-0000-4000-8000-000000000000",
    "root_design_id": "00000000-0000-4000-8000-000000000000",
    "source_method": "<value>",
    "source_method_type": "<value>",
    "project_id": "00000000-0000-4000-8000-000000000000",
    "dataset_id": "00000000-0000-4000-8000-000000000000",
    "run_id": "00000000-0000-4000-8000-000000000000",
    "pipeline_node_id": "<value>",
    "config_fingerprint": "<value>",
    "import_id": "00000000-0000-4000-8000-000000000000",
    "name": "<value>",
    "sequence": "<value>",
    "length": 0,
    "structure_uri": "<value>",
    "is_starred": false,
    "curation_status": "unreviewed",
    "user_notes": "<value>",
    "curated_by": "<value>",
    "curated_at": "2026-01-01T00:00:00Z",
    "evaluations": [
      {
        "run_id": "00000000-0000-4000-8000-000000000000",
        "pipeline_node_id": "<value>",
        "config_fingerprint": "<value>",
        "tool": "<value>",
        "mode": "<value>",
        "status": "ok",
        "error": "<value>",
        "metrics": {},
        "params": {},
        "pae_json_uri": "<value>",
        "created_at": "2026-01-01T00:00:00Z"
      }
    ],
    "extra": {},
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "passes": false,
    "gates_failed": [
      "<value>"
    ]
  }
]
```

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

Create designs

Create designs a person brings, with no run.

Every item makes a new row. Sequence designs are not content-keyed (a run's rows
are keyed by the run, and a copy gets a fresh id), so the same sequence sent twice
is two designs.

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

### Parameters

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

### Body

| Field | Type | Required | Description |
|---|---|---|---|
| designs | (object)[] | Required | minimum items: 1; maximum items: 500 |
| dataset_id | string or null | Optional |  |
| parent_id | string or null | Optional |  |

Returns 201 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/DesignCreateRequest",
  "$defs": {
    "DesignCreateItem": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "sequence",
            "structure"
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "chain_id": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 16
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "DesignCreateRequest": {
      "type": "object",
      "required": [
        "designs"
      ],
      "properties": {
        "designs": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/DesignCreateItem"
          }
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 201 response (application/json)

### 201 response fields and schema

```json
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/DesignResponse"
  },
  "$defs": {
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tool": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "missing_input",
            "not_applicable",
            "failed",
            "unsupported"
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "DesignResponse": {
      "type": "object",
      "required": [
        "id",
        "type",
        "root_design_id",
        "project_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "source_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_method_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "import_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "structure_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean",
          "default": false
        },
        "curation_status": {
          "type": "string",
          "default": "unreviewed"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluations": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EvaluationSummary"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
[
  {
    "id": "00000000-0000-4000-8000-000000000000",
    "type": "<value>",
    "parent_id": "00000000-0000-4000-8000-000000000000",
    "root_design_id": "00000000-0000-4000-8000-000000000000",
    "source_method": "<value>",
    "source_method_type": "<value>",
    "project_id": "00000000-0000-4000-8000-000000000000",
    "dataset_id": "00000000-0000-4000-8000-000000000000",
    "run_id": "00000000-0000-4000-8000-000000000000",
    "pipeline_node_id": "<value>",
    "config_fingerprint": "<value>",
    "import_id": "00000000-0000-4000-8000-000000000000",
    "name": "<value>",
    "sequence": "<value>",
    "length": 0,
    "structure_uri": "<value>",
    "is_starred": false,
    "curation_status": "unreviewed",
    "user_notes": "<value>",
    "curated_by": "<value>",
    "curated_at": "2026-01-01T00:00:00Z",
    "evaluations": [
      {
        "run_id": "00000000-0000-4000-8000-000000000000",
        "pipeline_node_id": "<value>",
        "config_fingerprint": "<value>",
        "tool": "<value>",
        "mode": "<value>",
        "status": "ok",
        "error": "<value>",
        "metrics": {},
        "params": {},
        "pae_json_uri": "<value>",
        "created_at": "2026-01-01T00:00:00Z"
      }
    ],
    "extra": {},
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "passes": false,
    "gates_failed": [
      "<value>"
    ]
  }
]
```

## GET /v1/projects/{project_id}/designs/export

Export designs CSV

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

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| project_id | path | string | Required |  | format: uuid |
| no_structure_uris | query | boolean | Optional | false | Omit the structure_uri column |
| lineage | query | boolean | Optional | false | Add the parent, root, source-method and run columns |
| type | query | string or null | Optional |  | Filter by design type |
| tool | query | string or null | Optional |  | Only include designs with this evaluation tool |
| mode | query | string or null | Optional |  | Only include designs with this evaluation mode |
| run_id | query | (string)[] or null | Optional |  | Filter by run id (repeatable) |
| dataset_id | query | (string)[] or null | Optional |  | Filter by dataset id (repeatable) |
| parent_id | query | string or null | Optional |  | Only designs derived directly from this design |
| root_design_id | query | string or null | Optional |  | Only designs in this design's lineage |
| curation_status | query | (string)[] or null | Optional |  | Filter by curation status (repeatable) |
| is_starred | query | boolean or null | Optional |  | Filter by starred flag |
| root_only | query | boolean | Optional | false | Only root designs |
| campaign_id | query | string or null | Optional |  | Designs whose run is attached to this campaign |
| slice_id | query | string or null | Optional |  | Designs whose run is attached to this slice |
| metric | query | (string)[] or null | Optional |  | Metric filter <tool>.<mode>.<key><op><value> (repeatable) |
| include | query | string or null | Optional |  | Comma-separated extras: evaluations, curation |
| filter_set | query | string or null | Optional |  | Judge each row by this filter set, given as an id or slug. 'passes_all' is the fixed three-gate flag. |

Returns 200 or 422.

### 200 response (text/csv)

### 200 response fields and schema

```json
{
  "type": "string"
}
```


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