Notix
API reference

Contact books.

Create and manage the lists contacts live in. Every request needs an API key in the Authorization header; the reference overview covers keys, errors and rate limits.

List contact books

GET/v1/contactBooksFull access key

List the contact books the API key can reach.

terminal
curl -X GET "https://app.usenotix.dev/api/v1/contactBooks" \
  -H "Authorization: Bearer $NOTIX_API_KEY"

Responses

200Retrieve contact books accessible by the API key
200 response fields
FieldTypeAbout
idrequiredstring

The ID of the contact book

namerequiredstring

The name of the contact book

teamIdrequirednumber

The ID of the team

propertiesrequiredmap of string

Custom properties for the contact book

variablesrequiredstring[]

Allowed personalization variables for contacts in this book

emojirequiredstring

The emoji associated with the contact book

doubleOptInEnabledboolean

Whether double opt-in is enabled for new contacts

doubleOptInFromstring

From address used for double opt-in emails (must use a verified domain)

Can be null.

doubleOptInSubjectstring

Subject line used for double opt-in confirmation email

Can be null.

doubleOptInContentstring

Email editor JSON content used for double opt-in confirmation

Can be null.

createdAtrequiredstring

The creation timestamp

updatedAtrequiredstring

The last update timestamp

_countobject
_count.contactsrequirednumber

The number of contacts in the contact book

Create a contact book

POST/v1/contactBooksFull access key

Create a new contact book.

Request body (JSON)
FieldTypeAbout
namerequiredstring
emojistring
propertiesmap of string
doubleOptInEnabledboolean
doubleOptInFromstring

Can be null.

doubleOptInSubjectstring
doubleOptInContentstring
variablesstring[]
terminal
curl -X POST "https://app.usenotix.dev/api/v1/contactBooks" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme"
}'

Responses

200Create a new contact book
200 response fields
FieldTypeAbout
idrequiredstring

The ID of the contact book

namerequiredstring

The name of the contact book

teamIdrequirednumber

The ID of the team

propertiesrequiredmap of string

Custom properties for the contact book

variablesrequiredstring[]

Allowed personalization variables for contacts in this book

emojirequiredstring

The emoji associated with the contact book

doubleOptInEnabledboolean

Whether double opt-in is enabled for new contacts

doubleOptInFromstring

From address used for double opt-in emails (must use a verified domain)

Can be null.

doubleOptInSubjectstring

Subject line used for double opt-in confirmation email

Can be null.

doubleOptInContentstring

Email editor JSON content used for double opt-in confirmation

Can be null.

createdAtrequiredstring

The creation timestamp

updatedAtrequiredstring

The last update timestamp

_countobject
_count.contactsrequirednumber

The number of contacts in the contact book

Get a contact book

GET/v1/contactBooks/{contactBookId}Full access key

Retrieve one contact book.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
terminal
curl -X GET "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>" \
  -H "Authorization: Bearer $NOTIX_API_KEY"

Responses

200Retrieve the contact book
200 response fields
FieldTypeAbout
idrequiredstring

The ID of the contact book

namerequiredstring

The name of the contact book

teamIdrequirednumber

The ID of the team

propertiesrequiredmap of string

Custom properties for the contact book

variablesrequiredstring[]

Allowed personalization variables for contacts in this book

emojirequiredstring

The emoji associated with the contact book

doubleOptInEnabledboolean

Whether double opt-in is enabled for new contacts

doubleOptInFromstring

From address used for double opt-in emails (must use a verified domain)

Can be null.

doubleOptInSubjectstring

Subject line used for double opt-in confirmation email

Can be null.

doubleOptInContentstring

Email editor JSON content used for double opt-in confirmation

Can be null.

createdAtrequiredstring

The creation timestamp

updatedAtrequiredstring

The last update timestamp

_countobject
_count.contactsrequirednumber

The number of contacts in the contact book

403Forbidden - API key doesn't have access to this contact book
403 response fields
FieldTypeAbout
errorrequiredstring
404Contact book not found
404 response fields
FieldTypeAbout
errorrequiredstring

Update a contact book

PATCH/v1/contactBooks/{contactBookId}Full access key

Change a contact book's details.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
Request body (JSON)
FieldTypeAbout
namestring
emojistring
propertiesmap of string
doubleOptInEnabledboolean
doubleOptInFromstring

Can be null.

doubleOptInSubjectstring
doubleOptInContentstring
variablesstring[]
terminal
curl -X PATCH "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme",
  "emoji": "string",
  "properties": {},
  "doubleOptInEnabled": true,
  "doubleOptInFrom": "string",
  "doubleOptInSubject": "Your receipt for order 4471",
  "doubleOptInContent": "string",
  "variables": [
    "string"
  ]
}'

Responses

200Update the contact book
200 response fields
FieldTypeAbout
idrequiredstring

The ID of the contact book

namerequiredstring

The name of the contact book

teamIdrequirednumber

The ID of the team

propertiesrequiredmap of string

Custom properties for the contact book

variablesrequiredstring[]

Allowed personalization variables for contacts in this book

emojirequiredstring

The emoji associated with the contact book

doubleOptInEnabledboolean

Whether double opt-in is enabled for new contacts

doubleOptInFromstring

From address used for double opt-in emails (must use a verified domain)

Can be null.

doubleOptInSubjectstring

Subject line used for double opt-in confirmation email

Can be null.

doubleOptInContentstring

Email editor JSON content used for double opt-in confirmation

Can be null.

createdAtrequiredstring

The creation timestamp

updatedAtrequiredstring

The last update timestamp

_countobject
_count.contactsrequirednumber

The number of contacts in the contact book

403Forbidden - API key doesn't have access to this contact book
403 response fields
FieldTypeAbout
errorrequiredstring
404Contact book not found
404 response fields
FieldTypeAbout
errorrequiredstring

Delete a contact book

DELETE/v1/contactBooks/{contactBookId}Full access key

Delete a contact book and every contact in it. Refused with 400 while a scheduled or running campaign or an active journey uses the book.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
terminal
curl -X DELETE "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>" \
  -H "Authorization: Bearer $NOTIX_API_KEY"

Responses

200Contact book deleted successfully
200 response fields
FieldTypeAbout
idrequiredstring
successrequiredboolean
messagerequiredstring
403Forbidden - API key doesn't have access
403 response fields
FieldTypeAbout
errorrequiredstring
404Contact book not found
404 response fields
FieldTypeAbout
errorrequiredstring