Add a contact

Add one contact to a contact book.

POSThttps://app.usenotix.dev/api/v1/contactBooks/{contactBookId}/contacts

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

Add one contact to a contact book.

Path parameters

contactBookIdstringrequired

Body parameters

emailstringrequired

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

firstNamestring

At most 256 characters.

lastNamestring

At most 256 characters.

propertiesmap of string
subscribedboolean

Headers

Authorizationstringrequired

Bearer followed by your API key.

Notix-Dry-Runstring

Set to true to preview the request instead of running it. The answer is 200 with dryRun: true: who it would reach, what they would see, what it would cost, whether policy allows it and the limits it counts against. Nothing is sent, charged, reserved or written. A write route that cannot preview answers 400.

Errors

403

The key's approval policy does not allow the journey enrolments or confirmation email this contact sets off

429

The key's daily journey enrolment limit or email cap is reached

503

The per-key limits cannot be checked just now; nothing was written

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

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"
}'
Response200
{
  "contactId": "cm1x8f3k20001qz7v5b9d2e4a"
}
Open in ClaudeOpen in ChatGPT