---
title: "Machine-readable contract"
method: GET
path: "/api/v1/models/{model}"
tags: ["models"]
---

# Machine-readable contract

`GET /api/v1/models/{model}`

## Request

- Base URL: `https://worthune.com`
- URL: `https://worthune.com/api/v1/models/{model}`
- Auth: none required

Input domains, array inputs, constraint notes, sentinels and consumed facts. Public for every model — contracts are the evaluation surface.

## Response `200`

The contract.

- ModelContract
  - `model` string, required
  - `specVersion` string, required
  - `specUrl` string, required
  - `inputs` object, required: Scalar/enum inputs and their domains.
  - `arrayInputs` object, required
  - `constraints` string[], required
  - `sentinels` object[], required
    - `field` string, required
    - `value` union, required
      - number
      - string
    - `meaning` string, required
  - `facts` FactRef[], required
    - `id` string, required
    - `label` string, required
    - `value` number, required
    - `period` string, required
    - `source` string, required
  - `disclaimer` string, required

## Other responses

- `404`: Unknown model.
- `429`: Hourly per-org stateful quota, a per-route durable limit, or the 120 requests/minute per-IP burst backstop.

---

[API](https://skmtc.dev/worthune/apis/worthune-api.md) · [All operations](https://skmtc.dev/worthune/apis/worthune-api/llms.txt) · [OpenAPI document](https://skmtc.dev/worthune/apis/worthune-api/revisions/9f2241072555?raw)
