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

Retrieve activations for the specified content id

Request

Path
idstringrequired

The content id to get events from

Query
startstring(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

endstring(date-time)

Defines an end date filter
Specify this parameter to retrieve only events with 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/display/content/{id}/events/activations?end=2019-08-24T14%3A15%3A22Z&sort=asc&start=2019-08-24T14%3A15%3A22Z' \
  -H 'X-Key: string'

Responses

An array of events

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 activation

]
Response
application/json
[ { "id": "a9de0f54-a6a1-4666-8971-4129aed584c8", "timestamp": 1614089576718, "identity": { "type": "customer", "agency": "DEMO", "customer": "028" }, "source": { "type": "display", "detail": { "activation": { "id": "61e7c824c3a44a0025492e02", "content": "61e816d494a2cf1124adde8f", "campaign": "61e7d9634330930024335593", "receiver": { "type": "footprint", "id": "000R4M0T", "unicity": "example@np6.com", "hash": "0441619ab4631d18548aa8835dd2c28b" }, "stamp": { "time": 1614089576625, "id": "d52055cd-e854-4177-8ef5-b10fd8d568a7", "thread": "a3078b19-b379-4bc2-b29a-e8229a9c9332" }, "keywords": [ { "key": "page_id", "value": "dashboard/home" } ] } } } } ]

Retrieve redirections

Request

Query
startstring(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

endstring(date-time)

Defines an end date filter
Specify this parameter to retrieve only events with 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/display/events/hits/redirection?end=2019-08-24T14%3A15%3A22Z&sort=asc&start=2019-08-24T14%3A15%3A22Z' \
  -H 'X-Key: string'

Responses

An array of events

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
[ { "id": "e2e95630-792f-4c9f-ab1a-3d71a09a0b01", "timestamp": 1614089576718, "identity": { "type": "customer", "agency": "DEMO", "customer": "028" }, "source": { "type": "display", "detail": { "activation": { "id": "61e7c828c3a44a0025492e02", "content": "61e816d494a2cf1124adde8f", "campaign": "61e7d9624330930024335593", "receiver": { "type": "footprint", "id": "000R4M0T", "unicity": "example@np6.com", "hash": "0441619ab4631d18548aa8835dd2c28b" }, "stamp": { "time": 1614089576625, "id": "45a69bec-c2f9-4fb6-98ef-92cd3a5eb126", "thread": "c639172d-1629-456a-8b70-612e31e6f2f9" }, "keywords": [ { "key": "page_id", "value": "dashboard/home" } ] }, "link": { "type": "redirection", "source": "html", "destination": "https://mypage.np6.com/" }, "client": { "type": "web", "ip": { "type": "v4", "value": "000.000.000.000:00000, 00.000.0.1" }, "uri": { "scheme": "http", "version": "1.1", "host": "host.server.com:80", "method": "GET", "original": "http://host.server.com:80" }, "ua": { "type": "parsed", "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", "client": { "type": "Browser", "name": "Chrome", "version": "100.0.0", "vendor": "Google Inc." }, "os": { "name": "macOS 10.15 Catalina", "family": "macOS", "vendor": "Apple Inc." }, "device": { "type": "Desktop", "name": "Mac", "brand": "Apple" } } } } } } ]

Retrieve redirections for the specified campaign id

Request

Path
idstringrequired

The campaign id to get events from

Query
startstring(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

endstring(date-time)

Defines an end date filter
Specify this parameter to retrieve only events with 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/display/campaign/{id}/events/hits/redirection?end=2019-08-24T14%3A15%3A22Z&sort=asc&start=2019-08-24T14%3A15%3A22Z' \
  -H 'X-Key: string'

Responses

An array of events

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
[ { "id": "e2e95630-792f-4c9f-ab1a-3d71a09a0b01", "timestamp": 1614089576718, "identity": { "type": "customer", "agency": "DEMO", "customer": "028" }, "source": { "type": "display", "detail": { "activation": { "id": "61e7c828c3a44a0025492e02", "content": "61e816d494a2cf1124adde8f", "campaign": "61e7d9624330930024335593", "receiver": { "type": "footprint", "id": "000R4M0T", "unicity": "example@np6.com", "hash": "0441619ab4631d18548aa8835dd2c28b" }, "stamp": { "time": 1614089576625, "id": "45a69bec-c2f9-4fb6-98ef-92cd3a5eb126", "thread": "c639172d-1629-456a-8b70-612e31e6f2f9" }, "keywords": [ { "key": "page_id", "value": "dashboard/home" } ] }, "link": { "type": "redirection", "source": "html", "destination": "https://mypage.np6.com/" }, "client": { "type": "web", "ip": { "type": "v4", "value": "000.000.000.000:00000, 00.000.0.1" }, "uri": { "scheme": "http", "version": "1.1", "host": "host.server.com:80", "method": "GET", "original": "http://host.server.com:80" }, "ua": { "type": "parsed", "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", "client": { "type": "Browser", "name": "Chrome", "version": "100.0.0", "vendor": "Google Inc." }, "os": { "name": "macOS 10.15 Catalina", "family": "macOS", "vendor": "Apple Inc." }, "device": { "type": "Desktop", "name": "Mac", "brand": "Apple" } } } } } } ]

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

Category

Operations

Marketing Pressure

Operations