Create a contact book

Create a new contact book.

POSThttps://app.usenotix.dev/api/v1/contactBooks

Needs a full access key. Sending access keys cannot call this. Key permissions lists the extra rules some calls have.

Create a new contact book. Double opt-in is off unless doubleOptInEnabled is true, and then doubleOptInFrom is required: an address on one of your verified domains. Without it the request is refused with 422 and nothing is created.

Body parameters

namestringrequired
emojistring
propertiesmap of string
doubleOptInEnabledboolean

Off unless set to true. When true, doubleOptInFrom is required.

doubleOptInFromstring

The confirmation email's from address, on one of your verified domains. Required when doubleOptInEnabled is true.

Can be null.

doubleOptInSubjectstring
doubleOptInContentstring
variablesstring[]

Headers

Authorizationstringrequired

Bearer followed by your API key.

Errors

422

doubleOptInEnabled is true but doubleOptInFrom is missing, or is not on one of your verified domains. Nothing was created.

Every error has the same shape. See all error codes.

curl -X POST "https://app.usenotix.dev/api/v1/contactBooks" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme"
}'
Response200
{
  "id": "clx1234567890",
  "name": "Newsletter Subscribers",
  "teamId": 1,
  "properties": {
    "customField1": "value1"
  },
  "variables": [
    "registrationCode",
    "company"
  ],
  "emoji": "📙",
  "createdAt": "string",
  "updatedAt": "string"
}
Open in ClaudeOpen in ChatGPT