Refresh Claude model choices for an agent
Lists Claude models using the agent configured Anthropic key, or an optional providerApiKeyId/anthropicApiKey in the request body. When using a saved key, the agent model cache is updated so the UI and agents can select config.managedAgent.modelId from the same list.
POST
/agents/{id}/claude/models/refreshAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredRequest body
requiredapplication/jsonanthropicApiKeystring | nullRaw Anthropic API key to validate.
providerApiKeyIdstring | nullSaved Anthropic provider API key id to validate.
Responses
201
401
Unauthorized - Invalid or missing authentication token
403
Forbidden - Insufficient API scopes or permissions