NoxVR Documentation
Notifications

Create notification (server-to-server)

Create notifications for users. Requires challenge authentication.

POST
/notifications
Authorization<token>

Integrity token authentication (format "Integrity ")

In: header

typestring
toarray<integer>
dataobject
external_id?string
Formatuuid
expires_at?integer
Formatint64

Response Body

application/json

application/json

application/json

curl -X POST "https://nox.hactazia.fr/api/notifications" \  -H "Content-Type: application/json" \  -d '{    "type": "string",    "to": [      0    ],    "data": {}  }'
{
  "type": "string",
  "to": [
    "string"
  ],
  "data": {},
  "external_id": "string",
  "expires_at": 0
}
{
  "error": {
    "message": "You are not logged in.",
    "code": 7,
    "status": 401
  },
  "data": null
}
{
  "error": {
    "message": "Server not found.",
    "code": 11,
    "status": 404
  }
}