> ## 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.

# Get an organization by id (SuperAdmin only)

> Returns the full organization document for the given id, including populated credentials (Anthropic, Sinch, Twilio, etc.) and a resolved logoUrl. Only callable by SUPERADMIN.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/organizations/{id}
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/{id}:
    get:
      tags:
        - Organizations
      summary: Get an organization by id (SuperAdmin only)
      description: >-
        Returns the full organization document for the given id, including
        populated credentials (Anthropic, Sinch, Twilio, etc.) and a resolved
        logoUrl. Only callable by SUPERADMIN.
      operationId: get_organizations_id
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Organization returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationByIdResponse'
        '403':
          description: Unauthorized. Only superadmins can access this endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '404':
          description: Organization not found
          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:
    OrganizationByIdResponse:
      type: object
      description: >-
        Full organization document (Mongo-shaped) with populated credentials and
        a resolved logoUrl. Shape is intentionally permissive because the
        document is returned as-is from Mongo.
      properties:
        _id:
          type: string
        name:
          type: string
        phoneNumber:
          type: string
        address:
          type: string
        logoUrl:
          type: string
          nullable: true
        credentials:
          type: object
          additionalProperties: true
      additionalProperties: true
      example:
        _id: 5f7b1c2e8a1d4e0012c3b400
        name: Acme Corp
        phoneNumber: '+14165550100'
        address: 123 Yonge St, Toronto, ON
        logoUrl: https://cdn.example.com/logos/acme.png?sig=...
        credentials:
          _id: 5f7b1c2e8a1d4e0012c3b410
          anthropicApiKey: sk-ant-api03-EXAMPLE-key-redacted
          sinchServicePlanId: srv-plan-example-123
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````