On this page
provider_keys.delete
Remove the tenant's key for a model provider; new runs use the platform key
Request
DELETE /api/v1/provider-keys/{provider}
- MCP:
provider_keys_delete - SDK:
client.provider_keys.delete(SDK path arguments usepath; MCP usesparams). - Minimum API key role: admin.
- Idempotency: natural.
Use the request schema below. Read IDs from earlier operation results.
Input schema
json
{
"parameters": [
{
"name": "provider",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"elevenlabs",
"openai",
"cerebras"
]
}
}
],
"requestBody": null
}
Responses
json
{
"200": {
"description": "Remove the tenant's key for a model provider; new runs use the platform key",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProviderKeysDeleteResponse200"
}
}
}
},
"4XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"5XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}
Referenced schemas
json
{
"components": {
"schemas": {
"ProviderKeysDeleteResponse200": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"enum": [
"elevenlabs",
"openai",
"cerebras"
]
},
"source": {
"type": "string",
"enum": [
"platform",
"tenant"
]
},
"last4": {
"allOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 4
}
],
"nullable": true
},
"fingerprint": {
"allOf": [
{
"type": "string",
"pattern": "^sha256:[a-f0-9]{12}$"
}
],
"nullable": true
},
"validated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"last_rejection": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"last4": {
"type": "string",
"minLength": 1,
"maxLength": 4
},
"fingerprint": {
"type": "string",
"pattern": "^sha256:[a-f0-9]{12}$"
},
"at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"reason",
"last4",
"fingerprint",
"at"
],
"additionalProperties": false,
"nullable": true
}
},
"required": [
"provider",
"source",
"last4",
"fingerprint",
"validated_at",
"updated_at",
"last_rejection"
],
"additionalProperties": false
},
"ApiError": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"unauthenticated",
"forbidden",
"not_found",
"conflict",
"invalid_request",
"idempotency_conflict",
"policy_denied",
"capability_unavailable",
"provider_unavailable",
"knowledge_unavailable",
"publication_invalid",
"run_not_active",
"rate_limited",
"outcome_unknown",
"internal"
]
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"outcome": {
"type": "string",
"enum": [
"none",
"unknown"
]
},
"details": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"code",
"message",
"retryable",
"outcome"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}
}
}
}
Errors and recovery
See API error handling and Troubleshooting.
Related guides
Content version e7d259dbMarkdown source