---
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`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/auto_router/validate_complexity_router_config`
- Auth: API key in header `x-litellm-api-key`

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. Uses the same team opt-in and model-access checks as configuration
writes for members. 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-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

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

---

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