Create organization
Create a new organization. If parent_org_id is provided, creates a child organization that bills to the parent (for whitelabel use cases). The API key for the new organization is only returned once at creation time.
Authorization
BearerAuth API key authentication. Get your key from the dashboard.
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 POST "https://example.com/organizations" \ -H "Content-Type: application/json" \ -d '{ "name": "Dentist Office" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"parent_org_id": "9721bb3f-1469-4c27-9bad-313667cb91ca",
"api_key": "fl_a1b2c3d4e5f6...",
"created_at": "2019-08-24T14:15:22Z"
}{
"error": "Invalid API key",
"message": "string"
}{
"error": "Invalid API key",
"message": "string"
}{
"error": "Invalid API key",
"message": "string"
}Get organization information (deprecated) GET
**Deprecated:** Use `/organizations` instead. Retrieve your organization details including balance, usage statistics, and resource counts.
Update organization retention PATCH
Set how long your organization's calls are kept. Content covers the transcript, summary, analysis result and recording; metadata covers the caller's phone number, the campaign link and the call events. Content cannot be kept longer than metadata. Shortening a period destroys data: the nightly cleanup erases everything older than the new period, and that cannot be undone. Both fields are required, because they are validated against each other. Unlimited retention is a contractual exception and is not available through this endpoint. See [Privacy & compliance](/docs/features/privacy-compliance#retention).