Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

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/refresh
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Request body
requiredapplication/json
anthropicApiKeystring | null
Raw Anthropic API key to validate.
providerApiKeyIdstring | null
Saved Anthropic provider API key id to validate.
Responses
201
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/agents/string/claude/models/refresh" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "anthropicApiKey": "string",
  "providerApiKeyId": "string"
}'
Response
No example response.