Delete an AI provider

Deletes an existing AI provider. Can only be deleted if no assistants are using it.

Request

DELETE https://superinterface.ai/api/cloud/providers/{providerId}

Authentication

Include your private API key in the request headers:
Authorization: Bearer YOUR_PRIVATE_API_KEY

Path Parameters

ParameterTypeDescription
providerIdstringThe ID of an existing AI provider to delete

Example request

curl -X DELETE "https://superinterface.ai/api/cloud/providers/30cfe680-fee5-49b9-b386-6a7097eb8497" \ -H "Authorization: Bearer YOUR_PRIVATE_API_KEY" \ -H "Content-Type: application/json"

Response

ParameterTypeDescription
providerProviderDeleted Provider

Example response

{ "provider": { "id": "30cfe680-fee5-49b9-b386-6a7097eb8497", "type": "OPENAI", "name": "", "apiKey": "sk-proj-IOKBKQJumIfonGrYWcA", "apiVersion": null, "endpoint": null, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-16T12:00:00Z" } }

Errors

The endpoint may return the following errors:

401 Unauthorized

This error occurs if the API key is invalid or missing.
{ "error": "Unauthorized", "message": "Invalid or missing API key" }