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

# Search Organizations

> Search stakeholder organizations by text query.



## OpenAPI

````yaml /openapi/v2/schema.json post /stakeholder_entities/search
openapi: 3.1.0
info:
  title: ApartmentIQ API V2
  version: 2.0.0
  termsOfService: https://www.getapartmentiq.com/terms
  x-logo:
    url: https://developers.apartmentiq.io/logo.svg
    altText: ApartmentIQ
  description: >-
    ApartmentIQ API V2 endpoints for account discovery, search, and bulk Explore
    data.
servers:
  - url: https://data.apartmentiq.io/apartmentiq/api/v2
security:
  - bearerAuth: []
tags:
  - name: Accounts
    description: Account discovery endpoints.
  - name: Amenities
    description: Amenity discovery endpoints.
  - name: Properties
    description: Property search endpoints.
  - name: Markets
    description: Market and geo-boundary search endpoints.
  - name: Organizations
    description: Organization search endpoints.
  - name: Bulk
    description: Bulk property, market, quota, and forecast exports.
paths:
  /stakeholder_entities/search:
    post:
      tags:
        - Organizations
      summary: Search Organizations
      description: Search stakeholder organizations by text query.
      operationId: searchV2Organizations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrganizationSearchRequest'
            example:
              account_id: '{account_id}'
              query: Greystar
              entity_type: property_manager
      responses:
        '200':
          description: Matching organizations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationSearchResponse'
              example:
                - id: 78012
                  name: Greystar Real Estate Partners
                  type: Property Manager
                  image_url: https://cdn.example.com/organizations/greystar.png
                - id: 78109
                  name: Greystar Investment Group
                  type: Owner
                  image_url: null
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/AccountAccessForbidden'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    OrganizationSearchRequest:
      type: object
      properties:
        account_id:
          $ref: '#/components/schemas/AccountId'
        query:
          type: string
          description: Search term.
        entity_type:
          type: string
          description: Optional stakeholder entity type. Invalid values return 400.
      required:
        - account_id
        - query
      additionalProperties: false
    OrganizationSearchResponse:
      type: array
      items:
        $ref: '#/components/schemas/Organization'
      description: Stakeholder organizations matching the search query.
    AccountId:
      anyOf:
        - type: integer
        - type: string
      description: ApartmentIQ account ID used to set the request account context.
    Organization:
      type: object
      properties:
        id:
          type: integer
          description: ApartmentIQ stakeholder entity ID.
        name:
          type:
            - string
            - 'null'
          description: Display name for the organization.
        type:
          type:
            - string
            - 'null'
          description: Organization type, such as owner or property manager.
        image_url:
          type:
            - string
            - 'null'
          description: Image or logo URL for the organization, when available.
      required:
        - id
        - name
        - type
        - image_url
      additionalProperties: false
      description: Stakeholder organization returned by stakeholder search.
    Error:
      type: object
      description: Error response payload.
      properties:
        error:
          type: string
          description: Short error message.
        message:
          type: string
          description: Additional error details, when available.
        quota_limit:
          type: integer
          description: Quota limit that applied to the request, when relevant.
        quota_usage:
          type: integer
          description: Quota already used, when relevant.
      required:
        - error
      additionalProperties: true
  responses:
    BadRequest:
      description: The request was invalid or malformed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized - Invalid or missing authentication.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    AccountAccessForbidden:
      description: Forbidden - The user lacks access to the requested account.
    RateLimitExceeded:
      description: >-
        Rate limit exceeded. Inspect the rate limit headers and wait before
        retrying.
      headers:
        X-RateLimit-Limit:
          description: The limit that applied to the request.
          schema:
            type: string
        X-RateLimit-Reset-After:
          description: The rate limit window length, in seconds.
          schema:
            type: string
        X-RateLimit-Reset:
          description: Unix timestamp when the current window resets.
          schema:
            type: string
        Retry-After:
          description: Seconds to wait before retrying the request.
          schema:
            type: string
      content:
        text/plain:
          schema:
            type: string
          example: |
            You have exceeded the rate limit for this API.
    InternalServerError:
      description: An unexpected error occurred while processing the request.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````