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/contacts | List contacts. Filters: email, updated_since. |
| POST | /api/v1/contacts | Create 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. |
| Field | Type | Notes |
|---|---|---|
id | id | Read-only. |
first_name | string | null | |
last_name | string | null | |
email | string | null (email) | |
phone | string | null | |
job_title | string | null | |
lifecycle_stage | "subscriber" | "lead" | "mql" | "sql" | "opportunity" | "customer" | "evangelist" | "other" | |
owner_id | id | null | Contact owner (a member's user id). Defaults to the key's creator. |
source_id | id | null | Where the record came from: a source id from Settings → Sources. Records created through the API default to the API source. |
custom | object | Custom field values by field key (Settings → Custom fields). |
created_at | string (date-time) | Read-only. |
updated_at | string (date-time) | Read-only. |
companies
A business you sell to. Each domain belongs to one company.
| GET | /api/v1/companies | List companies. Filters: domain, updated_since. |
| POST | /api/v1/companies | Create 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. |
| Field | Type | Notes |
|---|---|---|
id | id | Read-only. |
name | string | Required. |
domain | string | null | |
industry | string | null | |
size | "1-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1000+" | |
phone | string | null | |
owner_id | id | null | |
source_id | id | null | Where the record came from: a source id from Settings → Sources. Records created through the API default to the API source. |
custom | object | Custom field values by field key (Settings → Custom fields). |
created_at | string (date-time) | Read-only. |
updated_at | string (date-time) | Read-only. |
deals
An opportunity in a deal pipeline. Closed lost needs a lost_reason_id.
| GET | /api/v1/deals | List deals. Filters: pipeline_id, stage_id, updated_since. |
| POST | /api/v1/deals | Create 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. |
| Field | Type | Notes |
|---|---|---|
id | id | Read-only. |
name | string | Required. |
amount | number | null | |
close_date | string | null (date) | |
pipeline_id | id | Defaults to the default deal pipeline. |
stage_id | id | Defaults to the pipeline's first open stage. |
lost_reason_id | id | null | |
lost_note | string | null | |
closed_at | string | null (date-time) | Read-only. |
owner_id | id | null | |
source_id | id | null | Where the deal came from (a record source id). Without one, a deal takes its first contact's source. |
contact_ids | array | Set on create. |
company_ids | array | Set on create. |
custom | object | Custom field values by field key (Settings → Custom fields). |
created_at | string (date-time) | Read-only. |
updated_at | string (date-time) | Read-only. |
activities
A note, task, call or meeting, linked to records.
| GET | /api/v1/activities | List activities. Filters: kind, record_type, record_id, updated_since. |
| POST | /api/v1/activities | Create 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. |
| Field | Type | Notes |
|---|---|---|
id | id | Read-only. |
kind | "note" | "task" | "call" | "meeting" | Required. |
title | string | null | Required for tasks, calls and meetings. |
body | string | null | Required for notes. Supports **bold**, *italic* and [links](https://…). |
owner_id | id | null | Task assignee or author. |
due_at | string | null (date-time) | Tasks only. |
completed | boolean | Tasks: mark done or reopen. |
completed_at | string | null (date-time) | Read-only. |
occurred_at | string (date-time) | |
duration_minutes | integer | null | |
outcome | string | null | |
priority | "low" | "medium" | "high" | |
links | array | Set on create. |
created_at | string (date-time) | Read-only. |
updated_at | string (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.createdcontact.updatedcontact.deletedcompany.createdcompany.updatedcompany.deleteddeal.createddeal.updateddeal.deleteddeal.stage_changedactivity.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);
}