Notifications
Create notification (server-to-server)
Create notifications for users. Requires challenge authentication.
Authorization<token>
Integrity token authentication (format "Integrity ")
In: header
typestring
toarray<integer>
dataobject
external_id?string
Format
uuidexpires_at?integer
Format
int64Response 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
}
}