Skip to Content
v1

REST API

Read and write contacts, companies, deals and activities in ENUM One over HTTPS, and receive signed webhooks when records change. The machine-readable spec is at /api/v1/openapi.json (OpenAPI 3.1).

Authentication

Create a key in Settings → API Keys (members who manage settings). A key works for its whole organization; read-only keys can't change anything. Send it in the Authorization header:

curl https://enum-one.vercel.app/api/v1/contacts?limit=10 \
  -H "Authorization: Bearer eo_your_key"

Records created through the API belong to the member who made the key unless you set owner_id. Changes show on record timelines as made by ENUM One.

Rate Limits and Errors

Up to 120 requests a minute per key, and your plan's daily limit per organization (UTC days). Every response has X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 also has Retry-After in seconds. Errors look like this:

{ "error": { "code": "invalid_request", "message": "Enter a valid email address.", "field": "email" } }

Codes: unauthorized (401), forbidden and limit_reached (403), not_found (404), invalid_request (400), conflict (409), rate_limited (429).

Lists and Pages

Lists return { data, page, limit, has_more }, newest first. Use limit (up to 100) and page, and updated_since to sync changes. Deleted records aren't listed; DELETE moves contacts, companies and deals to the trash.

contacts

A person you sell to.

GET/api/v1/contactsList contacts. Filters: email, updated_since.
POST/api/v1/contactsCreate one.
GET/api/v1/contacts/{id}Get one.
PATCH/api/v1/contacts/{id}Change the fields you send.
DELETE/api/v1/contacts/{id}Move it to the trash.
FieldTypeNotes
ididRead-only.
first_namestring | null
last_namestring | null
emailstring | null (email)
phonestring | null
job_titlestring | null
lifecycle_stage"subscriber" | "lead" | "mql" | "sql" | "opportunity" | "customer" | "evangelist" | "other"
owner_idid | nullContact owner (a member's user id). Defaults to the key's creator.
source_idid | nullWhere the record came from: a source id from Settings → Sources. Records created through the API default to the API source.
customobjectCustom field values by field key (Settings → Custom fields).
created_atstring (date-time)Read-only.
updated_atstring (date-time)Read-only.

companies

A business you sell to. Each domain belongs to one company.

GET/api/v1/companiesList companies. Filters: domain, updated_since.
POST/api/v1/companiesCreate one.
GET/api/v1/companies/{id}Get one.
PATCH/api/v1/companies/{id}Change the fields you send.
DELETE/api/v1/companies/{id}Move it to the trash.
FieldTypeNotes
ididRead-only.
namestringRequired.
domainstring | null
industrystring | null
size"1-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1000+"
phonestring | null
owner_idid | null
source_idid | nullWhere the record came from: a source id from Settings → Sources. Records created through the API default to the API source.
customobjectCustom field values by field key (Settings → Custom fields).
created_atstring (date-time)Read-only.
updated_atstring (date-time)Read-only.

deals

An opportunity in a deal pipeline. Closed lost needs a lost_reason_id.

GET/api/v1/dealsList deals. Filters: pipeline_id, stage_id, updated_since.
POST/api/v1/dealsCreate one.
GET/api/v1/deals/{id}Get one.
PATCH/api/v1/deals/{id}Change the fields you send.
DELETE/api/v1/deals/{id}Move it to the trash.
FieldTypeNotes
ididRead-only.
namestringRequired.
amountnumber | null
close_datestring | null (date)
pipeline_ididDefaults to the default deal pipeline.
stage_ididDefaults to the pipeline's first open stage.
lost_reason_idid | null
lost_notestring | null
closed_atstring | null (date-time)Read-only.
owner_idid | null
source_idid | nullWhere the deal came from (a record source id). Without one, a deal takes its first contact's source.
contact_idsarraySet on create.
company_idsarraySet on create.
customobjectCustom field values by field key (Settings → Custom fields).
created_atstring (date-time)Read-only.
updated_atstring (date-time)Read-only.

activities

A note, task, call or meeting, linked to records.

GET/api/v1/activitiesList activities. Filters: kind, record_type, record_id, updated_since.
POST/api/v1/activitiesCreate one.
GET/api/v1/activities/{id}Get one.
PATCH/api/v1/activities/{id}Change the fields you send.
DELETE/api/v1/activities/{id}Delete it.
FieldTypeNotes
ididRead-only.
kind"note" | "task" | "call" | "meeting"Required.
titlestring | nullRequired for tasks, calls and meetings.
bodystring | nullRequired for notes. Supports **bold**, *italic* and [links](https://…).
owner_idid | nullTask assignee or author.
due_atstring | null (date-time)Tasks only.
completedbooleanTasks: mark done or reopen.
completed_atstring | null (date-time)Read-only.
occurred_atstring (date-time)
duration_minutesinteger | null
outcomestring | null
priority"low" | "medium" | "high"
linksarraySet on create.
created_atstring (date-time)Read-only.
updated_atstring (date-time)Read-only.

Example: Create a Deal

curl -X POST https://enum-one.vercel.app/api/v1/deals \
  -H "Authorization: Bearer eo_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Al Waha fleet renewal", "amount": 96000, "close_date": "2027-01-15",
        "company_ids": ["…"], "custom": { "region": "dubai" } }'

Website Events

With the website script installed (Connectors → Website), your server can add events and identify visitors. Find the website_id on the website's page; anon_id is the visitor's _eo_id cookie. Identifying links the visitor to the contact with the same email or phone, or creates a lead when the website allows it.

curl -X POST https://enum-one.vercel.app/api/v1/events \
  -H "Authorization: Bearer eo_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "website_id": "…", "email": "lina@example.com",
        "name": "subscription_started", "properties": { "plan": "pro", "seats": 5 } }'

curl -X POST https://enum-one.vercel.app/api/v1/visitors/identify \
  -H "Authorization: Bearer eo_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "website_id": "…", "anon_id": "…", "email": "lina@example.com", "name": "Lina Haddad" }'

Webhooks

Add an endpoint in Settings → Webhooks and choose events. We POST JSON like { id, event, created_at, org_id, data } where data is the record. A 2xx answer within 10 seconds counts as delivered; anything else is retried after 1, 2, 4, 8 … minutes, up to 8 attempts. Each request has Enum-Event, Enum-Delivery and Enum-Signature headers.

  • contact.created
  • contact.updated
  • contact.deleted
  • company.created
  • company.updated
  • company.deleted
  • deal.created
  • deal.updated
  • deal.deleted
  • deal.stage_changed
  • activity.created

Enum-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256> of t.body with your endpoint's signing secret. Check it before trusting a request:

import { createHmac, timingSafeEqual } from "node:crypto";

// header: the Enum-Signature request header, body: the raw request body (string)
function verify(secret, body, header) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false; // older than 5 minutes
  const expected = createHmac("sha256", secret).update(`${parts.t}.${body}`).digest();
  const given = Buffer.from(parts.v1, "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}