mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-01 06:34:09 +02:00
Compare commits
40 commits
91abdb19e0
...
c50ab91950
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c50ab91950 | ||
|
|
6edb6ba1cd | ||
|
|
40065811a1 | ||
|
|
1c06ed9cf7 | ||
|
|
6353b46add | ||
|
|
0e05e45d84 | ||
|
|
6646146f8c | ||
|
|
6183f2410f | ||
|
|
dd4ea948b6 | ||
|
|
50eab3501e | ||
|
|
37b1362bc1 | ||
|
|
d8cc250d20 | ||
|
|
b5e2edf2e5 | ||
|
|
7ef1d9d0ec | ||
|
|
3a5e5555fa | ||
|
|
9889fe3584 | ||
|
|
013502b0c0 | ||
|
|
9859e20927 | ||
|
|
7a3b0c0804 | ||
|
|
0b0942d192 | ||
|
|
1cc93ec951 | ||
|
|
79af78022e | ||
|
|
17af55ddce | ||
|
|
79a1cded02 | ||
|
|
76b48e25d0 | ||
|
|
5d5b561140 | ||
|
|
9327793007 | ||
|
|
f3c269d951 | ||
|
|
3311b084bf | ||
|
|
992cf9dc35 | ||
|
|
4f8999be0a | ||
|
|
82adcec491 | ||
|
|
41c64c877b | ||
|
|
8e9874ad22 | ||
|
|
ee9b5ddcca | ||
|
|
59d2c62d2d | ||
|
|
b2e122f308 | ||
|
|
1fc01189f3 | ||
|
|
212377e393 | ||
|
|
fdc012ac01 |
|
|
@ -1 +0,0 @@
|
||||||
Correct null value handling for the AS Registration's `url` property.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Clarify behaviour when the `topic` key of a `m.room.topic` event is absent, null, or empty.
|
|
||||||
1
changelogs/client_server/newsfragments/2071.feature
Normal file
1
changelogs/client_server/newsfragments/2071.feature
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Feature: Update profile endpoints to become generic to support [MSC4133](https://github.com/matrix-org/matrix-spec-proposals/pull/4133) extended fields. Extended profile fields are now supported via the new `m.profile_fields` capability, which deprecates the previous `m.set_avatar_url` and `m.set_displayname` capabilities. Stabilised keys are explicitly enumerated, and custom keys must conform to the Common Namespaced Identifier Grammar.
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Fix the example of the `GET /sync` endpoint and the `m.room.member` example used in several places.
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
Clarify the format of third-party invites, including the fact that identity
|
|
||||||
server public keys can be encoded using standard or URL-safe base64.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add `m.topic` content block to enable rich text in `m.room.topic` events as per [MSC3765](https://github.com/matrix-org/matrix-spec-proposals/pull/3765).
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
"Public" rooms in profile look-ups are defined through their join rule and history visibility.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
"Public" rooms in user directory queries are defined through their join rule and history visibility.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Rooms published in `/publicRooms` don't necessarily have `public` join rules or `world_readable` history visibility.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
"Public" rooms with respect to call invites are defined through their join rule.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
"Public" rooms have no specific meaning with respect to moderation policy lists.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
"Public" rooms with respect to presence are defined through their join rule.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Spaces are subject to the same access mechanisms as rooms.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Fix various typos throughout the specification.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Include device keys with Olm-encrypted events as per [MSC4147](https://github.com/matrix-org/matrix-spec-proposals/pull/4147).
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add `/_matrix/client/v1/room_summary/{roomIdOrAlias}` and extend `/_matrix/client/v1/rooms/{roomId}/hierarchy` with the new optional properties `allowed_room_ids`, `encryption` and `room_version` as per [MSC3266](https://github.com/matrix-org/matrix-spec-proposals/pull/3266).
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Clarify that Well-Known URIs are available on the server name's hostname. Contributed by @HarHarLinks.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add the OAuth 2.0 based authentication API, as per [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and its sub-proposals.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Fix typo: as->has.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add `GET /_matrix/client/v1/auth_metadata`, as per [MSC2965](https://github.com/matrix-org/matrix-spec-proposals/pull/2965).
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add the OAuth 2.0 based authentication API, as per [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and its sub-proposals.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add the OAuth 2.0 based authentication API, as per [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and its sub-proposals.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add the OAuth 2.0 based authentication API, as per [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and its sub-proposals.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add the OAuth 2.0 based authentication API, as per [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and its sub-proposals.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add missing fields in example for `ExportedSessionData`.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add `/_matrix/client/v1/room_summary/{roomIdOrAlias}` and extend `/_matrix/client/v1/rooms/{roomId}/hierarchy` with the new optional properties `allowed_room_ids`, `encryption` and `room_version` as per [MSC3266](https://github.com/matrix-org/matrix-spec-proposals/pull/3266).
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add the OAuth 2.0 based authentication API, as per [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and its sub-proposals.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Clarify that public keys can be encoded using standard or URL-safe base64.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Adjust margins in rendered endpoints.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Replace Hugo shortcodes in OpenAPI output.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add [well-known funding manifest urls](https://floss.fund/funding-manifest/) to spec to authorise https://matrix.org/funding.json. Contributed by @HarHarLinks.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Fix the historical info box when generating the historical spec in CI.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Update the header navigation menu with links to modern matrix.org. Contributed by @HarHarLinks.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add a note to the invite endpoints that invites to local users may be received twice over federation if the homeserver is already in the room.
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
Clarify the format of third-party invites, including the fact that identity
|
|
||||||
server public keys can be encoded using standard or URL-safe base64.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Add `m.topic` content block to enable rich text in `m.room.topic` events as per [MSC3765](https://github.com/matrix-org/matrix-spec-proposals/pull/3765).
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Clarify that auth event of `content.join_authorised_via_users_server` is only necessary for `m.room.member` with a `membership` of `join`.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Rooms published in `/publicRooms` don't necessarily have `public` join rules or `world_readable` history visibility.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Extend `/_matrix/federation/v1/hierarchy/{roomId}` with the new optional properties `encryption` and `room_version` as per [MSC3266](https://github.com/matrix-org/matrix-spec-proposals/pull/3266).
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Fix various typos throughout the specification.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Clarify that Well-Known URIs are available on the server name's hostname. Contributed by @HarHarLinks.
|
|
||||||
|
|
@ -67,7 +67,7 @@ current_version_url = "https://spec.matrix.org/latest"
|
||||||
# The following is used when status = "stable", and is displayed in various UI elements on a released version
|
# The following is used when status = "stable", and is displayed in various UI elements on a released version
|
||||||
# of the spec.
|
# of the spec.
|
||||||
# major = "1"
|
# major = "1"
|
||||||
# minor = "14"
|
# minor = "15"
|
||||||
|
|
||||||
# User interface configuration
|
# User interface configuration
|
||||||
[params.ui]
|
[params.ui]
|
||||||
|
|
|
||||||
97
content/changelog/v1.15.md
Normal file
97
content/changelog/v1.15.md
Normal file
|
|
@ -0,0 +1,97 @@
|
||||||
|
---
|
||||||
|
title: v1.15 Changelog
|
||||||
|
linkTitle: v1.15
|
||||||
|
type: docs
|
||||||
|
layout: changelog
|
||||||
|
outputs:
|
||||||
|
- html
|
||||||
|
- checklist
|
||||||
|
date: 2025-06-26
|
||||||
|
---
|
||||||
|
|
||||||
|
## Client-Server API
|
||||||
|
|
||||||
|
**New Endpoints**
|
||||||
|
|
||||||
|
- Add `GET /_matrix/client/v1/room_summary/{roomIdOrAlias}`, as per [MSC3266](https://github.com/matrix-org/matrix-spec-proposals/pull/3266). ([#2125](https://github.com/matrix-org/matrix-spec/issues/2125))
|
||||||
|
- Add `GET /_matrix/client/v1/auth_metadata`, as per [MSC2965](https://github.com/matrix-org/matrix-spec-proposals/pull/2965). ([#2147](https://github.com/matrix-org/matrix-spec/issues/2147))
|
||||||
|
|
||||||
|
**Backwards Compatible Changes**
|
||||||
|
|
||||||
|
- Add `m.topic` content block to enable rich text in `m.room.topic` events as per [MSC3765](https://github.com/matrix-org/matrix-spec-proposals/pull/3765). ([#2095](https://github.com/matrix-org/matrix-spec/issues/2095))
|
||||||
|
- Include device keys with Olm-encrypted events as per [MSC4147](https://github.com/matrix-org/matrix-spec-proposals/pull/4147). ([#2122](https://github.com/matrix-org/matrix-spec/issues/2122))
|
||||||
|
- Add `/_matrix/client/v1/room_summary/{roomIdOrAlias}` and extend `/_matrix/client/v1/rooms/{roomId}/hierarchy` with the new optional properties `allowed_room_ids`, `encryption` and `room_version` as per [MSC3266](https://github.com/matrix-org/matrix-spec-proposals/pull/3266). ([#2125](https://github.com/matrix-org/matrix-spec/issues/2125), [#2158](https://github.com/matrix-org/matrix-spec/issues/2158))
|
||||||
|
- Add the OAuth 2.0 based authentication API, as per [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and its sub-proposals. ([#2141](https://github.com/matrix-org/matrix-spec/issues/2141), [#2148](https://github.com/matrix-org/matrix-spec/issues/2148), [#2149](https://github.com/matrix-org/matrix-spec/issues/2149), [#2150](https://github.com/matrix-org/matrix-spec/issues/2150), [#2151](https://github.com/matrix-org/matrix-spec/issues/2151), [#2159](https://github.com/matrix-org/matrix-spec/issues/2159), [#2164](https://github.com/matrix-org/matrix-spec/issues/2164))
|
||||||
|
|
||||||
|
**Spec Clarifications**
|
||||||
|
|
||||||
|
- Clarify behaviour when the `topic` key of a `m.room.topic` event is absent, null, or empty. ([#2068](https://github.com/matrix-org/matrix-spec/issues/2068))
|
||||||
|
- Fix the example of the `GET /sync` endpoint and the `m.room.member` example used in several places. ([#2077](https://github.com/matrix-org/matrix-spec/issues/2077))
|
||||||
|
- Clarify the format of third-party invites, including the fact that identity server public keys can be encoded using standard or URL-safe base64. ([#2083](https://github.com/matrix-org/matrix-spec/issues/2083))
|
||||||
|
- "Public" rooms in profile look-ups are defined through their join rule and history visibility. ([#2101](https://github.com/matrix-org/matrix-spec/issues/2101))
|
||||||
|
- "Public" rooms in user directory queries are defined through their join rule and history visibility. ([#2102](https://github.com/matrix-org/matrix-spec/issues/2102))
|
||||||
|
- Rooms published in `/publicRooms` don't necessarily have `public` join rules or `world_readable` history visibility. ([#2104](https://github.com/matrix-org/matrix-spec/issues/2104))
|
||||||
|
- "Public" rooms with respect to call invites are defined through their join rule. ([#2106](https://github.com/matrix-org/matrix-spec/issues/2106))
|
||||||
|
- "Public" rooms have no specific meaning with respect to moderation policy lists. ([#2107](https://github.com/matrix-org/matrix-spec/issues/2107))
|
||||||
|
- "Public" rooms with respect to presence are defined through their join rule. ([#2108](https://github.com/matrix-org/matrix-spec/issues/2108))
|
||||||
|
- Spaces are subject to the same access mechanisms as rooms. ([#2109](https://github.com/matrix-org/matrix-spec/issues/2109))
|
||||||
|
- Fix various typos throughout the specification. ([#2121](https://github.com/matrix-org/matrix-spec/issues/2121), [#2144](https://github.com/matrix-org/matrix-spec/issues/2144))
|
||||||
|
- Clarify that Well-Known URIs are available on the server name's hostname. Contributed by @HarHarLinks. ([#2140](https://github.com/matrix-org/matrix-spec/issues/2140))
|
||||||
|
- Add missing fields in example for `ExportedSessionData`. ([#2154](https://github.com/matrix-org/matrix-spec/issues/2154))
|
||||||
|
|
||||||
|
|
||||||
|
## Server-Server API
|
||||||
|
|
||||||
|
**Backwards Compatible Changes**
|
||||||
|
|
||||||
|
- Add `m.topic` content block to enable rich text in `m.room.topic` events as per [MSC3765](https://github.com/matrix-org/matrix-spec-proposals/pull/3765). ([#2095](https://github.com/matrix-org/matrix-spec/issues/2095))
|
||||||
|
- Extend `/_matrix/federation/v1/hierarchy/{roomId}` with the new optional properties `encryption` and `room_version` as per [MSC3266](https://github.com/matrix-org/matrix-spec-proposals/pull/3266). ([#2125](https://github.com/matrix-org/matrix-spec/issues/2125))
|
||||||
|
|
||||||
|
**Spec Clarifications**
|
||||||
|
|
||||||
|
- Add a note to the invite endpoints that invites to local users may be received twice over federation if the homeserver is already in the room. ([#2067](https://github.com/matrix-org/matrix-spec/issues/2067))
|
||||||
|
- Clarify the format of third-party invites, including the fact that identity server public keys can be encoded using standard or URL-safe base64. ([#2083](https://github.com/matrix-org/matrix-spec/issues/2083))
|
||||||
|
- Clarify that auth event of `content.join_authorised_via_users_server` is only necessary for `m.room.member` with a `membership` of `join`. ([#2100](https://github.com/matrix-org/matrix-spec/issues/2100))
|
||||||
|
- Rooms published in `/publicRooms` don't necessarily have `public` join rules or `world_readable` history visibility. ([#2104](https://github.com/matrix-org/matrix-spec/issues/2104))
|
||||||
|
- Fix various typos throughout the specification. ([#2128](https://github.com/matrix-org/matrix-spec/issues/2128))
|
||||||
|
- Clarify that Well-Known URIs are available on the server name's hostname. Contributed by @HarHarLinks. ([#2140](https://github.com/matrix-org/matrix-spec/issues/2140))
|
||||||
|
|
||||||
|
|
||||||
|
## Application Service API
|
||||||
|
|
||||||
|
**Spec Clarifications**
|
||||||
|
|
||||||
|
- Clarify in the application service registration schema the `url: null` behaviour. ([#2130](https://github.com/matrix-org/matrix-spec/issues/2130))
|
||||||
|
|
||||||
|
|
||||||
|
## Identity Service API
|
||||||
|
|
||||||
|
**Spec Clarifications**
|
||||||
|
|
||||||
|
- Clarify that public keys can be encoded using standard or URL-safe base64. ([#2083](https://github.com/matrix-org/matrix-spec/issues/2083))
|
||||||
|
|
||||||
|
|
||||||
|
## Push Gateway API
|
||||||
|
|
||||||
|
No significant changes.
|
||||||
|
|
||||||
|
|
||||||
|
## Room Versions
|
||||||
|
|
||||||
|
No significant changes.
|
||||||
|
|
||||||
|
|
||||||
|
## Appendices
|
||||||
|
|
||||||
|
No significant changes.
|
||||||
|
|
||||||
|
|
||||||
|
## Internal Changes/Tooling
|
||||||
|
|
||||||
|
**Spec Clarifications**
|
||||||
|
|
||||||
|
- Adjust margins in rendered endpoints. ([#2081](https://github.com/matrix-org/matrix-spec/issues/2081))
|
||||||
|
- Replace Hugo shortcodes in OpenAPI output. ([#2088](https://github.com/matrix-org/matrix-spec/issues/2088))
|
||||||
|
- Add [well-known funding manifest urls](https://floss.fund/funding-manifest/) to spec to authorise https://matrix.org/funding.json. Contributed by @HarHarLinks. ([#2115](https://github.com/matrix-org/matrix-spec/issues/2115))
|
||||||
|
- Fix the historical info box when generating the historical spec in CI. ([#2123](https://github.com/matrix-org/matrix-spec/issues/2123))
|
||||||
|
- Update the header navigation menu with links to modern matrix.org. Contributed by @HarHarLinks. ([#2137](https://github.com/matrix-org/matrix-spec/issues/2137))
|
||||||
|
|
@ -12,6 +12,12 @@ clients which maintain a full local persistent copy of server state.
|
||||||
|
|
||||||
## API Standards
|
## API Standards
|
||||||
|
|
||||||
|
{{% boxes/note %}}
|
||||||
|
These standards only apply to the APIs defined in the Matrix specification. APIs
|
||||||
|
used by this specification but defined in other specifications, like the [OAuth
|
||||||
|
2.0 API](#oauth-20-api), use their own rules.
|
||||||
|
{{% /boxes/note %}}
|
||||||
|
|
||||||
The mandatory baseline for client-server communication in Matrix is
|
The mandatory baseline for client-server communication in Matrix is
|
||||||
exchanging JSON objects over HTTP APIs. More efficient transports may be
|
exchanging JSON objects over HTTP APIs. More efficient transports may be
|
||||||
specified in future as optional extensions.
|
specified in future as optional extensions.
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ for sending events:
|
||||||
The following API endpoints are allowed to be accessed by guest accounts
|
The following API endpoints are allowed to be accessed by guest accounts
|
||||||
for their own account maintenance:
|
for their own account maintenance:
|
||||||
|
|
||||||
* [PUT /profile/{userId}/displayname](#put_matrixclientv3profileuseriddisplayname)
|
* [PUT /profile/{userId}/{keyName}](#put_matrixclientv3profileuseridkeyname)
|
||||||
* [GET /devices](#get_matrixclientv3devices)
|
* [GET /devices](#get_matrixclientv3devices)
|
||||||
* [GET /devices/{deviceId}](#get_matrixclientv3devicesdeviceid)
|
* [GET /devices/{deviceId}](#get_matrixclientv3devicesdeviceid)
|
||||||
* [PUT /devices/{deviceId}](#put_matrixclientv3devicesdeviceid)
|
* [PUT /devices/{deviceId}](#put_matrixclientv3devicesdeviceid)
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@ allow users to log into applications via a single web-based
|
||||||
authentication portal. Examples include OpenID Connect, "Central
|
authentication portal. Examples include OpenID Connect, "Central
|
||||||
Authentication Service" (CAS) and SAML.
|
Authentication Service" (CAS) and SAML.
|
||||||
|
|
||||||
This module allows a Matrix homeserver to delegate user authentication
|
This module allows a Matrix homeserver that supports the [legacy authentication
|
||||||
to an external authentication server supporting one of these protocols.
|
API](#legacy-api) to delegate user authentication to an external authentication
|
||||||
In this process, there are three systems involved:
|
server supporting one of these protocols. In this process, there are three
|
||||||
|
systems involved:
|
||||||
|
|
||||||
- A Matrix client, using the APIs defined in this specification, which
|
- A Matrix client, using the APIs defined in this specification, which
|
||||||
is seeking to authenticate a user to a Matrix homeserver.
|
is seeking to authenticate a user to a Matrix homeserver.
|
||||||
|
|
@ -24,7 +25,7 @@ used to communicate with the authentication server. Different Matrix
|
||||||
homeserver implementations might support different SSO protocols.
|
homeserver implementations might support different SSO protocols.
|
||||||
|
|
||||||
Clients and homeservers implementing the SSO flow will need to consider
|
Clients and homeservers implementing the SSO flow will need to consider
|
||||||
both [login](#login) and [user-interactive authentication](#user-interactive-authentication-api). The flow is
|
both [login](#legacy-login) and [user-interactive authentication](#user-interactive-authentication-api). The flow is
|
||||||
similar in both cases, but there are slight differences.
|
similar in both cases, but there are slight differences.
|
||||||
|
|
||||||
Typically, SSO systems require a single "callback" URI to be configured
|
Typically, SSO systems require a single "callback" URI to be configured
|
||||||
|
|
|
||||||
|
|
@ -185,6 +185,10 @@ is as follows:
|
||||||
- Take care in creating your proposal. Specify your intended
|
- Take care in creating your proposal. Specify your intended
|
||||||
changes, and give reasoning to back them up. Changes without
|
changes, and give reasoning to back them up. Changes without
|
||||||
justification will likely be poorly received by the community.
|
justification will likely be poorly received by the community.
|
||||||
|
- At the time of creating your draft you will not yet know the PR number, so you
|
||||||
|
should use a placeholder number to name your file and edit that
|
||||||
|
after PR submission. The suggested steps are described in
|
||||||
|
detail [in the proposals guide](https://github.com/matrix-org/matrix-spec-proposals#1-writing-the-proposal).
|
||||||
- Fork and make a PR to the
|
- Fork and make a PR to the
|
||||||
[matrix-spec-proposals](https://github.com/matrix-org/matrix-spec-proposals) repository.
|
[matrix-spec-proposals](https://github.com/matrix-org/matrix-spec-proposals) repository.
|
||||||
The ID of your PR will become the MSC ID for the lifetime of your
|
The ID of your PR will become the MSC ID for the lifetime of your
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,11 @@ paths:
|
||||||
|
|
||||||
Homeservers should prevent the caller from adding a 3PID to their account if it has
|
Homeservers should prevent the caller from adding a 3PID to their account if it has
|
||||||
already been added to another user's account on the homeserver.
|
already been added to another user's account on the homeserver.
|
||||||
|
|
||||||
|
{{% boxes/warning %}}
|
||||||
|
Since this endpoint uses User-Interactive Authentication, it cannot be used when the access token was obtained
|
||||||
|
via the [OAuth 2.0 API](/client-server-api/#oauth-20-api).
|
||||||
|
{{% /boxes/warning %}}
|
||||||
operationId: add3PID
|
operationId: add3PID
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
|
|
|
||||||
|
|
@ -73,11 +73,17 @@ paths:
|
||||||
- default
|
- default
|
||||||
- available
|
- available
|
||||||
m.set_displayname:
|
m.set_displayname:
|
||||||
|
deprecated: true
|
||||||
$ref: '#/components/schemas/booleanCapability'
|
$ref: '#/components/schemas/booleanCapability'
|
||||||
description: Capability to indicate if the user can change their display name.
|
description: |
|
||||||
|
**Deprecated:** Capability to indicate if the user can change their display name.
|
||||||
|
Refer to `m.profile_fields` for extended profile management.
|
||||||
m.set_avatar_url:
|
m.set_avatar_url:
|
||||||
|
deprecated: true
|
||||||
$ref: '#/components/schemas/booleanCapability'
|
$ref: '#/components/schemas/booleanCapability'
|
||||||
description: Capability to indicate if the user can change their avatar.
|
description: |
|
||||||
|
**Deprecated:** Capability to indicate if the user can change their avatar.
|
||||||
|
Refer to `m.profile_fields` for extended profile management.
|
||||||
m.3pid_changes:
|
m.3pid_changes:
|
||||||
$ref: '#/components/schemas/booleanCapability'
|
$ref: '#/components/schemas/booleanCapability'
|
||||||
description: Capability to indicate if the user can change 3PID associations
|
description: Capability to indicate if the user can change 3PID associations
|
||||||
|
|
@ -86,6 +92,40 @@ paths:
|
||||||
$ref: '#/components/schemas/booleanCapability'
|
$ref: '#/components/schemas/booleanCapability'
|
||||||
description: Capability to indicate if the user can generate tokens to log further
|
description: Capability to indicate if the user can generate tokens to log further
|
||||||
clients into their account.
|
clients into their account.
|
||||||
|
m.profile_fields:
|
||||||
|
x-addedInMatrixVersion: "1.14"
|
||||||
|
type: object
|
||||||
|
title: ProfileFieldsCapability
|
||||||
|
description: Capability to indicate if the user can set or modify extended profile fields via
|
||||||
|
[`PUT /_matrix/client/v3/profile/{userId}/{keyName}`](/client-server-api/#put_matrixclientv3profileuseridkeyname).
|
||||||
|
If absent, clients should assume custom profile fields are supported, provided the
|
||||||
|
response from [`/versions`](/client-server-api/#get_matrixclientversions) indicates
|
||||||
|
support for a sufficiently recent spec version.
|
||||||
|
properties:
|
||||||
|
allowed:
|
||||||
|
type: array
|
||||||
|
description: List of allowed additional custom profile field keys. A `*` can be used as a
|
||||||
|
wildcard to match any sequence of characters. This list takes precedence over the
|
||||||
|
disallowed list if both are provided.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
example:
|
||||||
|
- "m.example_field"
|
||||||
|
- "org.example/job_title"
|
||||||
|
disallowed:
|
||||||
|
type: array
|
||||||
|
description: List of disallowed additional custom profile field keys. A `*` can be used as
|
||||||
|
a wildcard to match any sequence of characters. Ignored if an allowed list is provided.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
example:
|
||||||
|
- "org.example.secret_field"
|
||||||
|
enabled:
|
||||||
|
type: boolean
|
||||||
|
description: `true` if the user can set or modify any extended profile fields, `false` otherwise.
|
||||||
|
example: true
|
||||||
|
required:
|
||||||
|
- enabled
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value: {
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,11 @@ paths:
|
||||||
they already exist. Allowing clients to upload the same set of keys more than once
|
they already exist. Allowing clients to upload the same set of keys more than once
|
||||||
makes this endpoint idempotent in the case where the response is lost over the network,
|
makes this endpoint idempotent in the case where the response is lost over the network,
|
||||||
which would otherwise cause a UIA challenge upon retry.
|
which would otherwise cause a UIA challenge upon retry.
|
||||||
|
|
||||||
|
{{% boxes/warning %}}
|
||||||
|
When this endpoint requires User-Interactive Authentication, it cannot be used when the access token was obtained
|
||||||
|
via the [OAuth 2.0 API](/client-server-api/#oauth-20-api).
|
||||||
|
{{% /boxes/warning %}}
|
||||||
operationId: uploadCrossSigningKeys
|
operationId: uploadCrossSigningKeys
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
accessTokenQuery:
|
accessTokenQuery:
|
||||||
type: apiKey
|
type: apiKey
|
||||||
description: |-
|
description: |-
|
||||||
**Deprecated.** The `access_token` returned by a call to `/login` or `/register`, as a query
|
**Deprecated.** The `access_token` obtained during [account registration](/client-server-api/#account-registration)
|
||||||
parameter.
|
or [login](/client-server-api/#login), as a query parameter.
|
||||||
|
|
||||||
It can also be the `as_token` of an application service.
|
It can also be the `as_token` of an application service.
|
||||||
name: access_token
|
name: access_token
|
||||||
|
|
@ -23,8 +23,8 @@ accessTokenQuery:
|
||||||
accessTokenBearer:
|
accessTokenBearer:
|
||||||
type: http
|
type: http
|
||||||
description: |-
|
description: |-
|
||||||
The `access_token` returned by a call to `/login` or `/register`, using the
|
The `access_token` obtained during [account registration](/client-server-api/#account-registration)
|
||||||
`Authorization: Bearer` header.
|
or [login](/client-server-api/#login), using the `Authorization: Bearer` header.
|
||||||
|
|
||||||
It can also be the `as_token` of an application service.
|
It can also be the `as_token` of an application service.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,11 @@ paths:
|
||||||
This API endpoint uses the [User-Interactive Authentication API](/client-server-api/#user-interactive-authentication-api).
|
This API endpoint uses the [User-Interactive Authentication API](/client-server-api/#user-interactive-authentication-api).
|
||||||
|
|
||||||
Deletes the given device, and invalidates any access token associated with it.
|
Deletes the given device, and invalidates any access token associated with it.
|
||||||
|
|
||||||
|
{{% boxes/warning %}}
|
||||||
|
Since this endpoint uses User-Interactive Authentication, it cannot be used when the access token was obtained
|
||||||
|
via the [OAuth 2.0 API](/client-server-api/#oauth-20-api).
|
||||||
|
{{% /boxes/warning %}}
|
||||||
operationId: deleteDevice
|
operationId: deleteDevice
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
|
|
@ -189,6 +194,11 @@ paths:
|
||||||
This API endpoint uses the [User-Interactive Authentication API](/client-server-api/#user-interactive-authentication-api).
|
This API endpoint uses the [User-Interactive Authentication API](/client-server-api/#user-interactive-authentication-api).
|
||||||
|
|
||||||
Deletes the given devices, and invalidates any access token associated with them.
|
Deletes the given devices, and invalidates any access token associated with them.
|
||||||
|
|
||||||
|
{{% boxes/warning %}}
|
||||||
|
Since this endpoint uses User-Interactive Authentication, it cannot be used when the access token was obtained
|
||||||
|
via the [OAuth 2.0 API](/client-server-api/#oauth-20-api).
|
||||||
|
{{% /boxes/warning %}}
|
||||||
operationId: deleteDevices
|
operationId: deleteDevices
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
|
|
|
||||||
|
|
@ -16,48 +16,105 @@ info:
|
||||||
title: Matrix Client-Server Profile API
|
title: Matrix Client-Server Profile API
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
paths:
|
paths:
|
||||||
"/profile/{userId}/displayname":
|
"/profile/{userId}/{keyName}":
|
||||||
put:
|
put:
|
||||||
summary: Set the user's display name.
|
x-changedInMatrixVersion:
|
||||||
|
"1.14": Endpoint now accepts variable `keyName` parameter.
|
||||||
|
summary: Set a profile field for a user.
|
||||||
description: |-
|
description: |-
|
||||||
This API sets the given user's display name. You must have permission to
|
Set or update a profile field for a user. Must be authenticated with an
|
||||||
set this user's display name, e.g. you need to have their `access_token`.
|
access token authorised to make changes. Servers MAY impose size limits
|
||||||
operationId: setDisplayName
|
on individual fields, and the total profile MUST be under 64 KiB.
|
||||||
|
|
||||||
|
**Note**: Setting a field to `null` keeps the key but with a `null` value,
|
||||||
|
which some servers may reject. To remove a field completely, use the
|
||||||
|
`DELETE` endpoint instead.
|
||||||
|
operationId: setProfileField
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
- accessTokenBearer: []
|
- accessTokenBearer: []
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: userId
|
name: userId
|
||||||
description: The user whose display name to set.
|
description: The user whose profile field should be set.
|
||||||
required: true
|
required: true
|
||||||
example: "@alice:example.com"
|
example: "@alice:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- in: path
|
||||||
|
name: keyName
|
||||||
|
description: The profile field key name to set. It must be either
|
||||||
|
`avatar_url`, `displayname`, or a custom field following the
|
||||||
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
|
required: true
|
||||||
|
example: "displayname"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
pattern: '^(avatar_url|displayname|[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+)$'
|
||||||
requestBody:
|
requestBody:
|
||||||
|
description: A JSON object containing the property whose name matches
|
||||||
|
the `keyName` specified in the URL. See `additionalProperties` for
|
||||||
|
further details.
|
||||||
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
example: {
|
minProperties: 1
|
||||||
"displayname": "Alice Margatroid"
|
additionalProperties:
|
||||||
}
|
description: The JSON object must include a property whose key
|
||||||
properties:
|
matches the `keyName` specified in the URL. For `avatar_url`,
|
||||||
displayname:
|
the value must be an MXC URI string. For `displayname`, the value
|
||||||
type: string
|
must be a string. For custom keys, any JSON type is allowed -
|
||||||
description: The new display name for this user.
|
servers may not validate these values, but clients should follow
|
||||||
description: The new display name information.
|
the format defined for that key.
|
||||||
required: true
|
example: { "displayname": "Alice Wonderland" }
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The display name was set.
|
description: The profile field was set.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object # empty json object
|
type: object # empty JSON object
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {}
|
value: {}
|
||||||
|
"400":
|
||||||
|
description: The request is malformed, contains invalid JSON, missing
|
||||||
|
a required parameter, specifies an invalid key, or exceeds allowed
|
||||||
|
size limits.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
bad_json:
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"errcode": "M_BAD_JSON",
|
||||||
|
"error": "Malformed JSON payload.",
|
||||||
|
}
|
||||||
|
invalid_key:
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"errcode": "M_INVALID_PARAM",
|
||||||
|
"error": "Invalid profile key.",
|
||||||
|
}
|
||||||
|
"403":
|
||||||
|
description: The server is unwilling to perform the operation, either
|
||||||
|
due to insufficient permissions or because profile modifications
|
||||||
|
are disabled.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
forbidden:
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"errcode": "M_FORBIDDEN",
|
||||||
|
"error": "Profile modification is not permitted.",
|
||||||
|
}
|
||||||
"429":
|
"429":
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
content:
|
content:
|
||||||
|
|
@ -67,98 +124,133 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
get:
|
get:
|
||||||
summary: Get the user's display name.
|
x-changedInMatrixVersion:
|
||||||
description: |-
|
"1.14": Endpoint now accepts variable `keyName` parameter.
|
||||||
Get the user's display name. This API may be used to fetch the user's
|
summary: Get a profile field for a user.
|
||||||
own displayname or to query the name of other users; either locally or
|
description: Get the value of a profile field for a user. Any individual
|
||||||
on remote homeservers.
|
field must be within the total profile limit of 64 KiB.
|
||||||
operationId: getDisplayName
|
operationId: getProfileField
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: userId
|
name: userId
|
||||||
description: The user whose display name to get.
|
description: The user whose profile field should be returned.
|
||||||
required: true
|
required: true
|
||||||
example: "@alice:example.com"
|
example: "@alice:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- in: path
|
||||||
|
name: keyName
|
||||||
|
description: The profile field key name to retrieve. It must be either
|
||||||
|
`avatar_url`, `displayname`, or a custom field following the
|
||||||
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
|
required: true
|
||||||
|
example: "displayname"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
pattern: '^(avatar_url|displayname|[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+)$'
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The display name for this user.
|
description: The profile field value was retrieved.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
minProperties: 1
|
||||||
displayname:
|
additionalProperties:
|
||||||
type: string
|
description: The JSON response includes a property whose key
|
||||||
description: The user's display name if they have set one, otherwise not
|
matches the `keyName` specified in the URL. For `avatar_url`,
|
||||||
present.
|
the value will be an MXC URI string. For `displayname`, the
|
||||||
|
value will be a string. For custom keys, any JSON type is
|
||||||
|
possible - clients should expect the format defined for that key.
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value: { "displayname": "Alice" }
|
||||||
"displayname": "Alice Margatroid"
|
|
||||||
}
|
|
||||||
"403":
|
"403":
|
||||||
x-addedInMatrixVersion: "1.12"
|
x-addedInMatrixVersion: "1.12"
|
||||||
description: The server is unwilling to disclose whether the user exists and/or
|
description: The server is unwilling to disclose whether the user
|
||||||
has a display name.
|
exists and/or has the specified profile field.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value:
|
||||||
"errcode": "M_FORBIDDEN",
|
{
|
||||||
"error": "Profile lookup is disabled on this homeserver"
|
"errcode": "M_FORBIDDEN",
|
||||||
}
|
"error": "Profile lookup is disabled on this homeserver",
|
||||||
|
}
|
||||||
"404":
|
"404":
|
||||||
description: There is no display name for this user or this user does not exist.
|
description: There is no profile field with this key for this user, or
|
||||||
|
the user does not exist.
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
"/profile/{userId}/avatar_url":
|
delete:
|
||||||
put:
|
x-addedInMatrixVersion: "1.14"
|
||||||
summary: Set the user's avatar URL.
|
summary: Remove a profile field from a user.
|
||||||
description: |-
|
description: Remove a specific field from a user's profile.
|
||||||
This API sets the given user's avatar URL. You must have permission to
|
operationId: deleteProfileField
|
||||||
set this user's avatar URL, e.g. you need to have their `access_token`.
|
|
||||||
operationId: setAvatarUrl
|
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
- accessTokenBearer: []
|
- accessTokenBearer: []
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: userId
|
name: userId
|
||||||
description: The user whose avatar URL to set.
|
description: The user whose profile field should be deleted.
|
||||||
required: true
|
required: true
|
||||||
example: "@alice:example.com"
|
example: "@alice:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
requestBody:
|
- in: path
|
||||||
content:
|
name: keyName
|
||||||
application/json:
|
description: The key name of the profile field to delete. It must be either
|
||||||
schema:
|
`avatar_url`, `displayname`, or a custom field following the
|
||||||
type: object
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
example: {
|
required: true
|
||||||
"avatar_url": "mxc://matrix.org/wefh34uihSDRGhw34"
|
example: "displayname"
|
||||||
}
|
schema:
|
||||||
properties:
|
type: string
|
||||||
avatar_url:
|
pattern: '^(avatar_url|displayname|[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+)$'
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
description: The new avatar URL for this user.
|
|
||||||
description: The new avatar information.
|
|
||||||
required: true
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The avatar URL was set.
|
description: The profile field was deleted.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object # empty json object
|
type: object
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {}
|
value: {}
|
||||||
|
"400":
|
||||||
|
description: The request is malformed, contains invalid JSON, or
|
||||||
|
specifies an invalid key.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
bad_json:
|
||||||
|
value:
|
||||||
|
{ "errcode": "M_BAD_JSON", "error": "Malformed request." }
|
||||||
|
invalid_key:
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"errcode": "M_INVALID_PARAM",
|
||||||
|
"error": "Invalid profile key.",
|
||||||
|
}
|
||||||
|
"403":
|
||||||
|
description: The user is not authorised to delete this profile field.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
forbidden:
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"errcode": "M_FORBIDDEN",
|
||||||
|
"error": "Profile deletion is not permitted.",
|
||||||
|
}
|
||||||
"429":
|
"429":
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
content:
|
content:
|
||||||
|
|
@ -167,63 +259,15 @@ paths:
|
||||||
$ref: definitions/errors/rate_limited.yaml
|
$ref: definitions/errors/rate_limited.yaml
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
get:
|
|
||||||
summary: Get the user's avatar URL.
|
|
||||||
description: |-
|
|
||||||
Get the user's avatar URL. This API may be used to fetch the user's
|
|
||||||
own avatar URL or to query the URL of other users; either locally or
|
|
||||||
on remote homeservers.
|
|
||||||
operationId: getAvatarUrl
|
|
||||||
parameters:
|
|
||||||
- in: path
|
|
||||||
name: userId
|
|
||||||
description: The user whose avatar URL to get.
|
|
||||||
required: true
|
|
||||||
example: "@alice:example.com"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: The avatar URL for this user.
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
avatar_url:
|
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
description: The user's avatar URL if they have set one, otherwise not present.
|
|
||||||
examples:
|
|
||||||
response:
|
|
||||||
value: {
|
|
||||||
"avatar_url": "mxc://matrix.org/SDGdghriugerRg"
|
|
||||||
}
|
|
||||||
"403":
|
|
||||||
x-addedInMatrixVersion: "1.12"
|
|
||||||
description: The server is unwilling to disclose whether the user exists and/or
|
|
||||||
has an avatar URL.
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: definitions/errors/error.yaml
|
|
||||||
examples:
|
|
||||||
response:
|
|
||||||
value: {
|
|
||||||
"errcode": "M_FORBIDDEN",
|
|
||||||
"error": "Profile lookup is disabled on this homeserver"
|
|
||||||
}
|
|
||||||
"404":
|
|
||||||
description: There is no avatar URL for this user or this user does not exist.
|
|
||||||
tags:
|
|
||||||
- User data
|
|
||||||
"/profile/{userId}":
|
"/profile/{userId}":
|
||||||
get:
|
get:
|
||||||
summary: Get this user's profile information.
|
summary: Get all profile information for a user.
|
||||||
description: |-
|
description: |-
|
||||||
Get the combined profile information for this user. This API may be used
|
Get the complete profile for a user. The response includes `avatar_url`
|
||||||
to fetch the user's own profile information or other users; either
|
and `displayname` (unless set to `null`, as they can only be strings)
|
||||||
locally or on remote homeservers.
|
plus any custom profile fields.
|
||||||
|
|
||||||
|
**Note**: The complete profile must be under 64 KiB.
|
||||||
operationId: getUserProfile
|
operationId: getUserProfile
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
|
|
@ -243,45 +287,49 @@ paths:
|
||||||
properties:
|
properties:
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: mx-mxc-uri
|
||||||
description: The user's avatar URL if they have set one, otherwise not present.
|
description: "Avatar URL value (MXC URI format)."
|
||||||
displayname:
|
displayname:
|
||||||
type: string
|
type: string
|
||||||
description: The user's display name if they have set one, otherwise not
|
additionalProperties:
|
||||||
present.
|
x-addedInMatrixVersion: "1.14"
|
||||||
|
description: Any additional profile field value; may be any
|
||||||
|
valid JSON type, with keys following the
|
||||||
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value:
|
||||||
"avatar_url": "mxc://matrix.org/SDGdghriugerRg",
|
{
|
||||||
"displayname": "Alice Margatroid"
|
"avatar_url": "mxc://matrix.org/SDGdghriugerRg",
|
||||||
}
|
"displayname": "Alice Margatroid",
|
||||||
|
"m.example_field": "custom_value",
|
||||||
|
}
|
||||||
"403":
|
"403":
|
||||||
x-addedInMatrixVersion: "1.2"
|
x-addedInMatrixVersion: "1.2"
|
||||||
description: The server is unwilling to disclose whether the user exists and/or
|
description: The server is unwilling to disclose whether the user
|
||||||
has profile information.
|
exists and/or has profile information.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value:
|
||||||
"errcode": "M_FORBIDDEN",
|
{
|
||||||
"error": "Profile lookup is disabled on this homeserver"
|
"errcode": "M_FORBIDDEN",
|
||||||
}
|
"error": "Profile lookup is disabled on this homeserver",
|
||||||
|
}
|
||||||
"404":
|
"404":
|
||||||
description: There is no profile information for this user or this user does not
|
description: There is no profile information for this user or this
|
||||||
exist.
|
user does not exist.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value:
|
||||||
"errcode": "M_NOT_FOUND",
|
{ "errcode": "M_NOT_FOUND", "error": "Profile not found" }
|
||||||
"error": "Profile not found"
|
|
||||||
}
|
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
servers:
|
servers:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue