---
title: "Validate Complexity Router Config"
method: POST
path: "/auto_router/validate_complexity_router_config"
tags: ["model management"]
---

# Validate Complexity Router Config

`POST /auto_router/validate_complexity_router_config`

Validate a complexity-router config without saving it.

Runs the same check every write path runs (the router's own pydantic model), so a form can
show the backend's exact verdict while the operator is still editing rather than after a
rejected save. Gated exactly like the save it rehearses: a proxy admin, or a team admin
naming their own team. Nothing is created, routed, or billed.

## Request body

- ComplexityRouterConfigValidationRequest — A complexity-router config to validate without saving, so a form can surface the backend's own verdict inline instead of a raw 400 at write time.
  - `complexity_router_config` object, required
  - `team_id` string, nullable — Team the router is being created for. Required for a team admin, who may only validate their own team's routers

## Response `200`

Successful Response

- ComplexityRouterConfigValidationResponse
  - `valid` boolean, required
  - `error` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `082b5fabd909` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/auto_router/validate_complexity_router_config/post.md)

---

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