Organizations

Update organization API keys and details

PUT
/api/organizations/api-keys

Updates org-level details (name/phoneNumber/address/logoUrl) and replaces the OrganizationCredentials document. Validates the new credentials are not already in use by another org, uploads logo to R2 if provided as data URL, and backfills missing DynamicProperties section.properties fields.

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

application/json

curl -X PUT "https://example.com/api/organizations/api-keys" \  -H "Content-Type: application/json" \  -d '{    "id": "5f7b1c2e8a1d4e0012c3b400",    "name": "Acme Corp",    "phoneNumber": "+14165550100",    "address": "123 Yonge St, Toronto, ON",    "creds": {      "anthropicApiKey": "sk-ant-api03-EXAMPLE-key-redacted",      "sinchServicePlanId": "srv-plan-example-123"    }  }'
{  "message": "Organization details updated successfully"}