---
title: "Reverse-lookup third-party users given a Matrix User ID."
method: GET
path: "/_matrix/client/v3/thirdparty/user"
tags: ["Third-party Lookup"]
---

# Reverse-lookup third-party users given a Matrix User ID.

`GET /_matrix/client/v3/thirdparty/user`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/thirdparty/user`
- Auth: one of:
  - API key in query parameter `access_token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/thirdparty/user/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve an array of third-party users from a Matrix User ID.

## Query parameters

- `userid` string, required

## Response `200`

An array of third-party users.

- object[]: List of matched third-party users.
  - `fields` object, required: Information used to identify this third-party location.
  - `protocol` string, required: The protocol ID that the third-party location is a part of.
  - `userid` string, required: A Matrix User ID representing a third-party user.

## Other responses

- `404`: The Matrix User ID was not found.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
