Matrix Register API

The Register API from Matrix — 1 operation(s) for register.

OpenAPI Specification

matrix-register-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Matrix Client-Server Account Register API
  version: v3
  description: 'REST API used by Matrix clients to communicate with a homeserver. Covers

    login, account management, sync, room creation and membership, message

    send and history, profile and presence, device management, end-to-end

    encryption keys, and the public rooms directory. Newer endpoints sit

    under /_matrix/client/v3 with selected features under /v1.

    '
  contact:
    name: Matrix.org Foundation
    url: https://matrix.org
servers:
- url: https://{homeserver}/_matrix/client
  description: Matrix homeserver Client-Server API root
  variables:
    homeserver:
      default: matrix.org
security:
- BearerAuth: []
tags:
- name: Register
paths:
  /v3/register:
    post:
      summary: Register a new user account
      operationId: register
      security: []
      parameters:
      - in: query
        name: kind
        schema:
          type: string
          enum:
          - user
          - guest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Account created.
      tags:
      - Register
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Matrix access token issued by the homeserver after login, passed as

        `Authorization: Bearer {access_token}`. Some endpoints (login,

        register, refresh) do not require authentication.

        '