curl -sS 'https://example.com/.well-known/matrix/client'

Category: Matrix & Synapse

curl -sS 'https://example.com/.well-known/matrix/client'

Check the client discovery file

Returns {"m.homeserver":{"base_url":"https://matrix.example.com"}} so clients know which homeserver to connect to for accounts on this domain. The file must be served with CORS headers allowing matrix.org and other clients. This is the client half of delegation, while the server file handles federation. Verify it after moving a homeserver to a new subdomain.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.