Journeys.
List journeys and enrol a contact into one. Every request needs an API key in the Authorization header; the reference overview covers keys, errors and rate limits.
List journeys
GET/v1/journeysFull access key
List the journeys belonging to the calling team, newest first.
curl -X GET "https://app.usenotix.dev/api/v1/journeys" \
-H "Authorization: Bearer $NOTIX_API_KEY"
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY);
const { data, error } = await notix.journeys.list();
from notix import Notix
notix = Notix() # reads NOTIX_API_KEY
journeys, _ = notix.journeys.list()
use Notix\Notix;
$notix = new Notix(getenv('NOTIX_API_KEY'));
$journeys = $notix->journeys->list();
Responses
200List journeys for the calling team, newest first
| Field | Type | About |
|---|---|---|
idrequired | string | |
namerequired | string | |
statusrequired | string | One of |
triggerTyperequired | string | One of |
contactBookIdrequired | string | Can be null. |
segmentIdrequired | string | Only contacts in this segment of the contact book are enrolled. Null enrols everyone. Can be null. |
exitWhenLeavesSegmentrequired | boolean | When true, a contact who stops matching the segment leaves the journey before its next email. |
stepsrequired | object[] | |
statsrequired | object | |
stats.enrolledrequired | integer | |
stats.activerequired | integer | |
stats.completedrequired | integer | |
stats.exitedrequired | integer | |
stats.failedrequired | integer | |
stats.sentBySteprequired | map of integer | Emails sent per EMAIL step, keyed by step id |
createdAtrequired | string (date-time) | |
updatedAtrequired | string (date-time) |
Get a journey
GET/v1/journeys/{id}Full access key
Retrieve one journey and its stats.
| Field | Type | About |
|---|---|---|
idrequired | string |
curl -X GET "https://app.usenotix.dev/api/v1/journeys/<id>" \
-H "Authorization: Bearer $NOTIX_API_KEY"
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY);
const { data, error } = await notix.journeys.get("jrn_123");
from notix import Notix
notix = Notix() # reads NOTIX_API_KEY
journey, _ = notix.journeys.get("jrn_123")
use Notix\Notix;
$notix = new Notix(getenv('NOTIX_API_KEY'));
$journey = $notix->journeys->get('jrn_123');
Responses
200The journey and its stats
| Field | Type | About |
|---|---|---|
idrequired | string | |
namerequired | string | |
statusrequired | string | One of |
triggerTyperequired | string | One of |
contactBookIdrequired | string | Can be null. |
segmentIdrequired | string | Only contacts in this segment of the contact book are enrolled. Null enrols everyone. Can be null. |
exitWhenLeavesSegmentrequired | boolean | When true, a contact who stops matching the segment leaves the journey before its next email. |
stepsrequired | object[] | |
statsrequired | object | |
stats.enrolledrequired | integer | |
stats.activerequired | integer | |
stats.completedrequired | integer | |
stats.exitedrequired | integer | |
stats.failedrequired | integer | |
stats.sentBySteprequired | map of integer | Emails sent per EMAIL step, keyed by step id |
createdAtrequired | string (date-time) | |
updatedAtrequired | string (date-time) |
404No journey with this id for the calling team
Enrol a contact
POST/v1/journeys/{id}/enrollSending or full access key
Enrol a contact into a journey, by contactId or by email within the journey's contact book. The contact's run starts at step 0. When the journey is limited to a segment, a contact who does not match answers 409 NOT_IN_SEGMENT; enrolling by email still adds the address to the contact book.
| Field | Type | About |
|---|---|---|
idrequired | string |
| Field | Type | About |
|---|---|---|
contactId | string | An existing contact's id. Provide this or email, not both. |
email | string | An email address within the journey's contact book. Created there when it does not already exist. Provide this or contactId, not both. |
curl -X POST "https://app.usenotix.dev/api/v1/journeys/<id>/enroll" \
-H "Authorization: Bearer $NOTIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contactId": "cly1contact0000abcd",
"email": "user@example.com"
}'
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY);
const { data, error } = await notix.journeys.enroll("jrn_123", { email: "ada@example.com" });
from notix import Notix
notix = Notix() # reads NOTIX_API_KEY
run, _ = notix.journeys.enroll("jrn_123", {"email": "ada@example.com"})
use Notix\Notix;
$notix = new Notix(getenv('NOTIX_API_KEY'));
$run = $notix->journeys->enroll('jrn_123', ['email' => 'ada@example.com']);
Responses
201The contact is enrolled and its run created at step 0
| Field | Type | About |
|---|---|---|
idrequired | string | |
journeyIdrequired | string | |
contactIdrequired | string | |
statusrequired | string | One of |
currentStepIndexrequired | integer | |
nextRunAtrequired | string (date-time) | |
exitReasonrequired | string | One of |
createdAtrequired | string (date-time) | |
updatedAtrequired | string (date-time) |