Saturday, July 5, 2025¶
My first communication with a matrix server (after reading the specs):
import json
import requests
from pprint import pprint
server_url = "https://matrix.org"
url = server_url + "/.well-known/matrix/client"
session = requests.Session()
response = session.get(url)
assert response.status_code in {200, 201, 202, 204, 400}
pprint(json.loads(response.text))
The output is:
{'m.homeserver': {'base_url': 'https://matrix-client.matrix.org'},
'm.identity_server': {'base_url': 'https://vector.im'},
'org.matrix.msc2965.authentication': {'account': 'https://account.matrix.org/account/',
'issuer': 'https://account.matrix.org/'},
'org.matrix.msc4143.rtc_foci': [{'livekit_service_url': 'https://livekit-jwt.call.matrix.org',
'type': 'livekit'}]}