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

# Org detail + caller's role

> **Token scope:** `account` · `org` · `project` — read-only tokens allowed.



## OpenAPI

````yaml /openapi/org.json get /orgs/{orgId}
openapi: 3.1.0
info:
  title: InstaCloud API — Organization level
  version: 0.1.0
  description: >-
    Endpoints under `/orgs/{orgId}`: members, projects, billing, domains.
    Callable with an account-wide token or a token bound to that organization.


    Generated from the platform's own OpenAPI document
    (https://api.instacloud.com/openapi.json); see the [API
    overview](/reference/api/overview) for authentication and token scopes.
servers:
  - url: https://api.instacloud.com
    description: InstaCloud
security:
  - bearerAuth: []
tags:
  - name: Organization
    description: 'The organization itself: name, members, invitations.'
  - name: Projects
    description: Projects inside an organization.
  - name: Audit
    description: The project's event timeline, including agent-ingested events.
  - name: Domains
    description: >-
      Domains bought through InstaCloud, bring-your-own zones and their DNS
      records.
  - name: Billing
    description: Usage, cycles, invoices and credits.
paths:
  /orgs/{orgId}:
    get:
      tags:
        - Organization
      summary: Org detail + caller's role
      description: >-
        **Token scope:** `account` · `org` · `project` — read-only tokens
        allowed.
      operationId: getOrg
      parameters:
        - schema:
            format: uuid
            type: string
          in: path
          name: orgId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  org:
                    $ref: '#/components/schemas/Org'
                  role:
                    $ref: '#/components/schemas/Role'
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Org:
      type: object
      properties:
        id:
          format: uuid
          type: string
        name:
          type: string
        slug:
          type: string
        is_personal:
          type: boolean
        owner_user_id:
          description: Better Auth user id (opaque string, not a UUID)
          type: string
        created_at:
          format: date-time
          type: string
        checkout_token:
          type:
            - string
            - 'null'
    Role:
      type: string
      enum:
        - owner
        - admin
        - member
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Session access JWT or an API token (`insta_<prefix>_<secret>`).

````