# Sequences

Read and export sequences, and fetch their structures and PAE.

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

List sequences

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

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| project_id | path | string | Required |  | format: uuid |
| page | query | integer | Optional | 1 | minimum: 1 |
| page_size | query | integer | Optional | 50 | minimum: 1; maximum: 200 |
| run_id | query | string or null | Optional |  | Scope to a single run. |
| dataset_id | query | string or null | Optional |  | Scope to a single dataset. |
| passes_all | query | boolean or null | Optional |  |  |
| is_starred | query | boolean or null | Optional |  |  |
| curation_status | query | string or null | Optional |  |  |
| plddt_min | query | number or null | Optional |  |  |
| ipae_max | query | number or null | Optional |  |  |
| rmsd_max | query | number or null | Optional |  |  |
| cursor | query | string or null | Optional |  | Opaque keyset cursor from a prior X-Next-Cursor header |
| include_aggregates | query | boolean | Optional | false | Compute the whole-collection total, pass rate, and gate counts. Off by default because each is a full scan of the project's designs. |
| 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
{
  "$ref": "#/$defs/SequenceListResponse",
  "$defs": {
    "SequenceScores": {
      "type": "object",
      "required": [
        "plddt",
        "iptm",
        "ipsae",
        "ipae",
        "rmsd"
      ],
      "properties": {
        "plddt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_binder": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_target": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_interface": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_complex": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_scale": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "iptm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n_contacts": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_mean": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq2": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "lis": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "rmsd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "final_rank": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "selected": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "SequenceResponse": {
      "type": "object",
      "required": [
        "id",
        "root_design_id",
        "project_id",
        "run_id",
        "name",
        "sequence",
        "length",
        "scores",
        "passes_all",
        "is_starred",
        "user_notes",
        "curation_status",
        "esmfold_pdb_uri",
        "alphafold_pdb_uri",
        "pae_json_uri",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "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": {
          "type": "string"
        },
        "length": {
          "type": "integer"
        },
        "scores": {
          "$ref": "#/$defs/SequenceScores"
        },
        "score_tool": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "score_mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes_all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "type": "string"
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "esmfold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "alphafold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_passed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_failed_criterion": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "passes": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gates_failed": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "SequenceListResponse": {
      "type": "object",
      "required": [
        "sequences"
      ],
      "properties": {
        "sequences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SequenceResponse"
          }
        },
        "total": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "pass_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_passing": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_total": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "evaluated_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "sequences": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "parent_id": "00000000-0000-4000-8000-000000000000",
      "root_design_id": "00000000-0000-4000-8000-000000000000",
      "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,
      "scores": {
        "plddt": 0,
        "plddt_binder": 0,
        "plddt_target": 0,
        "plddt_interface": 0,
        "plddt_complex": 0,
        "plddt_scale": "<value>",
        "iptm": 0,
        "ipsae": 0,
        "ipsae_max": 0,
        "ipsae_min": 0,
        "n0res_max": 0,
        "n0res_min": 0,
        "n_contacts": 0,
        "ipae": 0,
        "pae_mean": 0,
        "pdockq": 0,
        "pdockq2": 0,
        "lis": 0,
        "rmsd": 0,
        "final_rank": 0,
        "selected": false
      },
      "score_tool": "<value>",
      "score_mode": "<value>",
      "passes_all": false,
      "is_starred": false,
      "user_notes": "<value>",
      "curation_status": "<value>",
      "curated_by": "<value>",
      "curated_at": "2026-01-01T00:00:00Z",
      "esmfold_pdb_uri": "<value>",
      "alphafold_pdb_uri": "<value>",
      "pae_json_uri": "<value>",
      "backbone_uri": "<value>",
      "extra": {},
      "gate_passed": false,
      "gate_failed_criterion": {},
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z",
      "passes": false,
      "gates_failed": [
        "<value>"
      ]
    }
  ],
  "total": 0,
  "pass_rate": 0,
  "gate_passing": 0,
  "gate_total": 0,
  "passes_count": 0,
  "evaluated_count": 0
}
```

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

Export sequences CSV

Export sequences for a project as CSV.

Accepts the same filter params as GET /v1/projects/{project_id}/sequences.
Returns all matching sequences (no pagination) ordered by score_iptm DESC.
Scope to a single ``run_id`` or ``dataset_id`` to keep the export bounded;
an unscoped project with many runs can be large enough to time out.

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

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| project_id | path | string | Required | format: uuid |
| run_id | query | string or null | Optional | Scope to a single run. |
| dataset_id | query | string or null | Optional | Scope to a single dataset. |
| passes_all | query | boolean or null | Optional | Filter to passing/failing sequences only |
| is_starred | query | boolean or null | Optional |  |
| curation_status | query | string or null | Optional |  |
| plddt_min | query | number or null | Optional |  |
| ipae_max | query | number or null | Optional |  |
| rmsd_max | query | number or null | Optional |  |

Returns 200 or 422.

### 200 response (text/csv)

### 200 response fields and schema

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

## GET /v1/sequences/{sequence_id}

Get sequence

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

### Parameters

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

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/SequenceResponse",
  "$defs": {
    "SequenceScores": {
      "type": "object",
      "required": [
        "plddt",
        "iptm",
        "ipsae",
        "ipae",
        "rmsd"
      ],
      "properties": {
        "plddt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_binder": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_target": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_interface": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_complex": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_scale": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "iptm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n_contacts": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_mean": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq2": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "lis": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "rmsd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "final_rank": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "selected": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "SequenceResponse": {
      "type": "object",
      "required": [
        "id",
        "root_design_id",
        "project_id",
        "run_id",
        "name",
        "sequence",
        "length",
        "scores",
        "passes_all",
        "is_starred",
        "user_notes",
        "curation_status",
        "esmfold_pdb_uri",
        "alphafold_pdb_uri",
        "pae_json_uri",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "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": {
          "type": "string"
        },
        "length": {
          "type": "integer"
        },
        "scores": {
          "$ref": "#/$defs/SequenceScores"
        },
        "score_tool": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "score_mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes_all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "type": "string"
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "esmfold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "alphafold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_passed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_failed_criterion": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "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",
  "parent_id": "00000000-0000-4000-8000-000000000000",
  "root_design_id": "00000000-0000-4000-8000-000000000000",
  "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,
  "scores": {
    "plddt": 0,
    "plddt_binder": 0,
    "plddt_target": 0,
    "plddt_interface": 0,
    "plddt_complex": 0,
    "plddt_scale": "<value>",
    "iptm": 0,
    "ipsae": 0,
    "ipsae_max": 0,
    "ipsae_min": 0,
    "n0res_max": 0,
    "n0res_min": 0,
    "n_contacts": 0,
    "ipae": 0,
    "pae_mean": 0,
    "pdockq": 0,
    "pdockq2": 0,
    "lis": 0,
    "rmsd": 0,
    "final_rank": 0,
    "selected": false
  },
  "score_tool": "<value>",
  "score_mode": "<value>",
  "passes_all": false,
  "is_starred": false,
  "user_notes": "<value>",
  "curation_status": "<value>",
  "curated_by": "<value>",
  "curated_at": "2026-01-01T00:00:00Z",
  "esmfold_pdb_uri": "<value>",
  "alphafold_pdb_uri": "<value>",
  "pae_json_uri": "<value>",
  "backbone_uri": "<value>",
  "extra": {},
  "gate_passed": false,
  "gate_failed_criterion": {},
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "passes": false,
  "gates_failed": [
    "<value>"
  ]
}
```

## PATCH /v1/sequences/{sequence_id}

Update sequence

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

### Parameters

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

### Body

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

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/SequencePatch",
  "$defs": {
    "SequencePatch": {
      "type": "object",
      "properties": {
        "is_starred": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unreviewed",
                "promising",
                "rejected",
                "selected"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/SequenceResponse",
  "$defs": {
    "SequenceScores": {
      "type": "object",
      "required": [
        "plddt",
        "iptm",
        "ipsae",
        "ipae",
        "rmsd"
      ],
      "properties": {
        "plddt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_binder": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_target": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_interface": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_complex": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_scale": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "iptm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n_contacts": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_mean": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq2": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "lis": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "rmsd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "final_rank": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "selected": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "SequenceResponse": {
      "type": "object",
      "required": [
        "id",
        "root_design_id",
        "project_id",
        "run_id",
        "name",
        "sequence",
        "length",
        "scores",
        "passes_all",
        "is_starred",
        "user_notes",
        "curation_status",
        "esmfold_pdb_uri",
        "alphafold_pdb_uri",
        "pae_json_uri",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "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": {
          "type": "string"
        },
        "length": {
          "type": "integer"
        },
        "scores": {
          "$ref": "#/$defs/SequenceScores"
        },
        "score_tool": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "score_mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes_all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "type": "string"
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "esmfold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "alphafold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_passed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_failed_criterion": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "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",
  "parent_id": "00000000-0000-4000-8000-000000000000",
  "root_design_id": "00000000-0000-4000-8000-000000000000",
  "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,
  "scores": {
    "plddt": 0,
    "plddt_binder": 0,
    "plddt_target": 0,
    "plddt_interface": 0,
    "plddt_complex": 0,
    "plddt_scale": "<value>",
    "iptm": 0,
    "ipsae": 0,
    "ipsae_max": 0,
    "ipsae_min": 0,
    "n0res_max": 0,
    "n0res_min": 0,
    "n_contacts": 0,
    "ipae": 0,
    "pae_mean": 0,
    "pdockq": 0,
    "pdockq2": 0,
    "lis": 0,
    "rmsd": 0,
    "final_rank": 0,
    "selected": false
  },
  "score_tool": "<value>",
  "score_mode": "<value>",
  "passes_all": false,
  "is_starred": false,
  "user_notes": "<value>",
  "curation_status": "<value>",
  "curated_by": "<value>",
  "curated_at": "2026-01-01T00:00:00Z",
  "esmfold_pdb_uri": "<value>",
  "alphafold_pdb_uri": "<value>",
  "pae_json_uri": "<value>",
  "backbone_uri": "<value>",
  "extra": {},
  "gate_passed": false,
  "gate_failed_criterion": {},
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "passes": false,
  "gates_failed": [
    "<value>"
  ]
}
```

## POST /v1/sequences/{sequence_id}/copy

Copy sequence

```bash
curl -H "x-api-key: $PHI_KEY" -X POST "https://api.dynophi.com/v1/sequences/{sequence_id}/copy?target_project_id=<target_project_id>"
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| sequence_id | path | string | Required | format: uuid |
| target_project_id | query | string | Required | format: uuid |
| target_dataset_id | query | string or null | Optional |  |

Returns 201 or 422.

### 201 response (application/json)

### 201 response fields and schema

```json
{
  "$ref": "#/$defs/SequenceResponse",
  "$defs": {
    "SequenceScores": {
      "type": "object",
      "required": [
        "plddt",
        "iptm",
        "ipsae",
        "ipae",
        "rmsd"
      ],
      "properties": {
        "plddt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_binder": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_target": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_interface": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_complex": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_scale": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "iptm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n_contacts": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_mean": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq2": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "lis": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "rmsd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "final_rank": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "selected": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "SequenceResponse": {
      "type": "object",
      "required": [
        "id",
        "root_design_id",
        "project_id",
        "run_id",
        "name",
        "sequence",
        "length",
        "scores",
        "passes_all",
        "is_starred",
        "user_notes",
        "curation_status",
        "esmfold_pdb_uri",
        "alphafold_pdb_uri",
        "pae_json_uri",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "root_design_id": {
          "type": "string",
          "format": "uuid"
        },
        "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": {
          "type": "string"
        },
        "length": {
          "type": "integer"
        },
        "scores": {
          "$ref": "#/$defs/SequenceScores"
        },
        "score_tool": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "score_mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes_all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "type": "string"
        },
        "curated_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "esmfold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "alphafold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_passed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_failed_criterion": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "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",
  "parent_id": "00000000-0000-4000-8000-000000000000",
  "root_design_id": "00000000-0000-4000-8000-000000000000",
  "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,
  "scores": {
    "plddt": 0,
    "plddt_binder": 0,
    "plddt_target": 0,
    "plddt_interface": 0,
    "plddt_complex": 0,
    "plddt_scale": "<value>",
    "iptm": 0,
    "ipsae": 0,
    "ipsae_max": 0,
    "ipsae_min": 0,
    "n0res_max": 0,
    "n0res_min": 0,
    "n_contacts": 0,
    "ipae": 0,
    "pae_mean": 0,
    "pdockq": 0,
    "pdockq2": 0,
    "lis": 0,
    "rmsd": 0,
    "final_rank": 0,
    "selected": false
  },
  "score_tool": "<value>",
  "score_mode": "<value>",
  "passes_all": false,
  "is_starred": false,
  "user_notes": "<value>",
  "curation_status": "<value>",
  "curated_by": "<value>",
  "curated_at": "2026-01-01T00:00:00Z",
  "esmfold_pdb_uri": "<value>",
  "alphafold_pdb_uri": "<value>",
  "pae_json_uri": "<value>",
  "backbone_uri": "<value>",
  "extra": {},
  "gate_passed": false,
  "gate_failed_criterion": {},
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "passes": false,
  "gates_failed": [
    "<value>"
  ]
}
```

## GET /v1/sequences/{sequence_id}/pae

Get PAE URL

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

### Parameters

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

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

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

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

```json
{}
```

## GET /v1/sequences/{sequence_id}/structure

Get structure URL

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

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| sequence_id | path | string | Required |  | format: uuid |
| model | query | string | Optional | "esmfold" | A fold method (esmfold, alphafold, boltz2, protenix, ...) or `any`: the complex the design was scored with, else its esmfold monomer. 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/sequences/structures

Get structure URLs

Return signed structure URLs for visible sequences.

An unavailable id or structure is returned as null.

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

### Body

| Field | Type | Required | Default |
|---|---|---|---|
| ids | (string)[] | Required |  |
| model | string | Optional | "any" |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/StructureUrlsRequest",
  "$defs": {
    "StructureUrlsRequest": {
      "type": "object",
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "model": {
          "type": "string",
          "default": "any"
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/StructureUrlsResponse",
  "$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"
        }
      }
    },
    "StructureUrlsResponse": {
      "type": "object",
      "required": [
        "structures"
      ],
      "properties": {
        "structures": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "$ref": "#/$defs/StructureUrlResponse"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    }
  }
}
```

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

```json
{
  "structures": {}
}
```


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