Organizations

Get organization API keys

POST
/api/organizations/api-keys

Returns the OrganizationCredentials document (Anthropic / Sinch / Twilio / OpenAI / Google) for the organization, plus the resolved current AI/SMS provider. SuperAdmin can read any org by passing { id }; non-superadmins always get their own org.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/organizations/api-keys" \  -H "Content-Type: application/json" \  -d '{    "id": "5f7b1c2e8a1d4e0012c3b400"  }'
{  "_id": "5f7b1c2e8a1d4e0012c3b410",  "anthropicApiKey": "sk-ant-api03-EXAMPLE-key-redacted",  "sinchServicePlanId": "srv-plan-example-123",  "sinchApiToken": "sinch-token-example-redacted",  "sinchMmsApiKey": "sinch-mms-key-example",  "sinchMmsServiceId": "sinch-mms-service-example"}