Agents
Refresh exactly one provider's account-aware model inventory. This is an explicit operation because it starts a CLI process (and, for Claude workspaces, creates or wakes the user's persistent sandbox). Authorization therefore matches the provider's chat execution requirement instead of requiring unrelated settings mutation access. The AI service applies a provider-scoped single-flight and cooldown before doing that work.
post/settings/ai-providers/{provider_id}/models/refresh
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/settings/ai-providers/{provider_id}/models/refresh
- Auth: HTTP bearer
Path parameters
provider_idstring required
AI provider ID
Response
Changes
No recorded changes to this operation across all 54 revisions of this API.