List AI providers
Retrieve a list of all AI providers available in your workspace.
Request
Authentication
Include your private API key in the request headers:
Authorization: Bearer YOUR_PRIVATE_API_KEY
Example request
curl -X GET "https://superinterface.ai/api/cloud/providers" \
-H "Authorization: Bearer YOUR_PRIVATE_API_KEY" \
-H "Content-Type: application/json"
Response
Example response
{
"providers": [
{
"id": "114a170b-9770-4dcf-9f18-8b464482e41d",
"type": "OPENAI",
"name": "",
"apiKey": "sk-proj-IOKBKQJumIfonGrYWcA",
"endpoint": null,
"apiVersion": null,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
},
{
"id": "c18e095c-b488-4982-bed8-1e9561429953",
"type": "AZURE_OPENAI",
"name": "",
"apiKey": "19as983adedsa48cda5b05aeda0a08f3",
"endpoint": "https://eu1.cognitiveservices.azure.com",
"apiVersion": "2024-05-01-preview",
"createdAt": "2024-01-15T11:00:00Z",
"updatedAt": "2024-01-15T11: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"
}