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

Delete an import definitionDeprecated

Request

Path
idinteger(int32)required

The import definition's id

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/imports/{id}' \
  -H 'X-Key: string'

Responses

No Content

Upload a new file for an import with a binary requestDeprecated

Request

Upload via a file via form data

  • Content-Type: application/octet-stream
Path
idinteger(int32)required

The import definition's id

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 PUT \
  'https://api-cm.np6.com/imports/{id}/source' \
  -H 'X-Key: string'

Responses

Bodyapplication/vnd.mperf.v8.import.v1+json
typestring
Discriminator
idinteger or null(int32)

The identifier of the source

creationDatestring(date-time)

The creation date

updateDatestring or null(date-time)

The update date

filenamestring

The name of the file

dataArray of objects

The content of the file

Response
application/vnd.mperf.v8.import.v1+json
{ "type": "file", "id": 0, "creationDate": "2019-08-24T14:15:22Z", "updateDate": "2019-08-24T14:15:22Z", "filename": "string", "data": [ {} ] }

Get the last execution state of an importDeprecated

Request

Path
idinteger(int32)required

The import definition's id

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/imports/{id}/executions' \
  -H 'X-Key: string'

Responses

Bodyapplication/vnd.mperf.v8.import.v1+json
stateinteger(int32)

The execution state

  • 0 : processing
  • 1 : completed
  • 2 : error
Enum012
Response
application/vnd.mperf.v8.import.v1+json
{ "state": 0 }

Subscription

Operations

Contact

Operations

Webtask

Operations

Compilable

Operations

Mobile Application

Operations

Category

Operations

Marketing Pressure

Operations