Claim one-time encryption keys.
POST {{baseUrl}}/keys/claim
Claims one-time keys for use in pre-key messages.
Request Body
{"one_time_keys"=>{"@alice:example.com"=>{"JLAFKJWSCS"=>"signed_curve25519"}}, "timeout"=>10000}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"one_time_keys":{"@alice:example.com":{"JLAFKJWSCS":{"signed_curve25519:AAAAHg":{"key":"zKbLg+NrIjpnagy+pIY6uPL4ZwEG2v+8F9lmgsnlZzs","signatures":{"@alice:example.com":{"ed25519:JLAFKJWSCS":"FLWxXqGbwrb8SM3Y795eB6OA8bwBcoMZFXBqnTn58AYWZSqiD45tlBVcDa2L7RwdKXebW/VzDlnfVJ+9jok1Bw"}}}}}},"failures":{}}