---
title: "Server well-known"
method: GET
path: "/.well-known/matrix/server"
tags: ["matrix-s2s"]
---

# Server well-known

`GET /.well-known/matrix/server`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/docs/.well-known/matrix/server/get.ts> (a function with typed inputs; its response is checked against the schema)

Our federation delegation, one line: the `m.server` record telling other homeservers "do not knock here, our federation API answers over there." One redirect the whole federation agrees to honor.

## Response `200`

Where our federation API actually answers

- GithubComEtkeccMrsInternalModelWellKnownServer
  - `m.server` string: host:port, e.g. matrix.example.com:443

## Changes

- **2026-07-08** `ae3c2fd65492`: 1 info
  - endpoint added
- **2024-08-20** `4009b08a3a5a`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/changes/.well-known/matrix/server/get.md)

---

[API](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api.md) - [All operations](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/llms.txt) - [OpenAPI document](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/revisions/fafe2e40cd8c?raw)
