Refresh Claude agents, environments, vaults, and models for an agent
Refreshes Claude resource metadata with the configured Anthropic API key. Use this after selecting or adding an API key when model choices are missing, then save config.managedAgent.modelId using one of the returned model ids.
POST
/agents/{id}/claude/resources/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
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/agents/string/claude/resources/refresh" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"anthropicApiKey": "string",
"providerApiKeyId": "string"
}'const response = await fetch("https://leadtime.app/api/public/agents/string/claude/resources/refresh", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"anthropicApiKey": "string",
"providerApiKeyId": "string"
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/agents/string/claude/resources/refresh",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"anthropicApiKey": "string",
"providerApiKeyId": "string"
},
)Response
No example response.
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions