---
title: "Refresh and cache the model picker for one agent"
method: POST
path: "/api/v1/agents/{agent}/models/refresh"
tags: ["agents"]
---

# Refresh and cache the model picker for one agent

`POST /api/v1/agents/{agent}/models/refresh`

## Path parameters

- `agent` string, required — Agent adapter identifier.

## Query parameters

- `projectId` string — Optional project identifier used as the model-catalog cache scope.
- `revalidate` boolean — When true, compare executable and config metadata before running discovery.

## Response `200`

OK

- AgentModelsResponse
  - `agentId` string, required
  - `allowCustom` boolean, required
  - `binaryVersion` string
  - `fetchedAt` string, date-time, required
  - `models` AgentModelInfo[], required
    - `id` string, required
    - `isDefault` boolean
    - `label` string, required
    - `provider` string
  - `refreshRecommended` boolean
  - `selectionMode` 'catalog' | 'text' | 'mode', required
  - `source` string, required
  - `stale` boolean, required
  - `validatedAt` string, date-time
  - `warning` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error
- `501` — Not Implemented

## Changes

- **2026-08-05** `f95c2a6af3da` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/agents/:agent/models/refresh/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/composiohq/agent-orchestrator-http-daemon/revisions/09f65272fe44/schema)
