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

# List my organizations

> Returns all organizations the current user belongs to, including the user's role.



## OpenAPI

````yaml https://api.surnex.io/openapi.json get /v1/organizations
openapi: 3.1.0
info:
  title: Surnex API
  description: |-
    Surnex SEO Platform API — api.surnex.io

    Provides the complete backend for the Surnex SEO dashboard including:
    - Multi-tenant organization management
    - Project tracking (domains)
    - Keyword rank tracking (Phase 1+)
    - Backlink analysis (Phase 3+)
    - Site auditing (Phase 4+)
    - Stripe billing integration
    - MCP endpoint for AI agents at /mcp
  version: 0.1.0
servers: []
security: []
paths:
  /v1/organizations:
    get:
      tags:
        - Organizations
      summary: List my organizations
      description: >-
        Returns all organizations the current user belongs to, including the
        user's role.
      operationId: list_my_organizations_v1_organizations_get
      parameters:
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_OrgWithRoleResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    PaginatedResponse_OrgWithRoleResponse_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          items:
            $ref: '#/components/schemas/OrgWithRoleResponse'
          type: array
          title: Data
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      type: object
      required:
        - data
        - meta
      title: PaginatedResponse[OrgWithRoleResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrgWithRoleResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        created_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Created By
        stripe_customer_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Stripe Customer Id
        trial_ends_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Trial Ends At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        role:
          $ref: '#/components/schemas/OrgRole'
      type: object
      required:
        - id
        - name
        - slug
        - created_at
        - updated_at
        - role
      title: OrgWithRoleResponse
      description: Organization data with the authenticated user's role.
    PaginationMeta:
      properties:
        page:
          type: integer
          minimum: 1
          title: Page
          description: Current page number (1-indexed)
        per_page:
          type: integer
          maximum: 500
          minimum: 1
          title: Per Page
          description: Number of items per page
        total:
          type: integer
          minimum: 0
          title: Total
          description: Total number of items across all pages
      type: object
      required:
        - page
        - per_page
        - total
      title: PaginationMeta
      description: Pagination metadata included in list responses.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    OrgRole:
      type: string
      enum:
        - owner
        - admin
        - member
      title: OrgRole
      description: Role a user can hold within an organization.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````