# The item type catalog

> GET /item-types

Source: https://mockflow.com/developers/reference/items/list-item-types

**GET** `https://api.mockflow.com/v1/item-types`

**curl**

```bash
curl https://api.mockflow.com/v1/item-types \
  -H "Authorization: Bearer $MOCKFLOW_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://api.mockflow.com/v1/item-types", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`
  }
});

const data = await response.json();
```

**Python**

```python
import os, requests

response = requests.get(
    "https://api.mockflow.com/v1/item-types",
    headers={"Authorization": f"Bearer {os.environ['MOCKFLOW_API_KEY']}"},
)

response.raise_for_status()
data = response.json()
```

**200**

```json
{
  "data": [
    {
      "type": "artifact",
      "label": "string",
      "hint": "string",
      "primitive": false,
      "creatable": false,
      "mcpTool": "string"
    }
  ]
}
```

**429**

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#rate_limited"
  },
  "requestId": "req_45d49816999bac40"
}
```

Every item type, generated from the component registry. No token needed. `readback` says what a GET on an item of that type returns: `exact` (the same object the type was created with), `unwrapped` (one wrapper removed), `text` (a string under the schema's key), `pointer` (an S3 pointer and state), `parts` (drawn as many components, read through the structure) or `none`.

### Authorization

- `Authorization` (string, required): `Bearer <key>`. Any key of the workspace. Create and manage keys in the [developer console](/developers/console/); what each scope unlocks is on the [scopes page](/developers/concepts/scopes).

### Response

- `data` (ItemTypeSummary[]): - `type` (enum<string>): Item types, generated from the MockFlow component registry. Primitive types are drawn by the editor; frame types are rich components whose `data` schema is the same one the MCP `render_*` tool accepts.
  - `label` (string | null)
  - `hint` (string | null)
  - `primitive` (boolean)
  - `creatable` (boolean)
  - `mcpTool` (string | null)
  - `readback` (enum<string>): One of `exact`, `unwrapped`, `text`, `pointer`, `parts` or `none`.
  - `schemaRef` (string)

### Errors

- 429 `rate_limited`: Too many requests.
