---
title: "Discover Models"
method: POST
path: "/v1/workspaces/{workspace}/provider-configs/{config_id}/discover"
tags: ["v1", "protected", "provider-configs"]
---

# Discover Models

`POST /v1/workspaces/{workspace}/provider-configs/{config_id}/discover`

Discover available models from the provider API and sync to model specs.

## Path parameters

- `config_id` string, uuid, required
- `workspace` string, required — Slug of the workspace the request acts in

## Response `200`

Successful Response

- DiscoveryResponse
  - `discovered` integer, required
  - `models` DiscoveredModelResponse[], required
    - `context_window` integer, required
    - `description` string, nullable
    - `display_name` string, required
    - `input_cost_per_token` string, nullable
    - `is_new` boolean
    - `max_output_tokens` integer, nullable
    - `model_name` string, required
    - `output_cost_per_token` string, nullable
    - `supports_function_calling` boolean
    - `supports_reasoning` boolean
    - `supports_vision` boolean
  - `new_models` integer, required
  - `skipped` SkippedModelResponse[]
    - `missing` string[], required
    - `model_name` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `d3ad8e1a3681` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace/provider-configs/:config_id/discover/post.md)

---

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