---
title: "GET /_twake/v1/user_info/{userId}"
method: GET
path: "/_twake/v1/user_info/{userId}"
tags: ["User Info"]
---

# GET /_twake/v1/user_info/{userId}

`GET /_twake/v1/user_info/{userId}`

Get user info

## Path parameters

- `userId` string, required

## Response `200`

User info found

- UserInfo — Representation of a Matrix user enriched with optional data from the local user database and common settings.
  - `uid` string, required — The fully‑qualified Matrix user identifier (e.g. `@johndoe:matrix.org`). **Always present**.
  - `display_name` string, required — Human‑readable name for the user. **Always present**.
  - `avatar_url` string, uri — URL of the user’s avatar (`mxc://` URI). Present only if the Matrix server stores an avatar for the user.
  - `phones` string[] — List of phone numbers associated with the user in the local UserDB. Present only when such associations exist.
  - `emails` string[] — List of e‑mail addresses associated with the user in the local UserDB. Present only when such associations exist.
  - `sn` string — *DEPRECATED* Surname (family name) from the UserDB. Present only when the UserDB contains this attribute.
  - `last_name` string — Given name (first name) from the UserDB. Present only when the UserDB contains this attribute.
  - `givenName` string — *DEPRECATED* Surname (family name) from the UserDB. Present only when the UserDB contains this attribute.
  - `first_name` string — Given name (first name) from the UserDB. Present only when the UserDB contains this attribute.
  - `language` string — Preferred language code (e.g. `en`, `fr`). Present only when common settings are enabled and a value is stored.
  - `timezone` string — IANA time‑zone identifier (e.g. `Europe/Paris`). Present only when common settings are enabled and a value is stored.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — User info not found
- `500` — Internal server error

---

[API](https://skmtc.net/linagora/apis/twake-on-matrix-apis-documentation.md) · [All operations](https://skmtc.net/linagora/apis/twake-on-matrix-apis-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/linagora/twake-on-matrix-apis-documentation/revisions/3428c7bb5a46/schema)
