List AI provider keys
GET/v1/workspaces/{workspaceId}/ai_provider_keys
Lists all customer-provided AI provider keys in the workspace
List AI provider keys
curl https://api.cadenya.com/v1/workspaces/$WORKSPACE_ID/ai_provider_keys \
-H "Authorization: Bearer $CADENYA_API_KEY"{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"spec": {
"apiKey": "apiKey",
"openrouter": {},
"provider": "AI_PROVIDER_UNSPECIFIED"
},
"info": {
"disabledModelCount": 0,
"enabledModelCount": 0,
"isPromotional": true
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"spec": {
"apiKey": "apiKey",
"openrouter": {},
"provider": "AI_PROVIDER_UNSPECIFIED"
},
"info": {
"disabledModelCount": 0,
"enabledModelCount": 0,
"isPromotional": true
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}