Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Send test

POST
/xeonr.notify.v1.DeviceService/SendTest

Sends a test notification to one of the caller's own devices — or over a named channel, to test email or Discord instead. It goes out for real but outside the ledger, so it proves the whole path from the console without leaving a delivery row. The response carries whatever the provider said when it failed.

Required scopes: notify:devices:edit

Authorization

BearerAuth
AuthorizationBearer <token>

An access token from Xeonr Auth, presented as Authorization: Bearer <token>. Its audience must include https://notify.xeonr.io, and it must carry the scope the method lists.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

installId?string

One of the caller's devices. Omit and give channel instead to test email or Discord.

Lengthlength <= 64
channel?string

Which channel to test; defaults to push when an install id is given.

Value in"CHANNEL_UNSPECIFIED" | "CHANNEL_IN_APP" | "CHANNEL_WEB_PUSH" | "CHANNEL_NATIVE_PUSH" | "CHANNEL_EMAIL" | "CHANNEL_DISCORD" | "CHANNEL_WEBHOOK"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/SendTest" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "sent": "false",
  "error": "apns: BadDeviceToken"
}