End-to-end encryption
Store a key in the backup.
Store a key in the backup.
put/_matrix/client/v3/room_keys/keys/{roomId}/{sessionId}
Request
- Base URLhttps://matrix.org
- Auth
- API key in query parameter access_token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
roomIdstring required
The ID of the room that the key is for.
sessionIdstring required
The ID of the megolm session that the key is for.
Query parameters
versionstring required
The backup in which to store the key. Must be the current backup.
Request body
Example request
{
"first_message_index": 1,
"session_data": {
"ciphertext": "base64+ciphertext+of+JSON+data",
"ephemeral": "base64+ephemeral+key",
"mac": "base64+mac+of+ciphertext"
}
}Response
The update succeeded.
Example response
{
"count": 10,
"etag": "abcdefg"
}Changes
No recorded changes to this operation across all 1 revision of this API.