Notix
API reference

Contacts.

Add, update, upsert and remove contacts, one at a time or up to 1,000 at once. Every request needs an API key in the Authorization header; the reference overview covers keys, errors and rate limits.

List contacts

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

List the contacts in a contact book, paged by the query parameters.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
Query parameters
FieldTypeAbout
emailsstring
idsstring
pageinteger

1-based page number, at most 10000.

Default 1.

limitinteger

Contacts per page, at most 200. Defaults to 50.

Default 50.

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

Responses

200Retrieve multiple contacts
200 response fields
FieldTypeAbout
idrequiredstring
firstNamestring

Can be null.

lastNamestring

Can be null.

emailrequiredstring
subscribedboolean

Default true.

propertiesrequiredmap of string
contactBookIdrequiredstring
createdAtrequiredstring
updatedAtrequiredstring

Add a contact

POST/v1/contactBooks/{contactBookId}/contactsFull access key

Add one contact to a contact book.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
Request body (JSON)
FieldTypeAbout
emailrequiredstring

The contact's email address. Stored trimmed and lower-cased.

firstNamestring
lastNamestring
propertiesmap of string
subscribedboolean
terminal
curl -X POST "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/contacts" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "ada@example.com"
}'

Responses

200The contact was added.
200 response fields
FieldTypeAbout
contactIdstring

Get a contact

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

Retrieve one contact.

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

Responses

200Retrieve the contact
200 response fields
FieldTypeAbout
idrequiredstring
firstNamestring

Can be null.

lastNamestring

Can be null.

emailrequiredstring
subscribedboolean

Default true.

propertiesrequiredmap of string
contactBookIdrequiredstring
createdAtrequiredstring
updatedAtrequiredstring

Update a contact

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

Change the fields you send on an existing contact.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
contactIdrequiredstring
Request body (JSON)
FieldTypeAbout
firstNamestring
lastNamestring
propertiesmap of string
subscribedboolean
terminal
curl -X PATCH "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/contacts/<contactId>" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "firstName": "Acme",
  "lastName": "Acme",
  "properties": {},
  "subscribed": true
}'

Responses

200The contact was updated.
200 response fields
FieldTypeAbout
contactIdstring

Upsert a contact

PUT/v1/contactBooks/{contactBookId}/contacts/{contactId}Full access key

Create the contact if it does not exist, or update it if it does.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
contactIdrequiredstring

The contact this request is about. With an email in the body it must be the id of the contact that email already belongs to, or the email must be new to the book. Without an email in the body the contact must already exist.

Request body (JSON)
FieldTypeAbout
emailstring

The contact's email address, stored trimmed and lower-cased. Optional: leave it out to update the contact the path id names, by id alone.

firstNamestring
lastNamestring
propertiesmap of string
subscribedboolean
terminal
curl -X PUT "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/contacts/<contactId>" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "customer@example.com",
  "firstName": "Acme",
  "lastName": "Acme",
  "properties": {},
  "subscribed": true
}'

Responses

200Contact upserted successfully
200 response fields
FieldTypeAbout
contactIdrequiredstring

Delete a contact

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

Remove one contact from a contact book.

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

Responses

200Contact deleted successfully
200 response fields
FieldTypeAbout
successrequiredboolean

Add contacts in bulk

POST/v1/contactBooks/{contactBookId}/contacts/bulkFull access key

Add up to 1,000 contacts to a contact book in one request.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
Request body (JSON)
FieldTypeAbout
emailrequiredstring
firstNamestring
lastNamestring
propertiesmap of string
subscribedboolean
terminal
curl -X POST "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/contacts/bulk" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
  {
    "email": "customer@example.com"
  }
]'

Responses

200Bulk add contacts to a contact book
200 response fields
FieldTypeAbout
messagerequiredstring
countrequirednumber

Delete contacts in bulk

DELETE/v1/contactBooks/{contactBookId}/contacts/bulkFull access key

Remove up to 1,000 contacts from a contact book in one request.

Path parameters
FieldTypeAbout
contactBookIdrequiredstring
Request body (JSON)
FieldTypeAbout
contactIdsrequiredstring[]
terminal
curl -X DELETE "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/contacts/bulk" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contactIds": [
    "string"
  ]
}'

Responses

200Bulk delete contacts from a contact book
200 response fields
FieldTypeAbout
successrequiredboolean
countrequirednumber