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/

Good to know

Email & SMS

Operations

Notification

Operations

Archives

Operations

Email & SMS

Operations

Notification

Operations

Display

Operations

Email & SMS

Operations

Notification

Operations

Workflow

Operations

Campaign

Operations

Campaign

Operations

Contact

Operations

Field

Operations

Enumeration

Operations

Segment

Operations

Import

Operations

Subscription

Operations

Contact

Operations

Webtask

Operations

Compilable

Operations

Mobile Application

Operations

Retrieve the specified notifiable application

Request

Path
uuidstring(uuid)required

The notifiable application's id to retrieve

Headers
X-Keystringrequired

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.

curl -i -X GET \
  'https://api-cm.np6.com/parameters/applications/{uuid}' \
  -H 'X-Key: string'

Responses

A notifiable application

Bodyapplication/json
typestring
Discriminator
idstring(uuid)

Defines the unique id of the notifiable application

namestring

Defines the name of the notifiable application

descriptionstring

Defines the description of the notifiable application

activeboolean

Defines the online state of the application

stampobject

Defines the stamp informations of the notifiable application

creationstring(date-time)

Defines a date, used to store the creation date of a related data

modificationstring(date-time)

Defines a date, used to store the last modification date of a related data

iconstring

Defines the base64 value of the notifiable application icon

providersArray of objects

Defines a list of providers used to deliver notifications to the application

typestring
Discriminator
keystring

Defines the "firebase" api key used to send notifications

senderstring

Defines the "firebase" sender id used to send notifications

routesArray of objects

Defines a list of exisiting notifiable application routes used to preform redirections

namestring

Defines the name of the route

valueobject

Defines the value of the route

defaultboolean

Defines this route as the default route

channelsArray of objects

Defines a list of exisiting notifiable application channels used to handle display behaviors

namestring

Defines the name of the channel

valueobject

Defines the value of the channel

defaultboolean

Defines this route as the default route

Response
application/json
{ "type": "native", "id": "a2261c17-a896-4c57-ad1f-6a3f2d83a2cc", "name": "another mobile app", "description": "An application that handles push notifications using firebase and apns", "active": false, "stamp": { "creation": "2024-02-01T02:02:43.123Z", "modification": "2024-02-01T07:20:11.876Z" }, "icon": null, "providers": [ { "type": "firebase", "key": "...", "sender": "np6.push" }, { "type": "apns", "certificate": { "type": "p12", "value": "...", "password": "...", "expiration": "2025-12-31T23:59:59.999Z" }, "bundle": "com.np6.push" } ], "routes": [ { "name": "home", "value": { "type": "literal", "value": "app://homepage" }, "default": true } ], "channels": [ { "name": "marketing", "value": { "type": "literal", "value": "marketing" }, "default": true } ] }

Update the notifiable application

Request

Path
uuidstring(uuid)required

The notifiable application's id to update

Query
safeboolean

A "safe" mode used to check existing relationships of this notifiable application

Headers
X-Keystringrequired

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.

Bodyapplication/json

Data used to update the notifiable application

typestring
Discriminator
idstring(uuid)

Defines the unique id of the notifiable application

namestring

Defines the name of the notifiable application

descriptionstring

Defines the description of the notifiable application

activeboolean

Defines the online state of the application

stampobject

Defines the stamp informations of the notifiable application

creationstring(date-time)

Defines a date, used to store the creation date of a related data

modificationstring(date-time)

Defines a date, used to store the last modification date of a related data

iconstring

Defines the base64 value of the notifiable application icon

providersArray of objects

Defines a list of providers used to deliver notifications to the application

typestring
Discriminator
keystring

Defines the "firebase" api key used to send notifications

senderstring

Defines the "firebase" sender id used to send notifications

routesArray of objects

Defines a list of exisiting notifiable application routes used to preform redirections

namestring

Defines the name of the route

valueobject

Defines the value of the route

defaultboolean

Defines this route as the default route

channelsArray of objects

Defines a list of exisiting notifiable application channels used to handle display behaviors

namestring

Defines the name of the channel

valueobject

Defines the value of the channel

defaultboolean

Defines this route as the default route

curl -i -X PUT \
  'https://api-cm.np6.com/parameters/applications/{uuid}?safe=true' \
  -H 'Content-Type: application/json' \
  -H 'X-Key: string' \
  -d '{
    "type": "native",
    "id": "a2261c17-a896-4c57-ad1f-6a3f2d83a2cc",
    "name": "another mobile app",
    "description": "An application that handles push notifications using firebase and apns",
    "active": false,
    "stamp": null,
    "icon": null,
    "providers": [
      {
        "type": "firebase",
        "key": "...",
        "sender": "np6.push"
      },
      {
        "type": "apns",
        "certificate": {
          "type": "p12",
          "value": "...",
          "password": "...",
          "expiration": "2025-12-31T23:59:59.999Z"
        },
        "bundle": "com.np6.push"
      }
    ],
    "routes": [
      {
        "name": "home",
        "value": {
          "type": "literal",
          "value": "app://homepage"
        },
        "default": true
      }
    ],
    "channels": [
      {
        "name": "marketing",
        "value": {
          "type": "literal",
          "value": "marketing"
        },
        "default": true
      },
      {
        "name": "transactional",
        "value": {
          "type": "literal",
          "value": "transactional"
        }
      }
    ]
  }'

Responses

The updated notifiable application

Bodyapplication/json
typestring
Discriminator
idstring(uuid)

Defines the unique id of the notifiable application

namestring

Defines the name of the notifiable application

descriptionstring

Defines the description of the notifiable application

activeboolean

Defines the online state of the application

stampobject

Defines the stamp informations of the notifiable application

creationstring(date-time)

Defines a date, used to store the creation date of a related data

modificationstring(date-time)

Defines a date, used to store the last modification date of a related data

iconstring

Defines the base64 value of the notifiable application icon

providersArray of objects

Defines a list of providers used to deliver notifications to the application

typestring
Discriminator
keystring

Defines the "firebase" api key used to send notifications

senderstring

Defines the "firebase" sender id used to send notifications

routesArray of objects

Defines a list of exisiting notifiable application routes used to preform redirections

namestring

Defines the name of the route

valueobject

Defines the value of the route

defaultboolean

Defines this route as the default route

channelsArray of objects

Defines a list of exisiting notifiable application channels used to handle display behaviors

namestring

Defines the name of the channel

valueobject

Defines the value of the channel

defaultboolean

Defines this route as the default route

Response
application/json
{ "type": "native", "id": "a2261c17-a896-4c57-ad1f-6a3f2d83a2cc", "name": "another mobile app", "description": "An application that handles push notifications using firebase and apns", "active": false, "stamp": { "creation": "2024-02-01T02:02:43.123Z", "modification": "2024-02-01T07:20:11.876Z" }, "icon": null, "providers": [ { "type": "firebase", "key": "...", "sender": "np6.push" }, { "type": "apns", "certificate": { "type": "p12", "value": "...", "password": "...", "expiration": "2025-12-31T23:59:59.999Z" }, "bundle": "com.np6.push" } ], "routes": [ { "name": "home", "value": { "type": "literal", "value": "app://homepage" }, "default": true } ], "channels": [ { "name": "marketing", "value": { "type": "literal", "value": "marketing" }, "default": true }, { "name": "transactional", "value": { "type": "literal", "value": "transactional" } } ] }

Delete the specified notifiable application

Request

Path
uuidstring(uuid)required

The notifiable application's id to delete

Query
safeboolean

A "safe" mode used to check existing relationships of this notifiable application

Headers
X-Keystringrequired

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.

curl -i -X DELETE \
  'https://api-cm.np6.com/parameters/applications/{uuid}?safe=true' \
  -H 'X-Key: string'

Responses

No Content

Category

Operations

Marketing Pressure

Operations