Concepts

Contact: the person who receives a sequence

What a contact is: name, email, E.164 phone, LinkedIn URL, ISO country, time zone and attributes, keyed by your own id, plus outreach consent and suppressions.

Edit on GitHub

A contact is the person a sequence reaches. This page shows the fields, consent and suppressions.

You create a contact with your own person id. Upserting needs an enroll key.

curl
curl -X PUT $SEQ/v1/contacts/p_7 -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d '{
  "first_name": "Dana", "last_name": "Whitfield", "email": "dana@example.com",
  "phone": "+14155550123", "linkedin_url": "linkedin.com/in/dana-whitfield",
  "country": "US", "timezone": "America/Los_Angeles",
  "attrs": { "plan": "trial", "company": { "name": "Example Inc" } }
}'
FieldRules
emailNeeded for email steps and for Attio lookups.
phoneE.164, like +14155550123. Other formats are normalized; an invalid number is a 422 INVALID_CONTACT.
linkedin_urlThe profile, for LinkedIn steps. Stored as https://www.linkedin.com/in/…; an address off linkedin.com is a 422 INVALID_CONTACT.
countryISO 3166-1 alpha-2, like US. Texts go only to countries in the project's sms_countries.
timezoneAn IANA zone. Used for send windows, business days and SMS quiet hours.
attrsFree JSON, merged by top-level key on every upsert. See Attributes.

A field you leave out keeps its stored value. Up to 500 contacts at once: POST /v1/contacts:batch (oseq.contacts.batch()).

OpenSequence does not fill country from the phone number. Derive it yourself when you have no better source:

import { parsePhoneNumber } from 'libphonenumber-js';
const country = parsePhoneNumber(phone)?.country; // '+447700900123' -> 'GB'

Outreach consent is off by default. Only an admin key can record it, and no text or agent call goes out without it. It was called SMS consent before 0.3.0; the old names still work.

await oseq.contacts.setOutreachConsent('p_7', { consent: true, source: 'signup form' }); // PUT /v1/contacts/{id}/outreach-consent

A suppression means "do not contact on this channel". The service adds one on an unsubscribe click, a STOP text, a hard bounce or a complaint, and the contact's enrollments exit. You add one by reporting { "type": "suppressed" } or { "type": "opt_out" } with POST /v1/contacts/{id}/events. Suppressions are checked when you enroll and again before every send. The API cannot remove a suppression yet.

DELETE /v1/contacts/{id} erases the contact and everything attached, for privacy requests.

On this page