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

Retrieve the specified compilable flaws

Request

Path
idstring(uuid)required

The compilable's id to check

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

Responses

A list of flaws

Bodyapplication/jsonArray [
typestring
Discriminator
]
Response
application/json
[ { "type": "string" } ]

Duplicate the specified compilable

Request

Path
idstring(uuid)required

The compilable's id to duplicate

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 POST \
  'https://api-cm.np6.com/scripting/compilables/{id}/duplication' \
  -H 'X-Key: string'

Responses

The duplicated compilable

Bodyapplication/json
idstring(uuid)

Defines the unique id of the compilable

namestring

Defines the name of the compilable

descriptionstring

Defines the description of the compilable

statestring

Defines the state of the compilable

stampobject

Defines the stamp informations of the compilable

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

valueobject

Defines the underlying scriptable value describing the compilable

typestring
Discriminator
sourceobject

Defines the underlying data source

cursorsArray of objects

Defines a list of transformation cursors

parametersArray of objects

Defines a list of expected parameters

previewobject

Defines arguments used to preview the compilable

returnsobject

Defines the expected type of the return value

Response
application/json
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "state": "string", "stamp": { "creation": "2019-08-24T14:15:22Z", "modification": "2019-08-24T14:15:22Z" }, "value": { "type": "string" } }

Execute the specified compilable

Request

Path
idstring(uuid)required

The compilable's id to execute

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

The compilable's arguments used to execute

object
curl -i -X POST \
  'https://api-cm.np6.com/scripting/compilables/{id}/execution' \
  -H 'Content-Type: application/json' \
  -H 'X-Key: string' \
  -d '{}'

Responses

An execution result

Bodyapplication/json
typestring
Discriminator
argumentsobject

A reminder of the arguments used to execute the compilable.

valueobject

Defines the result of the execution.

Response
application/json
{ "type": "success", "arguments": {}, "value": {} }

Mobile Application

Operations

Category

Operations

Marketing Pressure

Operations