> ## 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.

# Partner IDs

> Store your own system's IDs on Windermere agents and offices, and look records up by them.

Agents, offices, and teams each have an `externalPartnerIds` list of `{ partnerName, partnerId }` entries, one per partner system.
Partner IDs let your system keep its own key alongside the Windermere record, so you don't need a separate mapping table.

## Set your partner ID

Setting your partner ID is the write operation available to partners by default. Other write endpoints require additional scopes. See [Scopes](https://docs.windermere.com/api-reference/v2/introduction.md#scopes).

```http theme={null}
POST /agents/{id}/external-partner-ids
POST /offices/{id}/external-partner-ids
```

Send only your `partnerId`. The API reads your partner name from your access token.

```http theme={null}
POST /agents/<agentId>/external-partner-ids

{ "partnerId": "abc-123" }
```

The response includes only the entries you're allowed to see:

```json theme={null}
{ "externalPartnerIds": [ { "partnerName": "YourCompany", "partnerId": "abc-123" } ] }
```

| Rule | Detail |
| - | - |
| Scopes | Agents require `agents.partner-id.write`. Offices require `offices.partner-id.write`. Windermere grants them separately. |
| You can write only your own entry | Your partner name comes from your token. Sending `partnerName` in the body returns `422`. Your write is merged into the list, so you never see or overwrite another partner's ID. |
| Some records can't be written | Agents hidden from the API and system offices (`isSystem`) return `403`. |

## Look up a record by partner ID

If you already hold a partner ID, resolve it to the Windermere record:

```http theme={null}
GET /agents/by-partner/{partnerId}
GET /offices/by-partner/{partnerId}
```

These lookups search only `partnerId` values. They ignore `partnerName` and never match against the Windermere `id`.

| Status | Meaning |
| - | - |
| `200` | One record matched. The response has the same shape as `GET /agents/{id}` or `GET /offices/{id}`. |
| `404` | No record matched. |
| `409` | Two or more records matched (`PARTNER_ID_AMBIGUOUS`). The response lists up to 10 matches. |

## Agent visibility

Windermere can limit partner results to agents that have a partner ID for a specific partner system. When this is on, agents without that ID don't appear in `GET /agents` or its `totalCount`, and return `404` when requested by ID.

This setting is off by default. If agents you expect are missing from your results, email [api@windermere.com](mailto:api@windermere.com).

## Related endpoints

* [Set your partner ID on an agent](https://docs.windermere.com/api-reference/v2/agents/setupdate-the-callers-own-external-partner-id-on-an-agent.md)
* [Set your partner ID on an office](https://docs.windermere.com/api-reference/v2/offices/setupdate-the-callers-own-external-partner-id-on-an-office.md)
* [Resolve an agent by partner ID](https://docs.windermere.com/api-reference/v2/agents/resolve-agent-by-partner-id-across-all-partner-systems.md)
* [Resolve an office by partner ID](https://docs.windermere.com/api-reference/v2/offices/resolve-office-by-partner-id-across-all-partner-systems.md)


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