The notification's id to update
- Delete a notification
Retrieve all notifications
Create a notification
Retrieve the specified notification
Update a notification
Render the "master" version of the specified notification
Render the "master" version of the specified notification and the specified contact id
Render the "master" version of the specified notification and the specified contact unicity
Render the "master" version of the specified notification and the specified contact hash
Render the specified version of the specified notification
Render the specified version of the specified notification and the specified contact id
Render the specified version of the specified notification and the specified contact unicity
Render the specified version of the specified notification and the specified contact hash
Test the "master" version of the specified notification
Test the specified version of the specified notification
Execute the specified notification
Execute the specified notification
Duplicates a notification
Activates a notification
Deactivates a notification
Delete a notification
NP6 API Reference (8.1.0)
This documentation provides comprehensive access to the full range of functionalities offered by the NP6 platform through a standardized RESTful interface.
If you have any questions or need assistance, please contact our support team at https://support.chapsvision.com.
Languages
Servers
Production server
https://api-cm.np6.com
Bodyapplication/json
Data used to update the notification
Defines the stamp informations of the notification
Notification settings
Defines a task used to specify how to trigger the notification
Defines versions of the notification
- Production serverhttps://api-cm.np6.com/notifications/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api-cm.np6.com/notifications/{id}' \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '{
"type": "push-app",
"id": 0,
"name": "string",
"description": "string",
"stamp": {
"creation": "2019-08-24T14:15:22Z",
"modification": "2019-08-24T14:15:22Z"
},
"active": true,
"settings": {
"urgent": true,
"category": 0,
"purpose": {
"type": "string"
},
"expiration": {
"type": "string"
},
"mp": {}
},
"application": "2b22d485-f04e-492b-b364-e14f8506726a",
"task": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"description": "string",
"scheduler": {
"type": "string"
}
},
"versions": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"master": true,
"label": "string",
"stamp": {
"creation": "2019-08-24T14:15:22Z",
"modification": "2019-08-24T14:15:22Z"
},
"scripting": {
"version": "string"
},
"content": {
"type": "string"
},
"redirection": {
"type": "string"
},
"channel": {
"type": "string"
}
}
]
}'Response
application/json
{ "type": "push-app", "id": 0, "name": "string", "description": "string", "stamp": { "creation": "2019-08-24T14:15:22Z", "modification": "2019-08-24T14:15:22Z" }, "active": true, "settings": { "urgent": true, "category": 0, "purpose": { "type": "string" }, "expiration": { "type": "string" }, "mp": {} }, "application": "2b22d485-f04e-492b-b364-e14f8506726a", "task": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "scheduler": { "type": "string" } }, "versions": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "master": true, "label": "string", "stamp": { "creation": "2019-08-24T14:15:22Z", "modification": "2019-08-24T14:15:22Z" }, "scripting": { "version": "string" }, "content": { "type": "string" }, "redirection": { "type": "string" }, "channel": { "type": "string" } } ] }
- Production serverhttps://api-cm.np6.com/notifications/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api-cm.np6.com/notifications/{id}' \
-H 'X-Key: string'Bodyapplication/json
Data used to render the notification
The receiver identification
The related identification
Stamp informations
The related identification
- Production serverhttps://api-cm.np6.com/notifications/{id}/render
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api-cm.np6.com/notifications/{id}/render' \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '{
"receiver": {
"id": "string",
"unicity": "string",
"hash": "string",
"creation": "2019-08-24T14:15:22Z",
"update": "2019-08-24T14:15:22Z",
"fields": {}
},
"related": {
"id": "string",
"unicity": "string",
"hash": "string",
"creation": "2019-08-24T14:15:22Z",
"update": "2019-08-24T14:15:22Z",
"fields": {}
},
"stamp": {
"time": 0,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"thread": "4e557e2e-a322-4083-8cda-d0357ed0cb0c",
"set": "6218c222-bd9f-4d43-9cbb-d1adfe7e63bd"
},
"context": {
"data": {},
"variables": [
{}
],
"display": 0
},
"title": "string",
"body": "string",
"icon": "string",
"thumbnail": "string",
"image": "string",
"redirection": {
"type": "string"
},
"channel": {
"type": "string"
}
}'Response
application/json
{ "type": "success", "meta": { "notification": 0, "version": "8b898373-21c7-4028-b85f-cc5068e68df9", "application": "2b22d485-f04e-492b-b364-e14f8506726a", "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8", "stamp": { "time": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "thread": "4e557e2e-a322-4083-8cda-d0357ed0cb0c", "set": "6218c222-bd9f-4d43-9cbb-d1adfe7e63bd" }, "channel": "string", "redirection": "string" }, "render": { "title": "string", "body": "string", "icon": "string", "thumbnail": "string", "image": "string" }, "tracking": { "radical": "string", "impression": "string", "redirection": "string", "dismiss": "string", "optout": { "global": "string", "channel": "string" } } }