Schedule a message
POST
/api/v1/messages/schedule
const url = 'http://localhost:3001/api/v1/messages/schedule';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"ciphertext":"example","deliver_at":"example","peer":"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 http://localhost:3001/api/v1/messages/schedule \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "ciphertext": "example", "deliver_at": "example", "peer": "example" }'Schedule an E2EE-encrypted message for later delivery.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Scheduled message
Media typeapplication/json
object
ciphertext
string
deliver_at
RFC3339 timestamp
string
peer
string
Examplegenerated
{ "ciphertext": "example", "deliver_at": "example", "peer": "example"}Responses
Section titled “Responses”Scheduled
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}