---
title: "Get a profile field for a user."
method: GET
path: "/_matrix/client/v3/profile/{userId}/{keyName}"
tags: ["User data"]
---

# Get a profile field for a user.

`GET /_matrix/client/v3/profile/{userId}/{keyName}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/profile/{userId}/{keyName}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/profile/:userId/:keyName/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the value of a profile field for a user.

## Path parameters

- `userId` string, mx-user-id, required
- `keyName` string, required

## Response `200`

The profile field value was retrieved.

- object: An object with one property, whose key matches the `keyName` specified in the URL, and whose value is the current setting of that profile field.

## Other responses

- `403`: The server is unwilling to disclose whether the user exists and/or has the specified profile field.
- `404`: There is no profile field with this key for this user, or the user does not exist.

---

[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)
