# Jobs

List the models you can run, then submit, price, check, and cancel jobs.

## GET /v1/job-types

List job types

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

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/JobTypesResponse",
  "$defs": {
    "CatalogPriceResponse": {
      "type": "object",
      "description": "The price of a standard basket, so two models can be compared on one number.",
      "required": [
        "credits",
        "count",
        "unit"
      ],
      "properties": {
        "credits": {
          "type": "integer"
        },
        "count": {
          "type": "integer"
        },
        "unit": {
          "type": "string"
        }
      }
    },
    "StagePricingResponse": {
      "type": "object",
      "required": [
        "stage",
        "unit",
        "cents",
        "cap",
        "gpu"
      ],
      "properties": {
        "stage": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "cents": {
          "type": "integer"
        },
        "cap": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "gpu": {
          "type": "string"
        },
        "per": {
          "type": "integer",
          "default": 1
        },
        "included": {
          "type": "integer",
          "default": 0
        },
        "start_cents": {
          "type": "integer",
          "default": 0
        },
        "basket": {
          "type": "integer",
          "default": 1
        }
      }
    },
    "InputConstraints": {
      "type": "object",
      "description": "Per-model input limits surfaced for discovery; a null field is undeclared.",
      "properties": {
        "max_chains": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "max_length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "accepts_ligands": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "JobTypeParamsResponse": {
      "type": "object",
      "required": [
        "job_type",
        "credit_cost",
        "pricing",
        "params_schema",
        "inputs_schema",
        "available",
        "gate_reason",
        "environments",
        "input_constraints"
      ],
      "properties": {
        "job_type": {
          "type": "string"
        },
        "credit_cost": {
          "type": "integer"
        },
        "catalog_price": {
          "anyOf": [
            {
              "$ref": "#/$defs/CatalogPriceResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "rate_revision": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pricing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StagePricingResponse"
          }
        },
        "params_schema": {
          "type": "object",
          "additionalProperties": true
        },
        "inputs_schema": {
          "type": "object",
          "additionalProperties": true
        },
        "available": {
          "type": "boolean"
        },
        "gate_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "environments": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "input_constraints": {
          "$ref": "#/$defs/InputConstraints"
        },
        "typical_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "purpose": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "JobTypesResponse": {
      "type": "object",
      "required": [
        "job_types"
      ],
      "properties": {
        "job_types": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JobTypeParamsResponse"
          }
        }
      }
    }
  }
}
```

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

```json
{
  "job_types": [
    {
      "job_type": "<value>",
      "credit_cost": 0,
      "catalog_price": {
        "credits": 0,
        "count": 0,
        "unit": "<value>"
      },
      "rate_revision": "<value>",
      "pricing": [
        {
          "stage": "<value>",
          "unit": "<value>",
          "cents": 0,
          "cap": 0,
          "gpu": "<value>",
          "per": 1,
          "included": 0,
          "start_cents": 0,
          "basket": 1
        }
      ],
      "params_schema": {},
      "inputs_schema": {},
      "available": false,
      "gate_reason": "<value>",
      "environments": [
        "<value>"
      ],
      "input_constraints": {
        "max_chains": 0,
        "max_length": 0,
        "accepts_ligands": false
      },
      "typical_seconds": 0,
      "purpose": "<value>",
      "notes": "<value>"
    }
  ]
}
```

## GET /v1/job-types/{job_type}

Get job type

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

### Parameters

| Name | In | Type | Required |
|---|---|---|---|
| job_type | path | string | Required |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/JobTypeParamsResponse",
  "$defs": {
    "CatalogPriceResponse": {
      "type": "object",
      "description": "The price of a standard basket, so two models can be compared on one number.",
      "required": [
        "credits",
        "count",
        "unit"
      ],
      "properties": {
        "credits": {
          "type": "integer"
        },
        "count": {
          "type": "integer"
        },
        "unit": {
          "type": "string"
        }
      }
    },
    "StagePricingResponse": {
      "type": "object",
      "required": [
        "stage",
        "unit",
        "cents",
        "cap",
        "gpu"
      ],
      "properties": {
        "stage": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "cents": {
          "type": "integer"
        },
        "cap": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "gpu": {
          "type": "string"
        },
        "per": {
          "type": "integer",
          "default": 1
        },
        "included": {
          "type": "integer",
          "default": 0
        },
        "start_cents": {
          "type": "integer",
          "default": 0
        },
        "basket": {
          "type": "integer",
          "default": 1
        }
      }
    },
    "InputConstraints": {
      "type": "object",
      "description": "Per-model input limits surfaced for discovery; a null field is undeclared.",
      "properties": {
        "max_chains": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "max_length": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "accepts_ligands": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "JobTypeParamsResponse": {
      "type": "object",
      "required": [
        "job_type",
        "credit_cost",
        "pricing",
        "params_schema",
        "inputs_schema",
        "available",
        "gate_reason",
        "environments",
        "input_constraints"
      ],
      "properties": {
        "job_type": {
          "type": "string"
        },
        "credit_cost": {
          "type": "integer"
        },
        "catalog_price": {
          "anyOf": [
            {
              "$ref": "#/$defs/CatalogPriceResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "rate_revision": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pricing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StagePricingResponse"
          }
        },
        "params_schema": {
          "type": "object",
          "additionalProperties": true
        },
        "inputs_schema": {
          "type": "object",
          "additionalProperties": true
        },
        "available": {
          "type": "boolean"
        },
        "gate_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "environments": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "input_constraints": {
          "$ref": "#/$defs/InputConstraints"
        },
        "typical_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "purpose": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "job_type": "<value>",
  "credit_cost": 0,
  "catalog_price": {
    "credits": 0,
    "count": 0,
    "unit": "<value>"
  },
  "rate_revision": "<value>",
  "pricing": [
    {
      "stage": "<value>",
      "unit": "<value>",
      "cents": 0,
      "cap": 0,
      "gpu": "<value>",
      "per": 1,
      "included": 0,
      "start_cents": 0,
      "basket": 1
    }
  ],
  "params_schema": {},
  "inputs_schema": {},
  "available": false,
  "gate_reason": "<value>",
  "environments": [
    "<value>"
  ],
  "input_constraints": {
    "max_chains": 0,
    "max_length": 0,
    "accepts_ligands": false
  },
  "typical_seconds": 0,
  "purpose": "<value>",
  "notes": "<value>"
}
```

## GET /v1/jobs

List jobs

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

### Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| page | query | integer | Optional | 1 | minimum: 1 |
| page_size | query | integer | Optional | 20 | minimum: 1; maximum: 200 |
| job_type | query | (string)[] or null | Optional |  |  |
| status | query | (string)[] or null | Optional |  |  |
| batch_id | query | string or null | Optional |  |  |
| mine | query | boolean | Optional | false |  |
| cursor | query | string or null | Optional |  | Opaque keyset cursor from a prior X-Next-Cursor header |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/JobListResponse",
  "$defs": {
    "JobStageResponse": {
      "type": "object",
      "required": [
        "stage",
        "status",
        "started_at",
        "completed_at",
        "error"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "CANCELLED",
            "ERROR"
          ]
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunHeadline": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "pass_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunSummary": {
      "type": "object",
      "description": "A completed run at a glance. The headline and sample count are stored at\ncompletion; the duration is the run's own completed_at - created_at.",
      "properties": {
        "duration_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "headline": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunHeadline"
            },
            {
              "type": "null"
            }
          ]
        },
        "sample_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "JobStatusResponse": {
      "type": "object",
      "required": [
        "job_id",
        "job_type",
        "project_id",
        "name",
        "status",
        "user_id",
        "estimated_credits",
        "consumed_credits",
        "created_at",
        "completed_at",
        "error",
        "stage",
        "outputs"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "job_id": {
          "type": "string"
        },
        "job_type": {
          "type": "string"
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "batch_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "CANCELLED",
            "ERROR"
          ]
        },
        "user_id": {
          "type": "string"
        },
        "actor_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "actor_ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "estimated_credits": {
          "type": "integer"
        },
        "consumed_credits": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "anyOf": [
            {
              "$ref": "#/$defs/JobStageResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "outputs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "context": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "system_params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "inputs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "input_manifest_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "typical_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "summary": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunSummary"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "JobListResponse": {
      "type": "object",
      "required": [
        "jobs",
        "total",
        "page",
        "page_size"
      ],
      "properties": {
        "jobs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JobStatusResponse"
          }
        },
        "total": {
          "type": "integer"
        },
        "page": {
          "type": "integer"
        },
        "page_size": {
          "type": "integer"
        }
      }
    }
  }
}
```

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

```json
{
  "jobs": [
    {
      "error_code": "<value>",
      "exit_code": 0,
      "recommended_action": "<value>",
      "job_id": "<value>",
      "job_type": "<value>",
      "project_id": "00000000-0000-4000-8000-000000000000",
      "name": "<value>",
      "batch_id": "<value>",
      "status": "PENDING",
      "user_id": "<value>",
      "actor_kind": "<value>",
      "actor_ref": "<value>",
      "estimated_credits": 0,
      "consumed_credits": 0,
      "created_at": "2026-01-01T00:00:00Z",
      "completed_at": "2026-01-01T00:00:00Z",
      "error": "<value>",
      "stage": {
        "error_code": "<value>",
        "exit_code": 0,
        "recommended_action": "<value>",
        "stage": "<value>",
        "status": "PENDING",
        "started_at": "2026-01-01T00:00:00Z",
        "completed_at": "2026-01-01T00:00:00Z",
        "error": "<value>"
      },
      "outputs": {},
      "context": {},
      "params": {},
      "system_params": {},
      "inputs": {},
      "input_manifest_uri": "<value>",
      "typical_seconds": 0,
      "summary": {
        "duration_seconds": 0,
        "headline": {
          "key": "<value>",
          "value": 0,
          "pass_count": 0
        },
        "sample_count": 0
      }
    }
  ],
  "total": 0,
  "page": 0,
  "page_size": 0
}
```

## POST /v1/jobs

Submit job

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/jobs \
  -H "content-type: application/json" \
  -d '{"job_type":"ESMFOLD","inputs":{"sequences":["NLYIQWLKDGGPSSGRPPPS"]}}'
```

### Body

| Field | Type | Required |
|---|---|---|
| job_type | string | Required |
| name | string or null | Optional |
| idempotency_key | string or null | Optional |
| batch_id | string or null | Optional |
| project_id | string or null | Optional |
| project_name | string or null | Optional |
| dataset_id | string or null | Optional |
| dataset_name | string or null | Optional |
| inputs | object | Optional |
| params | object | Optional |
| graph | object | Optional |
| context | object or null | Optional |

Returns 202 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/JobSubmitRequest",
  "$defs": {
    "JobSubmitRequest": {
      "type": "object",
      "required": [
        "job_type"
      ],
      "properties": {
        "job_type": {
          "type": "string"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "idempotency_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "batch_id": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "inputs": {
          "type": "object",
          "additionalProperties": true
        },
        "params": {
          "type": "object",
          "additionalProperties": true
        },
        "graph": {
          "type": "object"
        },
        "context": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

### 202 response (application/json)

### 202 response fields and schema

```json
{
  "$ref": "#/$defs/JobSubmitResponse",
  "$defs": {
    "JobSubmitResponse": {
      "type": "object",
      "required": [
        "job_id",
        "status",
        "job_type",
        "estimated_credits",
        "status_url"
      ],
      "properties": {
        "job_id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "CANCELLED",
            "ERROR"
          ]
        },
        "job_type": {
          "type": "string"
        },
        "estimated_credits": {
          "type": "integer"
        },
        "estimated_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "status_url": {
          "type": "string"
        },
        "batch_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "job_id": "<value>",
  "status": "PENDING",
  "job_type": "<value>",
  "estimated_credits": 0,
  "estimated_seconds": 0,
  "status_url": "<value>",
  "batch_id": "<value>"
}
```

## DELETE /v1/jobs/{job_id}

Cancel job

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

### Parameters

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

Returns 204 or 422.

### 204 response

No response body.

## GET /v1/jobs/{job_id}

Get job status

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

### Parameters

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

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/JobStatusResponse",
  "$defs": {
    "JobStageResponse": {
      "type": "object",
      "required": [
        "stage",
        "status",
        "started_at",
        "completed_at",
        "error"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "CANCELLED",
            "ERROR"
          ]
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunHeadline": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "pass_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "RunSummary": {
      "type": "object",
      "description": "A completed run at a glance. The headline and sample count are stored at\ncompletion; the duration is the run's own completed_at - created_at.",
      "properties": {
        "duration_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "headline": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunHeadline"
            },
            {
              "type": "null"
            }
          ]
        },
        "sample_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "JobStatusResponse": {
      "type": "object",
      "required": [
        "job_id",
        "job_type",
        "project_id",
        "name",
        "status",
        "user_id",
        "estimated_credits",
        "consumed_credits",
        "created_at",
        "completed_at",
        "error",
        "stage",
        "outputs"
      ],
      "properties": {
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "exit_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "job_id": {
          "type": "string"
        },
        "job_type": {
          "type": "string"
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "batch_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "CANCELLED",
            "ERROR"
          ]
        },
        "user_id": {
          "type": "string"
        },
        "actor_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "actor_ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "estimated_credits": {
          "type": "integer"
        },
        "consumed_credits": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "anyOf": [
            {
              "$ref": "#/$defs/JobStageResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "outputs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "context": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "system_params": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "inputs": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "input_manifest_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "typical_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "summary": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunSummary"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "error_code": "<value>",
  "exit_code": 0,
  "recommended_action": "<value>",
  "job_id": "<value>",
  "job_type": "<value>",
  "project_id": "00000000-0000-4000-8000-000000000000",
  "name": "<value>",
  "batch_id": "<value>",
  "status": "PENDING",
  "user_id": "<value>",
  "actor_kind": "<value>",
  "actor_ref": "<value>",
  "estimated_credits": 0,
  "consumed_credits": 0,
  "created_at": "2026-01-01T00:00:00Z",
  "completed_at": "2026-01-01T00:00:00Z",
  "error": "<value>",
  "stage": {
    "error_code": "<value>",
    "exit_code": 0,
    "recommended_action": "<value>",
    "stage": "<value>",
    "status": "PENDING",
    "started_at": "2026-01-01T00:00:00Z",
    "completed_at": "2026-01-01T00:00:00Z",
    "error": "<value>"
  },
  "outputs": {},
  "context": {},
  "params": {},
  "system_params": {},
  "inputs": {},
  "input_manifest_uri": "<value>",
  "typical_seconds": 0,
  "summary": {
    "duration_seconds": 0,
    "headline": {
      "key": "<value>",
      "value": 0,
      "pass_count": 0
    },
    "sample_count": 0
  }
}
```

## GET /v1/jobs/{job_id}/embeddings

Get job embeddings

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

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| job_id | path | string | Required | format: uuid |
| limit | query | integer or null | Optional |  |
| cursor | query | string or null | Optional |  |

Returns 200 or 422.

### 200 response (application/json)

### 200 response fields and schema

```json
{
  "$ref": "#/$defs/JobEmbeddingsResponse",
  "$defs": {
    "MutationScore": {
      "type": "object",
      "required": [
        "mutation"
      ],
      "properties": {
        "mutation": {
          "type": "string"
        },
        "delta_loglik": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "loglik": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "delta_loglik_vs_reference": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "EmbeddingRow": {
      "type": "object",
      "required": [
        "name",
        "seq_len"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "seq_len": {
          "type": "integer"
        },
        "layers": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "pooling": {
          "type": "string",
          "default": ""
        },
        "dtype": {
          "type": "string",
          "default": ""
        },
        "shape": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "embedding_url": {
          "type": "string",
          "default": ""
        },
        "cached": {
          "type": "boolean",
          "default": false
        },
        "residues": {
          "type": "string",
          "default": ""
        },
        "logits_url": {
          "type": "string",
          "default": ""
        },
        "logits_shape": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "logits_dtype": {
          "type": "string",
          "default": ""
        },
        "logits_cached": {
          "type": "boolean",
          "default": false
        },
        "mutations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MutationScore"
          }
        },
        "reductions": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "region": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "JobEmbeddingsResponse": {
      "type": "object",
      "required": [
        "job_id",
        "model",
        "model_id",
        "pooling",
        "embeddings",
        "index_url",
        "urls_signed"
      ],
      "properties": {
        "job_id": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "model_id": {
          "type": "string"
        },
        "pooling": {
          "type": "string"
        },
        "vocab": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "mask_token": {
          "type": "string",
          "default": ""
        },
        "mask_token_id": {
          "type": "integer",
          "default": -1
        },
        "embeddings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmbeddingRow"
          }
        },
        "index_url": {
          "type": "string"
        },
        "urls_signed": {
          "type": "boolean"
        },
        "next_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

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

```json
{
  "job_id": "<value>",
  "model": "<value>",
  "model_id": "<value>",
  "pooling": "<value>",
  "vocab": [
    "<value>"
  ],
  "mask_token": "",
  "mask_token_id": -1,
  "embeddings": [
    {
      "name": "<value>",
      "seq_len": 0,
      "layers": [
        0
      ],
      "pooling": "",
      "dtype": "",
      "shape": [
        0
      ],
      "embedding_url": "",
      "cached": false,
      "residues": "",
      "logits_url": "",
      "logits_shape": [
        0
      ],
      "logits_dtype": "",
      "logits_cached": false,
      "mutations": [
        {
          "mutation": "<value>",
          "delta_loglik": 0,
          "loglik": 0,
          "delta_loglik_vs_reference": 0,
          "error": "<value>"
        }
      ],
      "reductions": {},
      "region": [
        0
      ],
      "error": "<value>"
    }
  ],
  "index_url": "<value>",
  "urls_signed": false,
  "next_cursor": "<value>"
}
```

## POST /v1/jobs/estimate

Estimate job

```bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/jobs/estimate \
  -H "content-type: application/json" \
  -d '{"job_type":"ESMFOLD","inputs":{"sequences":["NLYIQWLKDGGPSSGRPPPS"]}}'
```

### Body

| Field | Type | Required |
|---|---|---|
| job_type | string | Required |
| params | object | Optional |
| inputs | object | Optional |
| graph | object | Optional |

Returns 200 or 422.

### Complete request schema

```json
{
  "$ref": "#/$defs/JobEstimateRequest",
  "$defs": {
    "JobEstimateRequest": {
      "type": "object",
      "required": [
        "job_type"
      ],
      "properties": {
        "job_type": {
          "type": "string"
        },
        "params": {
          "type": "object",
          "additionalProperties": true
        },
        "inputs": {
          "type": "object",
          "additionalProperties": true
        },
        "graph": {
          "type": "object"
        }
      }
    }
  }
}
```

### 200 response (application/json)

### 200 response fields and schema

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

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

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


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