> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new organization

> Creates an organization plus its first ADMIN user, seeded credentials document, default document/process types, and a default DynamicProperties (Contact) layout. Rejects duplicates by name or phone number and validates credentials are not already in use.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/organizations
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/organizations:
    post:
      tags:
        - Organizations
      summary: Create a new organization
      description: >-
        Creates an organization plus its first ADMIN user, seeded credentials
        document, default document/process types, and a default
        DynamicProperties (Contact) layout. Rejects duplicates by name or phone
        number and validates credentials are not already in use.
      operationId: post_organizations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrganizationRequest'
      responses:
        '201':
          description: Organization created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOrganizationResponse'
        '400':
          description: Validation or duplicate error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CreateOrganizationRequest:
      type: object
      properties:
        name:
          type: string
          description: Organization display name shown across UI and templates.
        phoneNumber:
          type: string
          description: >-
            Primary organization phone number in E.164 format (must start with
            +1 or +91 followed by 10 digits).
        address:
          type: string
          description: Mailing/business address for the organization.
        creds:
          $ref: '#/components/schemas/CredsInput'
          description: >-
            Optional third-party API credentials (Anthropic, Sinch SMS/MMS)
            provisioned for the new organization.
        adminDetails:
          $ref: '#/components/schemas/AdminDetailsInput'
          description: >-
            Initial admin user created alongside the organization; email and
            password seed the first login.
      required:
        - name
        - phoneNumber
        - adminDetails
      additionalProperties: true
      example:
        name: Acme Corp
        phoneNumber: '+14165550100'
        address: 123 Yonge St, Toronto, ON
        adminDetails:
          email: admin@acme.example
          password: CorrectHorseBatteryStaple9!
          fullName: Alex Admin
    CreateOrganizationResponse:
      type: object
      properties:
        message:
          type: string
        data:
          type: object
          additionalProperties: true
      additionalProperties: true
      example:
        message: Organization with admin user created successfully
        data:
          _id: 5f7b1c2e8a1d4e0012c3b400
          name: Acme Corp
          phoneNumber: '+14165550100'
    OrganizationErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
      additionalProperties: true
      example:
        error: Organization not found
        details: No organization exists with the provided id
    CredsInput:
      type: object
      properties:
        anthropicApiKey:
          type: string
        sinchServicePlanId:
          type: string
        sinchApiToken:
          type: string
        sinchMmsApiKey:
          type: string
        sinchMmsServiceId:
          type: string
      additionalProperties: true
      example:
        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
    AdminDetailsInput:
      type: object
      properties:
        email:
          type: string
        password:
          type: string
        fullName:
          type: string
        phoneNumber:
          type: string
        designation:
          type: string
        sinchPhoneNumber:
          type: string
      required:
        - email
        - password
        - fullName
      additionalProperties: true
      example:
        email: admin@acme.example
        password: CorrectHorseBatteryStaple9!
        fullName: Alex Admin
        phoneNumber: '+14165550100'
        designation: Operations Lead
        sinchPhoneNumber: '+14165550101'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````