The id of the subscription to retrieve
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
- Production serverhttps://api-cm.np6.com/subscriptions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-cm.np6.com/subscriptions/{id}' \
-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" } }
- Production serverhttps://api-cm.np6.com/subscriptions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api-cm.np6.com/subscriptions/{id}' \
-H 'X-Key: string'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" } }