JOTCard API

Read your team's contacts and events, add leads from your website or other systems, and get a signed message the moment something happens. Version 1.

Authentication

Your team owner or a manager creates keys in JOTCard › Settings › API & webhooks (Team and Enterprise plans). Each key has only the permissions picked for it, can expire, can be limited to IP ranges, and is shown once. Send it on every request:

Authorization: Bearer jc_live_…

Base URL: https://jotcard.ai/api/v1. All responses are JSON. Keys belong to your team, so they see your team's contacts; each contact shows the teammate who owns it.

Endpoints

GET/meany

The team and permissions behind your key.

GET/contactscontacts:read

Your team's contacts. Filters: updated_since (ISO date-time), tag, event (event id). Pagination: limit (1–100, default 50) and cursor.

GET/contacts/{id}contacts:read

One contact. With contacts:read_notes it also includes about and the 50 latest notes.

POST/leadsleads:create

Add a lead. Create-only: someone already in the key owner's contacts (same email, else same phone) comes back as a duplicate and is never changed.

GET/eventsevents:read

Your team's events with lead counts. Pagination: limit (1–100, default 25) and cursor.

curl https://jotcard.ai/api/v1/contacts?limit=50&updated_since=2026-11-01T00:00:00Z \
  -H "Authorization: Bearer $JOTCARD_API_KEY"
{
  "data": [
    {
      "id": "3f6c…",
      "first_name": "Sara", "last_name": "Lopez",
      "company": "Halton Dental", "title": "Office Manager",
      "email": "sara@example.com", "phone": "+1 905 555 0100",
      "tags": ["chamber-expo"], "met_at_label": "Milton Chamber Expo",
      "lead_rating": "hot", "follow_up_on": "2026-11-28",
      "owner": "mimmo@example.com",
      "created_at": "2026-11-26T15:04:05Z", "updated_at": "2026-11-26T15:10:00Z"
    }
  ],
  "next_cursor": "3f6c…"
}

Adding leads

Fields: first_name, last_name, email, phone, company, title, website, linkedin_url, met_at_label, tags (up to 20), notes. Send at least a name, a company or an email. New leads belong to the person who created the key and answer 201; a duplicate answers 200 with "duplicate": true. Send an Idempotency-Key header to retry safely: the same key within 24 hours returns the first answer.

curl -X POST https://jotcard.ai/api/v1/leads \
  -H "Authorization: Bearer $JOTCARD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: form-2026-11-26-0042" \
  -d '{"first_name":"Dev","last_name":"Patel","email":"dev@example.com",
       "company":"Patel CPA","tags":["website"],"notes":"Asked for a demo"}'

Pagination

Lists return next_cursor. Pass it back as ?cursor= to get the next page; null means you have everything. For a regular sync, keep the time of your last run and pass it as updated_since.

Errors and limits

{ "error": { "code": "insufficient_scope", "message": "This API key doesn't have the leads:create permission." } }
400 bad_request
A parameter is wrong; the message says which.
401 unauthorized / key_expired
Missing, unknown, revoked or expired key.
403 insufficient_scope / ip_not_allowed / plan_required
The key can't do this, can't be used from this IP, or the team's plan doesn't include the API.
404 not_found
Nothing with that id in your team.
422 validation_error
The lead body didn't pass validation.
429 rate_limited
Over 60 requests a minute or 10,000 a day for this key. Wait for Retry-After seconds.

Webhooks

Add an https address and pick events in Settings › API & webhooks. JOTCard POSTs JSON within seconds. Answer with any 2xx within 8 seconds; otherwise we retry after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h. Redirects aren't followed. An address that keeps failing is switched off, and your team sees why. Bodies carry ids and key fields only, never notes. Use JOTCard-Delivery to ignore repeats.

contact.created
Someone is added: scanned, typed, sent their details from a card, or created through the API.
contact.updated
A contact's details are edited in JOTCard.
lead.rated
A lead is rated hot, warm or cold (or the rating is cleared).
event.started
Someone on your team starts an event.
event.ended
An event is ended.
followup.due
A contact's follow-up date is today (sent once a day, around 8 AM Eastern).
POST https://hooks.example.com/jotcard
JOTCard-Event: contact.created
JOTCard-Delivery: 9b1d…
JOTCard-Signature: t=1795705445,v1=5f2c…

{
  "id": "evt_Qm3…",
  "type": "contact.created",
  "created": "2026-11-26T15:04:05.000Z",
  "data": { "id": "3f6c…", "first_name": "Sara", "company": "Halton Dental", "owner": "mimmo@example.com", … }
}

Verifying signatures

Each delivery is signed with your endpoint's secret: JOTCard-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.raw_body">. Check it against the raw body before parsing, and reject old timestamps.

import crypto from "node:crypto";

// raw: the request body exactly as received (a string), secret: whsec_… from JOTCard
export function verifyJotcard(raw, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${raw}`).digest("hex");
  const a = Buffer.from(expected), b = Buffer.from(parts.v1 || "");
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}
import hmac, hashlib, time

def verify_jotcard(raw: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t = int(parts.get("t", "0"))
    if not t or abs(time.time() - t) > tolerance:
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Security