Editing
Server-Server API
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:API]] [[Category:Server_software]] [[Homeserver|Matrix homeservers]] use Federation APIs (also known as Server-Server APIs) to communicate with one another. Homeservers use these APIs to post and query various data from other homeservers in real-time to and from one another. These APIs are implementing using HTTP secure (HTTPS) requests between independent nodes implementing the Matrix protocol, these requests are strongly authenticated on the TLS transport layer. There are main kinds of [[Federation]] between the servers: * Persistent Data Units (PDUs): These events are broadcast from one HS to another HS to store persistent data (such as room state) * Ephemeral Data Units (EDUs): These events are pushed between pairs of homeservers, these events are not persisted on the homeservers (such as typing notification) * Queries: These are single request-response interactions between a given pair of servers, they are usually defined by the GET HTTP request and they are not persisted anywhere. They simple request a snapshot of state of the requested resource (such as searching in rooms) EDUs and PDUs are further wrapped in an envelope called a [[Transaction]], which is transferred from the origin to the destination homeserver using the HTTP PUT request. These requests are a base of what makes Matrix a decentralized protocol as these APIs make Federation possible. For client-to-server communication read [[Client-Server_API|Client-Server API]].
Summary:
Please note that all contributions to IM Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
IM Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
All pages
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information