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

Retrieve "hit" reactivities of the specified notification

Request

Path
idinteger(int32)required

The notification's id to retrieve reactivity from

Query
activationStartstring(date-time)

Defines a start date filter Specify this parameter to retrieve all events related to activations that have a timestamp greater than or equal to the specified value You can use an ISO format date or a timestamp

activationEndstring(date-time)

Defines an end date filter
Specify this parameter to retrieve all events related to activations that have a timestamp less than the specified value
You can use an ISO format date or a timestamp

reactivityStartstring(date-time)

Defines a start date filter Specify this parameter to retrieve only events with a timestamp greater than or equal to the specified value You can use an ISO format date or a timestamp

reactivityEndstring(date-time)

Defines an end date filter Specify this parameter to retrieve all events related to activations that have a timestamp less than the specified value
You can use an ISO format date or a timestamp

sortstring

Defines a sort order applied on events timestamp
By default, events are unordered and may not streamed in the same order between two requests
You should use this query parameter if you want to guarantee the sort order of events

Enum"asc""desc"
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/notifications/{id}/reactivities/hits?activationEnd=2019-08-24T14%3A15%3A22Z&activationStart=2019-08-24T14%3A15%3A22Z&reactivityEnd=2019-08-24T14%3A15%3A22Z&reactivityStart=2019-08-24T14%3A15%3A22Z&sort=asc' \
  -H 'X-Key: string'

Responses

An array of hit events related to underlying activations

Bodyapplication/jsonArray [
idstring(uuid)

Uuid of the event

timestampinteger(int64)

Publication timestamp of the event
This is the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.

identityobject

Underlying identity of the event

typestring
Discriminator
sourceobject

Source of the event

typestring
Discriminator
detailobject

Detail of the hit

]
Response
application/json
[ { "type": "hit", "id": "14d3d192-bd40-4c0b-9048-4469ab3a981c", "timestamp": 1614089593000, "identity": { "type": "customer", "agency": "DEMO", "customer": "028" }, "source": { "type": "notification", "detail": { "activation": { "id": 156, "version": "abc39755-54d1-49b2-8c64-2ef6716e272d", "kind": "application", "receiver": { "type": "contact", "value": { "type": "footprint", "id": "000R4M0T", "unicity": "example@np6.com", "hash": "0441619ab4631d18548aa8835dd2c28b" } }, "application": "25dc8874-822f-4d30-8d89-6122214178e6", "subscription": "16f7279a-c15f-4a27-aad5-f678a9b4464a", "stamp": { "time": 1614089576625, "id": "d52055cd-e854-4177-8ef5-b10fd8d568a7", "thread": "a3078b19-b379-4bc2-b29a-e8229a9c9332" }, "channel": "notification_channel", "urgent": true, "expiration": "0001-01-01T00:00:00Z" }, "link": { "type": "redirection", "label": null, "uri": "deeplink://product?id=594" } } } } ]

Retrieve "optout" reactivities of the specified notification

Request

Path
idinteger(int32)required

The notification's id to retrieve reactivity from

Query
activationStartstring(date-time)

Defines a start date filter Specify this parameter to retrieve all events related to activations that have a timestamp greater than or equal to the specified value You can use an ISO format date or a timestamp

activationEndstring(date-time)

Defines an end date filter
Specify this parameter to retrieve all events related to activations that have a timestamp less than the specified value
You can use an ISO format date or a timestamp

reactivityStartstring(date-time)

Defines a start date filter Specify this parameter to retrieve only events with a timestamp greater than or equal to the specified value You can use an ISO format date or a timestamp

reactivityEndstring(date-time)

Defines an end date filter Specify this parameter to retrieve all events related to activations that have a timestamp less than the specified value
You can use an ISO format date or a timestamp

sortstring

Defines a sort order applied on events timestamp
By default, events are unordered and may not streamed in the same order between two requests
You should use this query parameter if you want to guarantee the sort order of events

Enum"asc""desc"
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/notifications/{id}/reactivities/optouts?activationEnd=2019-08-24T14%3A15%3A22Z&activationStart=2019-08-24T14%3A15%3A22Z&reactivityEnd=2019-08-24T14%3A15%3A22Z&reactivityStart=2019-08-24T14%3A15%3A22Z&sort=asc' \
  -H 'X-Key: string'

Responses

An array of hit events related to underlying activations

Bodyapplication/jsonArray [
idstring(uuid)

Uuid of the event

timestampinteger(int64)

Publication timestamp of the event
This is the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.

identityobject

Underlying identity of the event

typestring
Discriminator
sourceobject

Source of the event

typestring
Discriminator
detailobject
]
Response
application/json
[ { "type": "optout", "id": "14d3d192-bd40-4c0b-9048-4469ab3a981c", "timestamp": 1614089593000, "identity": { "type": "customer", "agency": "DEMO", "customer": "028" }, "source": { "type": "notification", "detail": { "activation": { "id": 156, "version": "6faa4304-19be-4ef9-bc3b-281894ed3f86", "kind": "application", "receiver": { "type": "contact", "value": { "type": "footprint", "id": "000R4M0T", "unicity": "example@np6.com", "hash": "0441619ab4631d18548aa8835dd2c28b" } }, "application": "131ef154-51ad-4089-9a3f-39d061201f9b", "subscription": "93df5c84-26f9-4053-9765-00b124928404", "stamp": { "time": 1614089576625, "id": "d52055cd-e854-4177-8ef5-b10fd8d568a7", "thread": "a3078b19-b379-4bc2-b29a-e8229a9c9332" }, "channel": "notification_channel", "urgent": true, "expiration": "0001-01-01T00:00:00Z" }, "optout": { "type": "channel", "channel": "channel" } } } } ]

Retrieve "bounce" reactivities of the specified notification

Request

Path
idinteger(int32)required

The notification's id to retrieve reactivity from

Query
activationStartstring(date-time)

Defines a start date filter Specify this parameter to retrieve all events related to activations that have a timestamp greater than or equal to the specified value You can use an ISO format date or a timestamp

activationEndstring(date-time)

Defines an end date filter
Specify this parameter to retrieve all events related to activations that have a timestamp less than the specified value
You can use an ISO format date or a timestamp

reactivityStartstring(date-time)

Defines a start date filter Specify this parameter to retrieve only events with a timestamp greater than or equal to the specified value You can use an ISO format date or a timestamp

reactivityEndstring(date-time)

Defines an end date filter Specify this parameter to retrieve all events related to activations that have a timestamp less than the specified value
You can use an ISO format date or a timestamp

sortstring

Defines a sort order applied on events timestamp
By default, events are unordered and may not streamed in the same order between two requests
You should use this query parameter if you want to guarantee the sort order of events

Enum"asc""desc"
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/notifications/{id}/reactivities/bounces?activationEnd=2019-08-24T14%3A15%3A22Z&activationStart=2019-08-24T14%3A15%3A22Z&reactivityEnd=2019-08-24T14%3A15%3A22Z&reactivityStart=2019-08-24T14%3A15%3A22Z&sort=asc' \
  -H 'X-Key: string'

Responses

An array of hit events related to underlying activations

Bodyapplication/jsonArray [
idstring(uuid)

Uuid of the event

timestampinteger(int64)

Publication timestamp of the event
This is the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.

identityobject

Underlying identity of the event

typestring
Discriminator
sourceobject

Source of the event

typestring
Discriminator
detailobject

Detail of the bounce

]
Response
application/json
[ { "type": "bounce", "id": "14d3d192-bd40-4c0b-9048-4469ab3a981c", "timestamp": 1614089593000, "identity": { "type": "customer", "agency": "DEMO", "customer": "028" }, "source": { "type": "notification", "detail": { "activation": { "id": 156, "version": "d2cb79dd-ba8e-41ee-83e6-5a343616089e", "kind": "application", "receiver": { "type": "contact", "value": { "type": "footprint", "id": "000R4M0T", "unicity": "example@np6.com", "hash": "0441619ab4631d18548aa8835dd2c28b" } }, "application": "6af6b0c9-274d-4f28-8e8a-2c4bb3de3726", "subscription": "561ba896-b06a-4d32-a44b-addcb3549a08", "stamp": { "time": 1614089576625, "id": "d52055cd-e854-4177-8ef5-b10fd8d568a7", "thread": "a3078b19-b379-4bc2-b29a-e8229a9c9332" }, "channel": "notification_channel", "urgent": true, "expiration": "0001-01-01T00:00:00Z" }, "bounce": { "status": null, "analysis": { "verdict": "hard", "subject": { "type": "token", "detail": { "type": "unregistered" } } } } } } } ]

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

Category

Operations

Marketing Pressure

Operations