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

# Resolve agent by partner id (across all partner systems)

> Searches `external_partner_ids[*].partnerId` for a match, ignoring `partnerName`. Unique hit → 200 with the agent (same shape as GET /agents/:id). 0 hits → 404. 2+ hits → 409 with the first 10 matches in the body so the caller can disambiguate. Does NOT fall back to Atlas id (`agents.id`) or `agent_uuid` lookups — those have dedicated endpoints.



## OpenAPI

````yaml /api-reference/v2/openapi.json get /agents/by-partner/{partnerId}
openapi: 3.0.3
info:
  title: Windermere Atlas API
  description: V2 data API — Project Atlas
  version: 2.0.0
servers:
  - url: https://api.windermere.com/v2/api
security:
  - bearerAuth: []
tags:
  - name: agents
    description: Agent profile read endpoints
  - name: offices
    description: Office read endpoints
  - name: teams
    description: Team read endpoints
  - name: listings
    description: Listings (RESO Data Dictionary Property records; active + sold)
  - name: reso
    description: >-
      RESO Web API Core (OData 4.0) facade over listings — Property, Media,
      OpenHouse, Lookup
  - name: brokerages
    description: Brokerage read endpoints
  - name: regions
    description: Region read endpoints
  - name: dnc
    description: Do-not-contact list read endpoints
  - name: directory
    description: Denormalized public directory (partner-safe)
  - name: webhooks
    description: Partner webhook subscriptions (partner-only)
  - name: health
    description: Liveness and readiness probes
paths:
  /agents/by-partner/{partnerId}:
    get:
      tags:
        - agents
      summary: Resolve agent by partner id (across all partner systems)
      description: >-
        Searches `external_partner_ids[*].partnerId` for a match, ignoring
        `partnerName`. Unique hit → 200 with the agent (same shape as GET
        /agents/:id). 0 hits → 404. 2+ hits → 409 with the first 10 matches in
        the body so the caller can disambiguate. Does NOT fall back to Atlas id
        (`agents.id`) or `agent_uuid` lookups — those have dedicated endpoints.
      parameters:
        - schema:
            type: string
          in: query
          name: fields
          required: false
        - schema:
            anyOf:
              - type: boolean
              - type: string
                enum:
                  - 'true'
                  - 'false'
            default: false
          in: query
          name: includeInternal
          required: false
        - schema:
            type: string
          in: query
          name: include
          required: false
        - schema:
            type: string
            minLength: 1
          in: path
          name: partnerId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  agentUuid:
                    type: string
                    nullable: true
                  sourceAgentId:
                    type: string
                    nullable: true
                  firstName:
                    type: string
                  lastName:
                    type: string
                  displayName:
                    type: string
                    nullable: true
                  externalPartnerIds:
                    type: array
                    items:
                      type: object
                      properties:
                        partnerName:
                          type: string
                        partnerId:
                          type: string
                      required:
                        - partnerName
                        - partnerId
                      additionalProperties: false
                    description: >-
                      Partner-system identifiers. Filtered by: partnerIdsFilter
                      (staff see all; partners see entries matching their
                      canonical partner_name and any granted_names).
                  primaryOfficeId:
                    type: string
                    format: uuid
                  primaryEmailAddress:
                    type: string
                    nullable: true
                  signInUpn:
                    type: string
                    nullable: true
                  secondaryEmailAddress:
                    type: string
                    nullable: true
                  leadRoutingEmailAddress:
                    type: string
                    nullable: true
                  emailAddresses:
                    type: object
                    properties:
                      primary:
                        type: string
                        nullable: true
                      display:
                        type: string
                        nullable: true
                      alternate:
                        type: string
                        nullable: true
                      moxiSync:
                        type: string
                        nullable: true
                      zillow:
                        type: string
                        nullable: true
                      leadRouting:
                        type: string
                        nullable: true
                    additionalProperties:
                      type: string
                      nullable: true
                  emailAliases:
                    type: array
                    items:
                      type: string
                  mainPhoneNumber:
                    type: string
                    nullable: true
                  mobilePhoneNumber:
                    type: string
                    nullable: true
                  altPhoneNumber:
                    type: string
                    nullable: true
                  faxPhoneNumber:
                    type: string
                    nullable: true
                  mlsAgentId:
                    type: string
                    nullable: true
                  license:
                    type: string
                    nullable: true
                  licenseState:
                    type: string
                    nullable: true
                  mlsName:
                    type: string
                    nullable: true
                  mlsAbbreviation:
                    type: string
                    nullable: true
                  availableMls:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        displayName:
                          type: string
                          nullable: true
                        mlsAbbreviation:
                          type: string
                          nullable: true
                        agentId:
                          type: string
                          nullable: true
                      required:
                        - name
                      additionalProperties: false
                  licenseStartDate:
                    type: string
                    nullable: true
                  licenseRenewalDate:
                    type: string
                    nullable: true
                  title:
                    type: string
                    nullable: true
                  designations:
                    type: string
                    nullable: true
                  bio:
                    type: string
                    nullable: true
                  languages:
                    type: array
                    items:
                      type: string
                  serviceAreaZipCodes:
                    type: array
                    items:
                      type: string
                  areasOfService:
                    type: string
                    nullable: true
                  profileImageUrl:
                    type: string
                    nullable: true
                  profileThumbUrl:
                    type: string
                    nullable: true
                  profileImageUrls:
                    type: object
                    additionalProperties:
                      type: string
                  social:
                    type: object
                    additionalProperties:
                      type: string
                      nullable: true
                  homePage:
                    type: string
                    nullable: true
                  websiteBaseUrl:
                    type: string
                    nullable: true
                  permissionLevel:
                    type: string
                  viewLevel:
                    type: string
                    nullable: true
                  role:
                    type: string
                    nullable: true
                  hasProductAccess:
                    type: boolean
                  productAccess:
                    type: object
                    additionalProperties: {}
                  profileVisibleOnline:
                    type: boolean
                  includeInApi:
                    type: boolean
                  tags:
                    type: array
                    items:
                      type: string
                  directoryCategory:
                    type: string
                    nullable: true
                  region:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                    required:
                      - id
                      - name
                    additionalProperties: false
                    nullable: true
                  changeLogSummary:
                    type: array
                    items:
                      type: object
                      properties:
                        changedAt:
                          type: string
                        actorId:
                          type: string
                        fieldPath:
                          type: string
                        oldValue: {}
                        newValue: {}
                      required:
                        - changedAt
                        - actorId
                        - fieldPath
                      additionalProperties: false
                    description: >-
                      Requires scope: agents.audit.read (staff trusted by
                      default).
                  emergencyContactName:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  emergencyContactPhone:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  dietaryRestrictions:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  childrenAndPets:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  birthday:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  namePronunciation:
                    type: string
                    nullable: true
                  hireDate:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  importantDates:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                        date:
                          type: string
                      required:
                        - label
                        - date
                      additionalProperties: false
                    description: >-
                      Additional labelled dates (e.g. a role-change start).
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  archetype:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                      businessApproach:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                      goalOrientation:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                      techReadiness:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                      confidence:
                        type: string
                        enum:
                          - HIGH
                          - MEDIUM
                          - LOW
                          - INSUFFICIENT_DATA
                      managerFit:
                        type: string
                        enum:
                          - FITS
                          - PARTIAL
                      assessedAt:
                        type: string
                        format: date-time
                      assessedByAgentId:
                        type: string
                        format: uuid
                        nullable: true
                        default: null
                      source:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                      recordId:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                      questionnaireVersion:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                      scoringVersion:
                        type: string
                        minLength: 1
                        nullable: true
                        default: null
                    required:
                      - confidence
                      - managerFit
                      - assessedAt
                    additionalProperties: false
                    nullable: true
                    description: >-
                      Current Business Boost archetype (MCP-written).
                      Staff-only, never shown to the agent: returned ONLY when
                      explicitly projected with
                      `includeInternal=true&fields=archetype`. Partners need
                      agents.read.internal.
                  priorBrokerage:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  agentSubscriptions:
                    type: array
                    items:
                      type: string
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  internalNotes:
                    type: string
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal (staff trusted by
                      default).
                  notificationPreferences:
                    type: object
                    properties:
                      newLeads:
                        type: boolean
                      showingRequests:
                        type: boolean
                      channel:
                        type: string
                        enum:
                          - email
                          - sms
                          - none
                    additionalProperties: true
                    nullable: true
                  createdAt:
                    type: string
                    format: date-time
                  deactivatedAt:
                    type: string
                    format: date-time
                    nullable: true
                  tosAcceptedAt:
                    type: string
                    format: date-time
                    nullable: true
                  officeWoboOptOut:
                    type: boolean
                  officeWoboOptedOutAt:
                    type: string
                    format: date-time
                    nullable: true
                  smsConsent:
                    type: object
                    properties:
                      windermere:
                        type: object
                        properties:
                          granted:
                            type: boolean
                          at:
                            type: string
                            format: date-time
                          textVersion:
                            type: string
                        required:
                          - granted
                          - at
                          - textVersion
                        additionalProperties: false
                        nullable: true
                      brokerage:
                        type: object
                        properties:
                          granted:
                            type: boolean
                          at:
                            type: string
                            format: date-time
                          textVersion:
                            type: string
                        required:
                          - granted
                          - at
                          - textVersion
                        additionalProperties: false
                        nullable: true
                    required:
                      - windermere
                      - brokerage
                    additionalProperties: false
                    nullable: true
                    description: >-
                      Requires scope: agents.read.internal for partners (staff
                      trusted by default).
                  lastUpdatedAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  reactivationHistory:
                    type: array
                    items:
                      type: object
                      properties:
                        reactivatedAt:
                          type: number
                        deactivatedAt:
                          type: number
                        reactivatedBy:
                          type: string
                          nullable: true
                      required:
                        - reactivatedAt
                        - deactivatedAt
                      additionalProperties: false
                  companyId:
                    type: string
                    nullable: true
                  facebookAccountId:
                    type: string
                    nullable: true
                  alternateInternalOfficeId:
                    type: string
                    nullable: true
                  primaryOffice:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      commonName:
                        type: string
                        nullable: true
                    required:
                      - id
                      - name
                      - commonName
                    additionalProperties: false
                    nullable: true
                  secondaryOffices:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        commonName:
                          type: string
                          nullable: true
                        displayInDirectory:
                          type: boolean
                      required:
                        - id
                        - name
                        - commonName
                        - displayInDirectory
                      additionalProperties: false
                  brokerage:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                    required:
                      - id
                      - name
                    additionalProperties: false
                    nullable: true
                  teams:
                    type: array
                    items:
                      type: object
                      properties:
                        teamId:
                          type: string
                          format: uuid
                        name:
                          type: string
                        role:
                          type: string
                        memberCount:
                          type: integer
                          minimum: 0
                      required:
                        - teamId
                        - name
                        - role
                        - memberCount
                      additionalProperties: false
                  delegateAccess:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        status:
                          type: string
                          enum:
                            - active
                            - pending
                        via:
                          anyOf:
                            - type: object
                              properties:
                                grant:
                                  type: object
                                  properties:
                                    grantId:
                                      type: string
                                      format: uuid
                                  required:
                                    - grantId
                                  additionalProperties: false
                              required:
                                - grant
                              additionalProperties: false
                            - type: object
                              properties:
                                office:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      format: uuid
                                    name:
                                      type: string
                                  required:
                                    - id
                                    - name
                                  additionalProperties: false
                              required:
                                - office
                              additionalProperties: false
                      required:
                        - id
                        - name
                        - status
                        - via
                      additionalProperties: false
                  officeWoboAccessors:
                    type: array
                    items:
                      type: object
                      properties:
                        agentId:
                          type: string
                          format: uuid
                        name:
                          type: string
                        email:
                          type: string
                          nullable: true
                        permissionLevel:
                          type: string
                        bucket:
                          type: string
                          enum:
                            - staff
                            - manager
                            - owner
                        via:
                          type: string
                          enum:
                            - primary
                            - secondary
                        office:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                          required:
                            - id
                            - name
                          additionalProperties: false
                      required:
                        - agentId
                        - name
                        - email
                        - permissionLevel
                        - bucket
                        - via
                        - office
                      additionalProperties: false
                additionalProperties: false
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  title:
                    type: string
                  status:
                    type: number
                    enum:
                      - 409
                  detail:
                    type: string
                  instance:
                    type: string
                  trace_id:
                    type: string
                  code:
                    type: string
                    enum:
                      - PARTNER_ID_AMBIGUOUS
                  matches:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        primaryOfficeId:
                          type: string
                          format: uuid
                        firstName:
                          type: string
                        lastName:
                          type: string
                        externalPartnerIds:
                          type: array
                          items:
                            type: object
                            properties:
                              partnerName:
                                type: string
                              partnerId:
                                type: string
                            required:
                              - partnerName
                              - partnerId
                            additionalProperties: false
                      required:
                        - id
                        - primaryOfficeId
                        - firstName
                        - lastName
                        - externalPartnerIds
                      additionalProperties: false
                    maxItems: 10
                required:
                  - type
                  - title
                  - status
                  - detail
                  - code
                  - matches
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Microsoft Entra ID JWT (staff) or OAuth2 client-credentials token issued
        by APIM (partners).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.