1. Org
Cognita
  • Introduction
  • Auth
    • register
      POST
    • login
      POST
    • callback
      GET
    • profile
      GET
    • verify email
      POST
    • refresh
      POST
    • logout
      POST
    • forgot password
      POST
    • reset password
      POST
    • request reset password
      POST
    • update-profile
      PATCH
  • Meetings
    • Transcripts
      • Retrieve transcripts for a meeting
    • upload init
    • Get meeting details
  • Transcription
    • live
    • Get Transcript segments
    • Create translation for transcript
  • Organization
    • Billing
      • Get Billing Details
      • Update Plan
    • Org
      • Create Organization
        POST
      • Get Organization
        GET
      • Get Organizations
        GET
      • update organization
        PUT
      • update settings
        PATCH
      • Delete Organization
        DELETE
      • get organization settings
        GET
      • Suspend
        POST
      • Resume
        POST
    • Retention
      • Set Retention Policy
      • Get Retention Policy
      • Update Retention Policy
    • Domains
      • Allowed Domains
      • Allowed Domains
      • Domain verfying
  • Workspaces
    • Org
      • Get Organization Workspaces
    • Workspace
      • Create Workspace
      • Get Workspace
      • Update Workspace
      • Delete Workspace
    • Users
      • Get Workspace Members
      • Delete Member from Workspace
    • Meetings
      • Start a meeting in workspace
  • configurations
    • feature-flags
    • configs
    • tenant-defaults
  • Schemas
    • Organization
      • OrganizationSettings
      • FeatureFlags
      • RetentionPolicy
      • Organization
      • CreateOrgRequestBody
    • Billing & Subscriptions
      • BillingAccount
      • SubscriptionEntitlements
      • SubscriptionPlan
      • Subscription
      • PaymentMethod
      • Invoice
      • UsageRecords
      • Bill
    • Roles & permissions
      • Permissions
    • Workspace
      • Workspaces
    • Meeting & Recordings
      • Meetings
    • Trascriptions & Summaries
    • Integrations
    • Notifications & Audit logs
    • AI Services
    • Localization
    • Auth & Users
      • user
      • AccessToken
    • ErrorResponse
    • SuccessResponse
    • DeviceInfo
    • Session
  1. Org

Create Organization

Developing
Develop Env
http://localhost:3000/api
Develop Env
http://localhost:3000/api
POST
http://localhost:3000/api
orgs/
organization
Maintainer:Abdelrhman Moataz

Purpose#

Create a new organization (used by onboarding automation or platform admins).

Auth / Scope#

system:admin OR enterprise provisioning token.
Only system-level or cloud admin flows should be allowed.

Headers#

Content-Type: application/json
Authorization: Bearer <SYS_ADMIN_TOKEN>
Idempotency-Key: <uuid> (recommended)
X-Request-ID: <uuid> (recommended)

Idempotency & retries#

Use Idempotency-Key for retries: same key returns same created org or 409 if conflict.

Rate limits#

Provisioning calls are limited (e.g., 10/min per system token). On 429 respect Retry-After.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠400Bad Request
🟠409Bad Request
🟠403Forbidden
🔴500Server Error
🟠429Too Many Requests
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/apiorgs/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Cognita Education Group",
    "orgType": "education",
    "billingAccountId": "cus_87654321xyz",
    "settings": {
        "timezone": "America/Los_Angeles",
        "defaultLanguage": "en-US",
        "complianceMode": "ferpa",
        "recordingConsent": "required",
        "aiSummaries": "enhanced",
        "educationMode": true,
        "dlpEnabled": true,
        "translationEnabled": true,
        "realTimeSummaries": true,
        "lmsIntegration": "canvas",
        "retentionAlerts": true
    },
    "retentionPolicy": {
        "transcripts": "730d",
        "recordings": "365d",
        "chatLogs": "365d",
        "userData": "1825d",
        "examData": "3650d"
    },
    "allowedDomains": [
        "cognita.edu",
        "school-district.k12"
    ],
    "featureFlags": {
        "realTimeTranslation": true,
        "roleAwareSummaries": true,
        "examGeneration": true,
        "meetingEnergyDashboard": false,
        "breakoutRooms": true,
        "aiAttendee": false
    },
    "payerUserId": "u-9f8e7d6c-5b4a-3210-fedc-ba9876543210"
}'
Response Response Example
200 - Success
{
  "message": "Organization created successfully",
  "data": {
    "orgId": "a1b2c3d4-5678-90ef-1234-567890abcdef",
    "name": "Cognita Education Group",
    "orgType": "education",
    "billingAccountId": "cus_87654321xyz",
    "payerUserId": "u-9f8e7d6c-5b4a-3210-fedc-ba9876543210",
    "createdAt": "2025-10-22T14:30:00Z",
    "updatedAt": "2025-10-22T14:30:00Z",
    "retentionPolicy": {
      "transcripts": "730d",
      "recordings": "365d",
      "chatLogs": "365d",
      "userData": "1825d",
      "examData": "3650d"
    },
    "settings": {
      "timezone": "America/Los_Angeles",
      "defaultLanguage": "en-US",
      "complianceMode": "ferpa",
      "recordingConsent": "required",
      "aiSummaries": "enhanced",
      "educationMode": true,
      "dlpEnabled": true,
      "translationEnabled": true,
      "realTimeSummaries": true,
      "lmsIntegration": "canvas",
      "retentionAlerts": true
    },
    "billingPlan": "enterprise_edu",
    "isSuspended": false,
    "suspensionReason": null,
    "suspensionDate": null,
    "trialEndDate": "2026-01-22T00:00:00Z",
    "allowedDomains": [
      "cognita.edu",
      "school-district.k12"
    ],
    "featureFlags": {
      "realTimeTranslation": true,
      "roleAwareSummaries": true,
      "examGeneration": true,
      "meetingEnergyDashboard": false,
      "breakoutRooms": true,
      "aiAttendee": false
    }
  }
}
Modified at 2025-10-22 01:55:14
Previous
Update Plan
Next
Get Organization
Built with