Send this phone a test push
POST
/push/test
const url = 'http://127.0.0.1:7700/api/push/test';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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://127.0.0.1:7700/api/push/test \ --header 'Authorization: Bearer <token>'A paired device only. One test every 10 seconds per device, so a phone cannot use up the box’s push allowance at the relay.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Sent.
Media typeapplication/json
object
sent
integer
Example
{ "sent": 1}Not a paired phone.
Media typeapplication/json
object
error
required
What went wrong
string
Example generated
{ "error": "example"}Notifications are off on this phone, or remote access is off.
Media typeapplication/json
object
error
required
What went wrong
string
Example generated
{ "error": "example"}Another test within 10 seconds.
Media typeapplication/json
object
error
required
What went wrong
string
Example generated
{ "error": "example"}The push was not sent, with the reason in a sentence, such as “The notification was not sent: the relay at box.example.com isn’t answering.”
Media typeapplication/json
object
error
required
What went wrong
string
Example generated
{ "error": "example"}