A unique API key used to authenticate requests to the NP6 platform. This key must be included in every API call to validate the identity and permissions of the client. Keep your API key secure and do not expose it in public code or logs.
- Retrieve subscriptions for the specified contact id
Retrieve the specified subscription
Delete the specified subscription
Create or update a subscription
Delete subscriptions for the specified contact id
Retrieve subscriptions for the specified contact unicity
Delete subscriptions for the specified contact unicity
Retrieve subscriptions for the specified contact hash
Delete subscriptions for the specified contact hash
Retrieve subscriptions fo...
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
The subscription data to create or update
Defines the lifecycle information of the subscription.
Defines the provider information used to push notifications.
- Production serverhttps://api-cm.np6.com/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api-cm.np6.com/subscriptions \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '{
"id": "0581e259-9039-487c-a94e-ff8c3944f956",
"application": "56c874e9-2f8e-4b60-ab4b-6410c3238352",
"provider": {
"type": "firebase",
"token": "d4FAelIfREOTW2TPig-f9r:APA91bGQj91UnatpGQNFI6MMUxYo...."
},
"contact": {
"type": "footprint",
"id": "00000001",
"unicity": "foobar",
"hash": "3858f62230ac3c915f300c664312c63f"
}
}'Response
application/json
{ "id": "0581e259-9039-487c-a94e-ff8c3944f956", "lifecycle": { "creation": { "date": "2023-05-22T08:20:05.215Z", "user": null } }, "application": "56c874e9-2f8e-4b60-ab4b-6410c3238352", "provider": { "type": "firebase", "token": "d4FAelIfREOTW2TPig-f9r:APA91bGQj91UnatpGQNFI6MMUxYo...." }, "contact": { "type": "footprint", "id": "00000001", "unicity": "foobar", "hash": "3858f62230ac3c915f300c664312c63f" } }
- Production serverhttps://api-cm.np6.com/targets/{id}/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-cm.np6.com/targets/{id}/subscriptions' \
-H 'X-Key: string'Response
application/json
[ { "id": "0581e259-9039-487c-a94e-ff8c3944f956", "lifecycle": { "creation": { "date": "2023-05-22T08:20:05.215Z", "user": null } }, "application": "56c874e9-2f8e-4b60-ab4b-6410c3238352", "provider": { "type": "firebase", "token": "d4FAelIfREOTW2TPig-f9r:APA91bGQj91UnatpGQNFI6MMUxYo...." }, "contact": { "type": "footprint", "id": "00000001", "unicity": "foobar", "hash": "3858f62230ac3c915f300c664312c63f" } }, { "id": "ee3c161a-2ab2-4f10-b4f8-bd501eb14e50", "lifecycle": { "creation": { "date": "2023-05-21T16:21:22.021Z", "user": null } }, "application": "56c874e9-2f8e-4b60-ab4b-6410c3238352", "provider": { "type": "apns", "token": "57b15e66ebaa9f2fb67df882821bed6c1fe622bb010cb...." }, "contact": { "type": "footprint", "id": "00000001", "unicity": "foobar", "hash": "3858f62230ac3c915f300c664312c63f" } } ]
- Production serverhttps://api-cm.np6.com/targets/{id}/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api-cm.np6.com/targets/{id}/subscriptions' \
-H 'X-Key: string'