|
|
@ -111,7 +111,7 @@ Some API endpoints may allow or require the use of ``POST`` requests without a
|
|
|
|
transaction ID. Where this is optional, the use of a ``PUT`` request is strongly
|
|
|
|
transaction ID. Where this is optional, the use of a ``PUT`` request is strongly
|
|
|
|
recommended.
|
|
|
|
recommended.
|
|
|
|
|
|
|
|
|
|
|
|
{{versions_http_api}}
|
|
|
|
{{versions_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Client Authentication
|
|
|
|
Client Authentication
|
|
|
|
---------------------
|
|
|
|
---------------------
|
|
|
@ -481,9 +481,9 @@ API calls using the User-Interactive Authentication mechanism
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. _User-Interactive Authentication: `sect:auth-api`_
|
|
|
|
.. _User-Interactive Authentication: `sect:auth-api`_
|
|
|
|
|
|
|
|
|
|
|
|
{{registration_http_api}}
|
|
|
|
{{registration_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
{{login_http_api}}
|
|
|
|
{{login_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Login Fallback
|
|
|
|
Login Fallback
|
|
|
|
++++++++++++++
|
|
|
|
++++++++++++++
|
|
|
@ -525,7 +525,7 @@ Adding Account Administrative Contact Information
|
|
|
|
A homeserver may keep some contact information for administrative use.
|
|
|
|
A homeserver may keep some contact information for administrative use.
|
|
|
|
This is independent of any information kept by any Identity Servers.
|
|
|
|
This is independent of any information kept by any Identity Servers.
|
|
|
|
|
|
|
|
|
|
|
|
{{administrative_contact_http_api}}
|
|
|
|
{{administrative_contact_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Pagination
|
|
|
|
Pagination
|
|
|
|
----------
|
|
|
|
----------
|
|
|
@ -628,7 +628,7 @@ Filters can be created on the server and can be passed as as a parameter to APIs
|
|
|
|
which return events. These filters alter the data returned from those APIs.
|
|
|
|
which return events. These filters alter the data returned from those APIs.
|
|
|
|
Not all APIs accept filters.
|
|
|
|
Not all APIs accept filters.
|
|
|
|
|
|
|
|
|
|
|
|
{{filter_http_api}}
|
|
|
|
{{filter_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Events
|
|
|
|
Events
|
|
|
|
------
|
|
|
|
------
|
|
|
@ -750,9 +750,9 @@ When the client first logs in, they will need to initially synchronise with
|
|
|
|
their homeserver. This is achieved via the initial sync API described below.
|
|
|
|
their homeserver. This is achieved via the initial sync API described below.
|
|
|
|
This API also returns an ``end`` token which can be used with the event stream.
|
|
|
|
This API also returns an ``end`` token which can be used with the event stream.
|
|
|
|
|
|
|
|
|
|
|
|
{{old_sync_http_api}}
|
|
|
|
{{old_sync_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
{{sync_http_api}}
|
|
|
|
{{sync_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Getting events for a room
|
|
|
|
Getting events for a room
|
|
|
@ -760,16 +760,16 @@ Getting events for a room
|
|
|
|
|
|
|
|
|
|
|
|
There are several APIs provided to ``GET`` events for a room:
|
|
|
|
There are several APIs provided to ``GET`` events for a room:
|
|
|
|
|
|
|
|
|
|
|
|
{{rooms_http_api}}
|
|
|
|
{{rooms_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{message_pagination_http_api}}
|
|
|
|
{{message_pagination_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sending events to a room
|
|
|
|
Sending events to a room
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
{{room_state_http_api}}
|
|
|
|
{{room_state_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Examples**
|
|
|
|
**Examples**
|
|
|
@ -806,7 +806,7 @@ In some cases, there may be no need for a ``state_key``, so it can be omitted::
|
|
|
|
PUT /rooms/!roomid:domain/state/m.room.bgd.color
|
|
|
|
PUT /rooms/!roomid:domain/state/m.room.bgd.color
|
|
|
|
{ "color": "red", "hex": "#ff0000" }
|
|
|
|
{ "color": "red", "hex": "#ff0000" }
|
|
|
|
|
|
|
|
|
|
|
|
{{room_send_http_api}}
|
|
|
|
{{room_send_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Redactions
|
|
|
|
Redactions
|
|
|
@ -855,7 +855,7 @@ Events
|
|
|
|
Client behaviour
|
|
|
|
Client behaviour
|
|
|
|
++++++++++++++++
|
|
|
|
++++++++++++++++
|
|
|
|
|
|
|
|
|
|
|
|
{{redaction_http_api}}
|
|
|
|
{{redaction_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Rooms
|
|
|
|
Rooms
|
|
|
|
-----
|
|
|
|
-----
|
|
|
@ -875,7 +875,7 @@ includes:
|
|
|
|
See `Room Events`_ for more information on these events. To create a room, a
|
|
|
|
See `Room Events`_ for more information on these events. To create a room, a
|
|
|
|
client has to use the following API.
|
|
|
|
client has to use the following API.
|
|
|
|
|
|
|
|
|
|
|
|
{{create_room_http_api}}
|
|
|
|
{{create_room_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Room aliases
|
|
|
|
Room aliases
|
|
|
|
~~~~~~~~~~~~
|
|
|
|
~~~~~~~~~~~~
|
|
|
@ -901,7 +901,7 @@ request.
|
|
|
|
Homeservers can respond to resolve requests for aliases on other domains than
|
|
|
|
Homeservers can respond to resolve requests for aliases on other domains than
|
|
|
|
their own by using the federation API to ask other domain name homeservers.
|
|
|
|
their own by using the federation API to ask other domain name homeservers.
|
|
|
|
|
|
|
|
|
|
|
|
{{directory_http_api}}
|
|
|
|
{{directory_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Permissions
|
|
|
|
Permissions
|
|
|
@ -980,13 +980,13 @@ The allowable state transitions of membership are::
|
|
|
|
/ban
|
|
|
|
/ban
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{inviting_http_api}}
|
|
|
|
{{inviting_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
{{joining_http_api}}
|
|
|
|
{{joining_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
{{kicking_http_api}}
|
|
|
|
{{kicking_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
{{banning_http_api}}
|
|
|
|
{{banning_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Leaving rooms
|
|
|
|
Leaving rooms
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
~~~~~~~~~~~~~
|
|
|
@ -999,7 +999,7 @@ Whether or not they actually joined the room, if the room is
|
|
|
|
an "invite-only" room they will need to be re-invited before they can re-join
|
|
|
|
an "invite-only" room they will need to be re-invited before they can re-join
|
|
|
|
the room.
|
|
|
|
the room.
|
|
|
|
|
|
|
|
|
|
|
|
{{leaving_http_api}}
|
|
|
|
{{leaving_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Banning users in a room
|
|
|
|
Banning users in a room
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
@ -1030,12 +1030,12 @@ before they can re-join the room or be re-invited.
|
|
|
|
Listing rooms
|
|
|
|
Listing rooms
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
{{list_public_rooms_http_api}}
|
|
|
|
{{list_public_rooms_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Profiles
|
|
|
|
Profiles
|
|
|
|
--------
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
|
|
{{profile_http_api}}
|
|
|
|
{{profile_cs_http_api}}
|
|
|
|
|
|
|
|
|
|
|
|
Events on Change of Profile Information
|
|
|
|
Events on Change of Profile Information
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|