Matrix API - Source Code
The Matrix RESTful API uses basic HTTP with returns in JSON. Register for an account to receive your API Key. Use the API to create and manage distributed chat rooms. Matrix is built on an open platform and federated in order to be accessible over any system or server. Some of the chat and VoIP capabilities the Matrix API offers are: send and receive extensible messages with (optional) end-to-end encryption, eventually-consistent cryptographically secure synchronization of chat rooms, and extensible control over users and rooms (invite/remove, join/leave, edit room user and room names, add/remove user accounts).

Sample Source Code (20)
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
Title | Description | |
---|---|---|
![]() | Matrix Export encryption test Android Sample Code | This Matrix Android Sample Code offers several assertion methods for cryptographic ratchet algorithms and error handling. |
![]() | Matrix Crypto persistence test Android Sample Code | This Matrix Android Sample Code demonstrates store persistence for cryptographic ratchet methods. |
![]() | Matrix Crypto store test Kotlin Sample Code | This Matrix Kotlin Sample Code offers several assertion methods used to test metadata imports, and sessions. |
![]() | Matrix Crypto store import Kotlin Sample Code | This Matrix Kotlin Sample Code demonstrates how to compare 2 store elements, how to import rooms, and how to import users. Additionally, this application demonstrates several account integration tests. |
![]() | Matrix Crypto test Android Sample Code | This Matrix Android Sample Code enables cryptographic ratchets for the current session. This application tests device keys, and indicates failures. |
![]() | Matrix API callback Kotlin Sample Code | The Matrix API callback Kotlin Sample Code is a test implementation that counts CountDownLatch on each API callback. By default, this method is only successful when true. |
![]() | Matrix Crypto test Kotlin Sample Code | The Matrix Crypto test Kotlin Sample Code enables cryptographic ratchets for the current session and indicates failures. This method is implemented synchronously. If it succeeds, the application sends several secure messages. |
![]() | Matrix Common methods Android Sample Code | This Matrix Android Sample Code is a test class that exposes common used methods such as registration, login, sync, and sending messages. This application creates a server for testing, sends messages in a room, and demonstrates several user account methods. |
![]() | Matrix Connect to React Sample Code | This Matrix React Sample Code is an implementation used to connect users to servers and give alternatives when a room is not found or has no members. |
![]() | Matrix Phased roll out React Sample Code | The Matrix Phased roll out React Sample Code enables users in rooms in 1 minute intervals. |
![]() | Matrix Decrypt failure tracker React Sample Code | This Matrix React Sample Code is a tracker abstraction that follows decryption errors. The application also indicates if any decryption process is successful. |
![]() | Matrix Store view React Sample Code | This Matrix React Sample Code demonstrates how to view and join a room by ID and how to view a room by alias. |
![]() | Matrix Push rule vector state React Sample Code | This Matrix React Sample Code is an application that implements normal and loud notifications. |
![]() | Matrix Content rules React Sample Code | This Matrix React Sample Code parses content rules and keyword notifications. The snippet serves as a template for normal, loud, and username rules. |
![]() | Matrix Language handler React Sample Code | This Matrix React Sample Code is used to translate a string to the chosen language, handle variable substitutions, and handle text in tags. |
![]() | Matrix Query matcher React Sample Code | This Matrix React Sample Code is a test application that demonstrates several query methods including returning multiple results, and ordered numeric results. |
![]() | Matrix JavaScript Sample Code by Matrix | The Matrix JavaScript Sample Code by Matrix includes applications that demonstrate several features of the JavaScript SDK. |
![]() | Matrix Android Sample Code by Matrix | The Matrix Android Sample Code by Matrix demonstrates an encryption implementation. |
![]() | Matrix iOS Sample Code by Matrix | The Matrix iOS Sample Code by Matrix includes event, JSON, and push tests. |
![]() | Matrix Python Sample Code by Matrix | The Matrix Python Sample Code by Matrix demonstrates how to build a chat client, and how to get user profiles. |