---
title: "Fetch Models Policy"
method: GET
path: "/v1/model_policy"
tags: ["Model-Policy"]
---

# Fetch Models Policy

`GET /v1/model_policy`

## Query parameters

- `name` string[], nullable
- `display_name` string[], nullable
- `id` string[], nullable

## Response `200`

Successful Response

- ListModelConfig[]
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `display_name` string, required
  - `policy` FullModelConfigOutput, required
    - `strategy` StrategyConfig, required
      - `mode` 'loadbalance' | 'fallback' | 'single', required
      - `on_status_codes` integer[], nullable
    - `cache` CacheConfig
      - `mode` string, nullable
    - `retry` RetryConfig
      - `attempts` integer, required
      - `on_status_codes` integer[], nullable
    - `targets` union[], required
      - union
        - TargetConfig
          - `model_name` string, nullable, required
          - `weight` number, nullable
        - NestedStrategyOutput
          - `strategy` StrategyConfig, required
            - `mode` 'loadbalance' | 'fallback' | 'single', required
            - `on_status_codes` integer[], nullable
          - `targets` union[], required
            - union
              - …
          - `weight` number, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ibm/apis/wxo-server-api.md) · [All operations](https://skmtc.net/ibm/apis/wxo-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ibm/wxo-server-api/revisions/82c114c37196/schema)
