End-to-end encryption

Create a new backup.

Creates a new backup.

post/_matrix/client/v3/room_keys/version

Request

Request body

algorithm'm.megolm_backup.v1.curve25519-aes-sha2' required

The algorithm used for storing backups.

auth_dataobject required

Algorithm-dependent data. See the documentation for the backup algorithms in Server-side key backups for more information on the expected format of the data.

Example request

{
  "algorithm": "m.megolm_backup.v1.curve25519-aes-sha2",
  "auth_data": {
    "public_key": "abcdefg",
    "signatures": {
      "@alice:example.org": {
        "ed25519:deviceid": "signature"
      }
    }
  }
}

Response

The version id of the new backup.

versionstring required

The backup version. This is an opaque string.

Example response

{
  "version": "1"
}

Changes

No recorded changes to this operation across all 1 revision of this API.