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

# Get an organization

> Returns a single organization by ID. Returns 404 if the organization isn't reachable by this key.



## OpenAPI

````yaml /api-reference/external_api.openapi.json get /organizations/{party_id}
openapi: 3.1.0
info:
  title: Monterey External Reporting API
  description: >-
    Org-scoped, API-key-authenticated reporting endpoints for Monterey Financial
    clients.
  version: 0.1.0
servers:
  - url: https://api.montereyfinancial.app
    description: Production
security:
  - BearerApiKey: []
paths:
  /organizations/{party_id}:
    get:
      tags:
        - Organizations
      summary: Get an organization
      description: >-
        Returns a single organization by ID. Returns 404 if the organization
        isn't reachable by this key.
      operationId: get_organization_organizations__party_id__get
      parameters:
        - name: party_id
          in: path
          required: true
          schema:
            type: string
            title: Party Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationRow'
        '401':
          description: Missing or invalid API key.
        '403':
          description: organization_id outside the key's allowlist.
        '404':
          description: Resource not in scope or does not exist.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerApiKey: []
components:
  schemas:
    OrganizationRow:
      properties:
        id:
          type: string
          title: Id
          description: The organization's unique ID.
        display_name:
          type: string
          title: Display Name
        legal_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Legal Name
          description: Full legal entity name, if available.
        dba_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Dba Name
        is_active:
          type: boolean
          title: Is Active
      type: object
      required:
        - id
        - display_name
        - is_active
      title: OrganizationRow
      description: >-
        An organization an API key is scoped to. Appears as `organization_id` on
        every account, transaction, and report row.
      examples:
        - dba_name: Acme Auto
          display_name: Acme Motors
          id: 01J8AB2C3D4E5F6G7H8J9K0L1M
          is_active: true
          legal_name: Acme Motors LLC
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
      description: >-
        Parameter-validation error (HTTP 422). `detail` lists each violated
        constraint with its location, message, and type.
    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
      description: >-
        A single parameter-validation failure: `loc` is the path to the
        offending input, `msg` is human-readable, and `type` is the rule that
        failed.
  securitySchemes:
    BearerApiKey:
      type: http
      description: Static API key issued via the client portal. Treat it like a password.
      scheme: bearer
      bearerFormat: ApiKey

````