cURL
curl --request POST \ --url http://co-mind-platform-host/v1/admin/tenants/{id}/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "provider": "openai", "name": "<string>", "key": "<string>" } '
{ "id": "<string>", "provider": "openai", "name": "<string>", "status": "<string>", "created_at": "2023-11-07T05:31:56Z" }
Create a provider API key for a tenant. Admin role required.
Bearer token authentication. Supports two token types:
POST /v1/auth/login
POST /v1/api-tokens
cmnd_<tokenId>.<secret>
The tenant ID
openai
anthropic
gemini
groq
sambanova
cohere
tavily
API key created