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.
- Retrieve listeners of the specified workflow
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.
Data used to create the workflow
The workflow's script settings
The workflow's listeners
The workflow's capping definition
The workflow's nodes
- publish
- request
- script
- sendMail
- sendSms
- sms
- sleep
- wait
- wait.kill
- updateTarget
- multipleslots
- sendpushapp
- data-manager/pipeline
- data-table/pipeline
- np6.notification/execution
- if
- match
- sample
- split
- switch
- wait.race
- wait.all
- conditionaltimeslots
- data-explorer-v2.match
- terminal
The rationale for using this node, typically provided by AI.
Explains the logic, justification, or reasoning behind the node's presence in the workflow.
Set when applicable (e.g., when the node was suggested or auto-configured by AI).
- Production serverhttps://api-cm.np6.com/scripting/workflows
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-cm.np6.com/scripting/workflows \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '{
"id": 0,
"name": "string",
"description": "string",
"state": 0,
"creationDate": "2019-08-24T14:15:22Z",
"updateDate": "2019-08-24T14:15:22Z",
"scripting": {
"version": "string"
},
"settings": {},
"listeners": [
{
"id": "string",
"name": "string",
"description": "string",
"event": {
"type": "string"
},
"handler": "string"
}
],
"capping": [
{
"key": {
"type": "string"
},
"increment": 0,
"threshold": 0,
"period": {
"type": "string"
},
"nodes": [
"string"
]
}
],
"nodes": [
{
"type": "string"
}
],
"tasks": [
{
"id": "string",
"name": "string",
"description": "string",
"schedulers": [
{
"type": "string"
}
],
"provider": {
"type": "string"
},
"handler": "string"
}
]
}'The created workflow
The workflow's script settings
The workflow's listeners
The workflow's capping definition
The workflow's nodes
- publish
- request
- script
- sendMail
- sendSms
- sms
- sleep
- wait
- wait.kill
- updateTarget
- multipleslots
- sendpushapp
- data-manager/pipeline
- data-table/pipeline
- np6.notification/execution
- if
- match
- sample
- split
- switch
- wait.race
- wait.all
- conditionaltimeslots
- data-explorer-v2.match
- terminal
The rationale for using this node, typically provided by AI.
Explains the logic, justification, or reasoning behind the node's presence in the workflow.
Set when applicable (e.g., when the node was suggested or auto-configured by AI).
{ "id": 0, "name": "string", "description": "string", "state": 0, "creationDate": "2019-08-24T14:15:22Z", "updateDate": "2019-08-24T14:15:22Z", "scripting": { "version": "string" }, "settings": {}, "listeners": [ { "id": "string", "name": "string", "description": "string", "event": { "type": "string" }, "handler": "string" } ], "capping": [ { "key": { "type": "string" }, "increment": 0, "threshold": 0, "period": { "type": "string" }, "nodes": [ "string" ] } ], "nodes": [ { "type": "string" } ], "tasks": [ { "id": "string", "name": "string", "description": "string", "schedulers": [ { "type": "string" } ], "provider": { "type": "string" }, "handler": "string" } ] }
- Production serverhttps://api-cm.np6.com/scripting/workflows/{id}/listeners
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-cm.np6.com/scripting/workflows/{id}/listeners' \
-H 'X-Key: string'An array of listeners
The listener's event
- tracking.open
- tracking.redirect
- web.view
- smtp.received
- smtp.bounced
- datamanager
- marker.view
- contact/creation
- contact/modification
- contact/deletion
- ai/tracking.redirect
- ai/smtp.received
- ai/datamanager.row.created
- ai/datamanager.row.modified
- ai/datamanager.row.deleted
- ai/marker.view
[ { "id": "string", "name": "string", "description": "string", "event": { "type": "string" }, "handler": "string" } ]
Data used to update listeners of the workflow
The listener's event
- tracking.open
- tracking.redirect
- web.view
- smtp.received
- smtp.bounced
- datamanager
- marker.view
- contact/creation
- contact/modification
- contact/deletion
- ai/tracking.redirect
- ai/smtp.received
- ai/datamanager.row.created
- ai/datamanager.row.modified
- ai/datamanager.row.deleted
- ai/marker.view
- Production serverhttps://api-cm.np6.com/scripting/workflows/{id}/listeners
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api-cm.np6.com/scripting/workflows/{id}/listeners' \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '[
{
"id": "string",
"name": "string",
"description": "string",
"event": {
"type": "string"
},
"handler": "string"
}
]'An array of updated listeners
The listener's event
- tracking.open
- tracking.redirect
- web.view
- smtp.received
- smtp.bounced
- datamanager
- marker.view
- contact/creation
- contact/modification
- contact/deletion
- ai/tracking.redirect
- ai/smtp.received
- ai/datamanager.row.created
- ai/datamanager.row.modified
- ai/datamanager.row.deleted
- ai/marker.view
[ { "id": "string", "name": "string", "description": "string", "event": { "type": "string" }, "handler": "string" } ]