Submit a content key re-sealed to a recipient's new device key. Session-only (never an API token).
POST
/v1/shares/{id}/reseal
const url = 'https://api.share2.us/v1/shares/example/reseal';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"target_session_id":"example","sealed_key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.share2.us/v1/shares/example/reseal \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "target_session_id": "example", "sealed_key": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
target_session_id
required
string
sealed_key
required
Content key sealed (NaCl box.SealAnonymous) to the recipient’s new device public key, base64.
string
Examplegenerated
{ "target_session_id": "example", "sealed_key": "example"}Responses
Section titled “Responses”Content key re-sealed and queued for delivery to the new device.
Media typeapplication/json
object
status
required
string
Example
{ "status": "ok"}default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}