# Projects

Create, read, update, and delete projects.

## GET /v1/projects

List projects

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

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| page | query | integer | Optional | 1 | minimum: 1 |
| page_size | query | integer | Optional | 20 | minimum: 1; maximum: 200 |
| mine | query | boolean | Optional | false |  |
| cursor | query | string or null | Optional |  | Opaque keyset cursor from a prior X-Next-Cursor header |
| include | query | string or null | Optional |  | Comma-separated extras: `counts` adds each project's runs by state. |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "type": "array",
  "items": {
    "$ref": "#/$defs/ProjectResponse"
  },
  "$defs": {
    "ProjectCountsResponse": {
      "type": "object",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "running": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        }
      }
    },
    "ProjectResponse": {
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "target_pdb_uri",
        "target_chain_id",
        "binder_chain_id",
        "status",
        "created_by",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_chain_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "binder_chain_id": {
          "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"
        },
        "counts": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProjectCountsResponse"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
[
  {
    "id": "00000000-0000-4000-8000-000000000000",
    "name": "<value>",
    "description": "<value>",
    "target_pdb_uri": "<value>",
    "target_chain_id": "<value>",
    "binder_chain_id": "<value>",
    "status": "<value>",
    "created_by": "<value>",
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "counts": {
      "running": 0,
      "queued": 0,
      "finished": 0,
      "failed": 0
    }
  }
]
```

## POST /v1/projects

Create project

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

### Body

| Field | Type | Required | Default |
|---|---|---|---|
| name | string | Required |  |
| description | string or null | Optional |  |
| target_pdb_uri | string or null | Optional |  |
| target_chain_id | string | Optional | "A" |
| binder_chain_id | string | Optional | "B" |

Returns 201 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/ProjectCreate",
  "$defs": {
    "ProjectCreate": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_chain_id": {
          "type": "string",
          "default": "A"
        },
        "binder_chain_id": {
          "type": "string",
          "default": "B"
        }
      }
    }
  }
}
```

### 201 response (application/json)

### 201 response fields and schema

```json
{
  "$ref": "#/$defs/ProjectResponse",
  "$defs": {
    "ProjectCountsResponse": {
      "type": "object",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "running": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        }
      }
    },
    "ProjectResponse": {
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "target_pdb_uri",
        "target_chain_id",
        "binder_chain_id",
        "status",
        "created_by",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_chain_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "binder_chain_id": {
          "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"
        },
        "counts": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProjectCountsResponse"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "id": "00000000-0000-4000-8000-000000000000",
  "name": "<value>",
  "description": "<value>",
  "target_pdb_uri": "<value>",
  "target_chain_id": "<value>",
  "binder_chain_id": "<value>",
  "status": "<value>",
  "created_by": "<value>",
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "counts": {
    "running": 0,
    "queued": 0,
    "finished": 0,
    "failed": 0
  }
}
```

## DELETE /v1/projects/{project_id}

Archive project

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

### Parameters

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

Returns 204 or 422.

### 204 response

No response body.

## GET /v1/projects/{project_id}

Get project

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

### Parameters

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

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/ProjectResponse",
  "$defs": {
    "ProjectCountsResponse": {
      "type": "object",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "running": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        }
      }
    },
    "ProjectResponse": {
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "target_pdb_uri",
        "target_chain_id",
        "binder_chain_id",
        "status",
        "created_by",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_chain_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "binder_chain_id": {
          "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"
        },
        "counts": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProjectCountsResponse"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "id": "00000000-0000-4000-8000-000000000000",
  "name": "<value>",
  "description": "<value>",
  "target_pdb_uri": "<value>",
  "target_chain_id": "<value>",
  "binder_chain_id": "<value>",
  "status": "<value>",
  "created_by": "<value>",
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "counts": {
    "running": 0,
    "queued": 0,
    "finished": 0,
    "failed": 0
  }
}
```

## PATCH /v1/projects/{project_id}

Update project

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

### Parameters

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

### Body

| Field | Type | Required |
|---|---|---|
| name | string or null | Optional |
| description | string or null | Optional |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/ProjectUpdate",
  "$defs": {
    "ProjectUpdate": {
      "type": "object",
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/ProjectResponse",
  "$defs": {
    "ProjectCountsResponse": {
      "type": "object",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "running": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        }
      }
    },
    "ProjectResponse": {
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "target_pdb_uri",
        "target_chain_id",
        "binder_chain_id",
        "status",
        "created_by",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_chain_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "binder_chain_id": {
          "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"
        },
        "counts": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProjectCountsResponse"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "id": "00000000-0000-4000-8000-000000000000",
  "name": "<value>",
  "description": "<value>",
  "target_pdb_uri": "<value>",
  "target_chain_id": "<value>",
  "binder_chain_id": "<value>",
  "status": "<value>",
  "created_by": "<value>",
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "counts": {
    "running": 0,
    "queued": 0,
    "finished": 0,
    "failed": 0
  }
}
```


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