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

# Get the current organization

> The slug-prefixed `GET /v1/orgs/:slug` returns the user's role; here the
key is treated as `Owner` (matches `OrgContext` semantics), so the
returned role is informational rather than a real per-user binding.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/me/org
openapi: 3.1.0
info:
  title: microsandbox cloud API
  description: >-
    REST API for microsandbox cloud: sandbox and volume lifecycle, organization
    context, quotas, usage, and audit events, authenticated with an organization
    API key.
  version: 0.1.0
servers:
  - url: https://api.microsandbox.dev
security:
  - api_key: []
paths:
  /v1/me/org:
    get:
      tags:
        - Organization
      summary: Get the current organization
      description: |-
        The slug-prefixed `GET /v1/orgs/:slug` returns the user's role; here the
        key is treated as `Owner` (matches `OrgContext` semantics), so the
        returned role is informational rather than a real per-user binding.
      operationId: get_org
      responses:
        '200':
          description: Organization bound to this API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgWithRole'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_api_key
                  message: unauthorized
                  details: null
      security:
        - api_key: []
components:
  schemas:
    OrgWithRole:
      type: object
      description: Organization with the requesting user's role included.
      required:
        - id
        - name
        - slug
        - mfa_required
        - role
        - created_at
        - updated_at
      properties:
        created_at:
          type: string
          format: date-time
        id:
          type: string
          format: uuid
        mfa_required:
          type: boolean
        name:
          type: string
        role:
          $ref: '#/components/schemas/OrgRole'
        slug:
          type: string
        updated_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      description: Error envelope returned by every non-2xx response.
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Stable machine-readable error code, e.g. `invalid_api_key`.
            message:
              type: string
              description: Human-readable description of the error.
            details:
              type:
                - object
                - 'null'
              description: Optional structured context for the error.
    OrgRole:
      type: string
      description: Organization membership role.
      enum:
        - owner
        - admin
        - member
        - viewer
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
      description: Organization API key (msb_…) - org-scoped programmatic access.

````