curl -sS 'https://matrix.example.com/_matrix/client/v3/profile/@alice:example.com' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_matrix/client/v3/profile/@alice:example.com' -H "Authorization: Bearer $ACCESS_TOKEN"

Fetch a user's public profile

Returns the user's display name and avatar, usually without requiring authentication since profiles are public. The user ID format is @localpart:server, for example @alice:example.com. Useful for resolving a display name from an ID in scripts. Setting the profile requires auth and uses the displayname or avatar_url sub-endpoints.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.