Federation Admin API
Manage federation connections with other Matrix homeservers.
List Federation Destinations
List all servers your server has communicated with.
Endpoint: GET /_synapse/admin/v1/federation/destinations
Query Parameters:
Example Request:
Example Response:
Get Destination Details
Get detailed information about a specific federation destination.
Endpoint: GET /_synapse/admin/v1/federation/destinations/{destination}
Path Parameters:
destination- Server name (e.g.,matrix.org)
Example Request:
Example Response:
Get Destination Rooms
List rooms shared with a specific server.
Endpoint: GET /_synapse/admin/v1/federation/destinations/{destination}/rooms
Query Parameters:
Example Request:
Example Response:
Reset Destination Connection
Reset the retry timing for a destination, allowing immediate reconnection attempts.
Endpoint: POST /_synapse/admin/v1/federation/destinations/{destination}/reset_connection
Use this when:
- A destination has been incorrectly marked as failing
- Network issues have been resolved
- You want to force a reconnection attempt
Example Request:
Example Response:
Federation Fields Reference
Understanding Federation Status
Healthy Connection
The connection is healthy with no active retry attempts.
Failing Connection
The connection has been failing since failure_ts. The server will retry every retry_interval milliseconds (exponential backoff).
Connection Recovery
After a successful reconnection, failure_ts becomes null and retry_interval returns to 0.
Troubleshooting Federation Issues
-
Check destination status - Use the Get Destination Details endpoint to see if there's an active failure.
-
List shared rooms - Identify which rooms are affected by the federation issue.
-
Reset connection - If the destination server is back online, reset the connection to force an immediate retry.
-
Check server logs - Look for federation-related errors in your server logs for more details.
-
Verify DNS and certificates - Ensure the destination server is properly configured with valid TLS certificates and DNS records.