AI Models
Remove AI provider from organization
Legacy endpoint that removes a single aiProviders entry from OrganizationCredentials by providerId, and adjusts currentAiProviderIndex if needed. SUPERADMIN-only and tenant-scoped.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
organizationId*string
providerId*string
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/ai-models/organization/string/provider/string"{ "success": true, "message": "API key for anthropic removed successfully"}