From 42e3f6b862cd3c5ad4f25fca7a1fe685a3a1d1e6 Mon Sep 17 00:00:00 2001 From: richvdh Date: Tue, 17 Aug 2021 09:52:59 +0000 Subject: deploy: a933c2c7d8ef49c3c98ef443d959f955600bfb6b --- develop/admin_api/user_admin_api.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'develop/admin_api') diff --git a/develop/admin_api/user_admin_api.html b/develop/admin_api/user_admin_api.html index 0a49fadba1..f5aac41774 100644 --- a/develop/admin_api/user_admin_api.html +++ b/develop/admin_api/user_admin_api.html @@ -1065,6 +1065,18 @@ server admin: Admin API

  • user_id - The fully qualified MXID: for example, @user:server.com. The user must be local.
  • +

    Check username availability

    +

    Checks to see if a username is available, and valid, for the server. See the client-server +API +for more information.

    +

    This endpoint will work even if registration is disabled on the server, unlike +/_matrix/client/r0/register/available.

    +

    The API is:

    +
    POST /_synapse/admin/v1/username_availabile?username=$localpart
    +
    +

    The request and response format is the same as the /_matrix/client/r0/register/available API.

    +

    To use it, you will need to authenticate by providing an access_token for a +server admin: Admin API

    -- cgit 1.5.1