Anbieter
Create and validate a BYOK Provider Connection
POST
/api/v1/providers/api-keyErfordert einen API-Schlüssel der Organisation mit der Berechtigung „manageMembers“.
Authorization
apiKey AuthorizationBearer <token>
In: header
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/providers/api-key" \ -H "Content-Type: application/json" \ -d '{ "provider": "anthropic", "apiKey": "string" }'{ "connection": { "hasCredential": true, "type": "api_key", "id": "string", "provider": "anthropic", "organizationId": "string", "createdAt": "string", "config": { "property1": null, "property2": null }, "displayName": "string", "keyHint": "string", "createdBy": null, "preferredForEmbedding": true }, "error": "string"}{ "connection": { "hasCredential": true, "type": "api_key", "id": "string", "provider": "anthropic", "organizationId": "string", "createdAt": "string", "config": { "property1": null, "property2": null }, "displayName": "string", "keyHint": "string", "createdBy": null, "preferredForEmbedding": true }, "error": "string"}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}