---
title: "List Model Variables"
method: GET
path: "/api/v1/model-variables"
tags: ["Model Variables"]
---

# List Model Variables

`GET /api/v1/model-variables`

Retrieves a paginated list of variables associated with a model.
Note: Model variables, filter values, and notes can all be attached to different entity types via `model_type` and `model_id`.

## Query parameters

- `filter[variable_id]` string
- `filter[model_type]` string
- `filter[model_id]` string
- `include` string
- `sort` string
- `page` integer
- `per_page` integer

## Response `200`

Successful response

- ModelVariablesListResponse
  - `data` ModelVariables[]
    - `id` integer — Unique identifier
    - `variable_id` string
    - `alias` string
    - `configurable` string
    - `required` string
    - `advanced` string
    - `model_type` string
    - `model_id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `variable` object
    - `modified` string
  - `meta` PaginationMeta
    - `current_page` integer
    - `from` integer, nullable
    - `last_page` integer
    - `path` string
    - `per_page` integer
    - `to` integer, nullable
    - `total` integer
  - `links` PaginationLinks
    - `first` string, uri
    - `last` string, uri
    - `prev` string, uri, nullable
    - `next` string, uri, nullable

## Other responses

- `401` — Unauthenticated
- `403` — Unauthorized

---

[API](https://skmtc.net/wearepatchworks/apis/patchworks-core-api.md) · [All operations](https://skmtc.net/wearepatchworks/apis/patchworks-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wearepatchworks/patchworks-core-api/revisions/89261af4dd80/schema)
