README.rst 999 B

123456789101112131415161718192021222324
  1. Admin APIs
  2. ==========
  3. This directory includes documentation for the various synapse specific admin
  4. APIs available.
  5. Only users that are server admins can use these APIs. A user can be marked as a
  6. server admin by updating the database directly, e.g.:
  7. ``UPDATE users SET admin = 1 WHERE name = '@foo:bar.com'``
  8. Restarting may be required for the changes to register.
  9. Using an admin access_token
  10. ###########################
  11. Many of the API calls listed in the documentation here will require to include an admin `access_token`.
  12. Finding your user's `access_token` is client-dependent, but will usually be shown in the client's settings.
  13. Once you have your `access_token`, to include it in a request, the best option is to add the token to a request header:
  14. ``curl --header "Authorization: Bearer <access_token>" <the_rest_of_your_API_request>``
  15. Fore more details, please refer to the complete `matrix spec documentation <https://matrix.org/docs/spec/client_server/r0.5.0#using-access-tokens>`_.