Skip to content
Programmable

API reference

Reach your account from scripts and automation tools. Everything here can read, add and draft; nothing here can approve or send.

The actions API

One address, /api/do, runs the same actions as the chat on Home and the /dashboard/do links, through the same checks: roles, plan limits, do-not-contact and the activity log. action names it; every other parameter is its argument, as a string. Parameters come from the query string, a JSON body, or both (the body wins).

  • GET only ever reads. GET /api/do with no action lists the actions.
  • POST runs any action and needs a full-access key; a read-only key uses GET.
  • dry_run=1 returns the card (what it would do, computed from your account, and why it would be blocked) and does nothing.
  • Every draft an action writes is pending, for an owner or approver to review. Nothing here sends.

Authentication

An API key from Developers → API keys, in the header: Authorization: Bearer psk_…. Never put it in the address. A key acts as the account's owner, with full access or read only (a read-only key can only read). It can't change the team, billing, connections or keys, and extension keys can't use this API at all. Revoke a key and it stops at once; a key made with an expiry stops on that day by itself.

An API key cannot approve a draft and cannot send. Whatever its access, a key can't:

  • approve a draft, or create one already approved
  • send anything: only the browser extension acts on a platform, in a signed-in person's own browser
  • turn a switch, a platform or autopilot on
  • take anyone off the do-not-contact list
  • change the team, billing, connections, webhooks or keys
# Where things stand (a read)
curl -H "Authorization: Bearer $PSK" "https://programmable.social/api/do?action=status"

# What adding a contact would do, without doing it
curl -X POST -H "Authorization: Bearer $PSK" -H "Content-Type: application/json" \
  -d '{"action":"contact.add","profile_url":"https://www.linkedin.com/in/someone","dry_run":"1"}' https://programmable.social/api/do

# Do it
curl -X POST -H "Authorization: Bearer $PSK" -H "Content-Type: application/json" \
  -d '{"action":"contact.add","profile_url":"https://www.linkedin.com/in/someone","name":"Sam Lee"}' https://programmable.social/api/do

A success is {"result": {"text", "lines"?, "links"?}}; a dry run is {"card": {"title", "rows", "notes", "blocked"}}; an error is {"error": "…", "code"?: "…"} with the status below.

Actions

ActionKindWhat it does, and an example
statusRead: GET or POSTWhat's set up, what's left, and what's waiting: the setup steps, pending drafts and approved ones held back.
action=status
findRead: GET or POSTFind contacts by name, company or headline.
action=find&q=fintech+london
contact.addChange: POSTAdd a person by their profile link (LinkedIn, Reddit, X, Instagram or TikTok), checked against do-not-contact.
action=contact.add&profile_url=https://www.linkedin.com/in/someone&name=Sam+Lee&company=Acme
contact.tagChange: POSTTag a contact (one tag or several, comma-separated). A label only: nothing is drafted or sent.
action=contact.tag&contact=<contact id>&tags=vip,warm+lead
list.addChange: POSTPut a contact on a list (the list is made by naming it). A label only: drafting or enrolling a list is its own button, pressed by a person.
action=list.add&contact=<contact id>&list=Q3+founders
reminder.setChange: POSTSet your own reminder on a contact, in a number of days or on a date, optionally only if they haven't replied. It reminds you; it never drafts or sends.
action=reminder.set&contact=<contact id>&in_days=3&note=Ask+about+the+pilot&if_no_reply=1
meeting.logChange: POSTLog a booked meeting with a contact (or a name). It's recorded on Meetings; the meeting.booked webhook goes out only while your Webhooks switch is on.
action=meeting.log&contact=<contact id>&when=Tue+3pm&starts_at=2026-12-01T15:00:00Z
draftChange on your AI key: POSTResearch a contact and write a first message in your sender's voice, on your own AI key. It's saved pending, for an owner or approver.
action=draft&contact=<contact id>&type=dm&website=acme.io
company.researchChange on your AI key: POSTPublic facts about a company by its website (what it does, size, industry, tech) from programmable.info, on your own key: one credit there.
action=company.research&website=acme.io
workspace.createChange on your AI key: POSTRead your website with your AI and save what you offer and who it's for, ready to edit.
action=workspace.create&url=https://example.com
sender.createChange: POSTAdd a sender (whose voice drafts are in) from a bio or a few things they've written, linked to you.
action=sender.create&name=Dan+Ortiz&voice=I+write+short,+plain+notes...

Refused by name

These aren't actions, from the API, a link or the chat. Asking for one by any of these names returns 403 with code forbidden and where a person does it instead.

  • draft.approve, approve, drafts.approve
    Approving is done by an owner or approver, by hand, in Approvals.
  • send, draft.send, mark_sent, stage, go_live, live
    Nothing is sent from here. The extension sends approved drafts, only when your switches and its own allow it.
  • switch, switches, switches.set, bypass, skip_approval, pause, unpause
    Switches are changed by the owner on their own screen, never from the chat or a link.
  • platform, platform.enable, platforms
    Platforms are turned on by the owner in Settings → Platforms, and in the extension.
  • autopilot, autopilot.enable, caps
    Autopilot is opt-in per person, on its own screen.
  • unsuppress, suppression.lift, dnc.remove
    Do-not-contact entries are lifted by hand, on the do-not-contact screen.
  • like, follow, upvote, draft.like, draft.follow, engage
    A like or a follow is added by a person, by hand, in Drafts → New draft, and an owner or approver approves it. Never from the chat, a link or a key.

The REST routes

The same API key also reads and writes the account's records directly, as JSON, with the same header. A GET needs any key; everything else needs a full-access key. These go through the same checks as the dashboard (roles, plan limits, do-not-contact, the activity log), and none of them approves or sends: a draft written here is pending until an owner or approver, signed in, approves it.

Contacts

GET/api/contactsContacts with message and draft counts. Filters: q, tags, workspace, owner, reply, days, sequence, platform. Paged.
POST/api/contactsAdd a contact: {profileUrl, name?, company?, headline?, conversationUrl?}. Refused for a person on the do-not-contact list. Takes Idempotency-Key.
GET/api/contacts/{id}One contact with its thread.
PATCH/api/contacts/{id}Change a contact: {name?, company?, tags?, senderId?, workspaceId?}.
DELETE/api/contacts/{id}Delete a contact (409 while it has open drafts).

Drafts

GET/api/draftsDrafts, most recently changed first. Filters: status (comma-separated), platform. Paged.
POST/api/draftsWrite a draft: {contact, type, body, contactId?, senderId?, workspaceId?, channel?, targetUrl?}. From a key it is always pending; approve is ignored. Takes Idempotency-Key.
PATCH/api/drafts/{id}Edit the text {body}, or {action}: reject, unapprove, retry or reopen. {action: "approve"} from a key is refused with 403.
DELETE/api/drafts/{id}Delete a draft that isn't being sent.

Meetings

GET/api/meetingsMeetings, latest first. Filter: contactId.
POST/api/meetingsLog a booked meeting: {contact or contactId, when?, startsAt?, owner?, source?}. Takes Idempotency-Key.
GET/api/meetings/{id}One meeting.
PATCH/api/meetings/{id}Change a meeting.
DELETE/api/meetings/{id}Delete (cancel) a meeting.

Do not contact

GET/api/suppressionsThe do-not-contact entries this account added.
POST/api/suppressionsAdd one {profileUrl, reason?} or many {profileUrls: […], reason?}. A key can add to the list, never take anyone off it. Takes Idempotency-Key.

Lists

GET/api/listsEvery list with its counts.
PATCH/api/listsRename a list: {from, to}.
DELETE/api/listsTake a list's name off its contacts: {list}. The contacts stay.
POST/api/lists/membersPut contacts on a list: {list, ids}. Takes Idempotency-Key.
DELETE/api/lists/membersTake one contact off a list: {list, contactId}.
POST/api/lists/draftDraft a first touch for a list's contacts, on your AI key: {list}. Every draft is pending. Takes Idempotency-Key.
POST/api/lists/enrollEnrol a list's contacts in a sequence: {list, sequenceId}. Takes Idempotency-Key.

Sequences

GET/api/sequencesFollow-up sequences, with how many contacts are in each.
POST/api/sequencesCreate a sequence: {name, stepDays, maxSteps}. Takes Idempotency-Key.
PATCH/api/sequences/{id}Change a sequence.
PUT/api/contacts/{id}/sequenceEnrol a contact {sequenceId}, or stop theirs {sequenceId: null}. Its follow-ups are drafted for review, never sent by this.

Paging and changes since

GET /api/contacts and GET /api/drafts return a page at a time: limit (1 to 500; default 200 for contacts, 500 for drafts) and offset. Beside the list the response has total (how many match in all), limit, offset, hasMore and nextOffset (null on the last page). updated_since takes a date and time and returns only records changed at or after it, for a sync that asks for what's new.

# Drafts changed since the start of the month, 100 at a time
curl -H "Authorization: Bearer $PSK" "https://programmable.social/api/drafts?updated_since=2026-11-01T00:00:00Z&limit=100"
# → {"drafts": [...], "total": 340, "limit": 100, "offset": 0, "hasMore": true, "nextOffset": 100}
curl -H "Authorization: Bearer $PSK" "https://programmable.social/api/drafts?updated_since=2026-11-01T00:00:00Z&limit=100&offset=100"

Retrying safely: Idempotency-Key

A POST can carry an Idempotency-Key header of your choosing (up to 200 characters, a UUID is fine), on /api/do and on the routes marked above. Send the same key with the same request again within 24 hours, after a timeout for instance, and you get the first response back with Idempotent-Replayed: true; nothing runs twice. The same key with a different request is a 422; the same key while the first is still running is a 409. Keys are remembered per API key, and only for requests that succeeded: one that failed can be sent again with the same key.

curl -X POST -H "Authorization: Bearer $PSK" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b6f1c1e-6c0e-4c57-9a0e-1f5a3f0d9a11" \
  -d '{"profileUrl":"https://www.linkedin.com/in/someone","name":"Sam Lee"}' https://programmable.social/api/contacts

Rate limits

  • 120 requests a minute per API key, across everything here. Each response to a key carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds until the minute starts again); over the limit is a 429 with Retry-After.
  • 600 action calls an hour per account (dry runs and the action list don't count).
  • 60 actions an hour per account that call your AI (draft, company.research, workspace.create).
  • 30 wrong keys an hour from one address, then every key from it is refused for the hour.

Errors

400No such action (code unknown), arguments that don't fit (bad_args: an unknown argument is an error, never ignored), or a body that isn't a JSON object of strings.
401No API key, or one that isn't recognised or was revoked.
402The trial ended without a plan (code upgrade). Reads still work.
403A refused action (code forbidden, with where to do it instead), a read-only key asked to change something, a viewer, or an extension key.
404The contact isn't in this account.
405A change sent with GET. POST it, or add dry_run=1.
409It can't run as asked (code blocked, with the card saying why: do-not-contact, no AI key), the person is on the do-not-contact list (code suppressed), or a request with the same Idempotency-Key is still running (code idempotency_in_progress).
422An Idempotency-Key that was already used for a different request (code idempotency_mismatch).
423The account is closing: it can be read and exported, not changed (code closing).
429A rate limit (below; code rate_limited). Retry-After says how many seconds to wait.
500Something went wrong on our side. Safe to retry a read; check before retrying a change.

Webhooks

Events go to your own endpoints, set up in Developers → Webhooks and CRM. Two locks: each endpoint starts off, and nothing goes anywhere unless the Webhooks and CRM switch (Settings → Switches) is on too. An endpoint gets only the events ticked for it. Endpoints must be https on port 443 or 8443, on a public address; we connect to the address we checked and never follow redirects. Nothing is sent for a person on the do-not-contact list (checked when the event happens and again at each delivery; there is no event for the list itself), or while the account is paused.

EventWhenCarries
reply.receivedA new message from the contact is captured into a thread.message: body, sentAt; bookingUrl when you've set a booking link
meeting.bookedA meeting with the contact is recorded in Meetings.meeting: id, when, source, owner; bookingUrl when you've set a booking link
draft.sentThe extension reports an approved draft as sent.draft: id, type, text
draft.failedThe extension reports that a draft didn't go out, or a person marks it failed.draft: id, type, text, error
reply.classifiedThe latest reply gets its intent label from your AI, or a person corrects it.message: body, sentAt; intent: label, confidence, reason, manual
meeting.updatedA meeting's person, time or owner is changed.meeting: id, when, source, owner
meeting.cancelledA meeting is deleted from Meetings.meeting: id, when, source, owner (as it was)
contact.createdA new contact is added: by hand, an import, a capture, Scout or the API.source
sequence.finishedThe last follow-up of a contact's sequence is sent.sequence: id, name, step, status, reason
sequence.stoppedA contact's sequence ends before its last step: they replied, a person stopped it, or its draft was rejected, deleted or failed.sequence: id, name, step, status, reason
linkedin.connection_acceptedThe extension first reads a contact's LinkedIn profile as connected.nothing more

Every delivery is a POST of JSON with version (now 1), eventId, event, occurredAt, account and contact (id, name, company, profileUrl), and, when the contact or draft has them, platform, sender (id, name), offer (id, name: the offer the contact is filed under) and sequence (id, name, step). Fields are only ever added to a version, never renamed or removed, so ignore the ones you don't know. A HubSpot-shaped endpoint gets HubSpot contact properties instead. For example:

Content-Type: application/json
User-Agent: Programmable-Webhook/1
X-Programmable-Signature: t=1762437791,v1=5d41402abc4b2a76b9719d911017c592...
X-Programmable-Id: 81234
X-Programmable-Event-Id: e0000000-0000-4000-8000-000000000001

{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000001",
  "event": "reply.received",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "message": {
    "body": "Thanks, Thursday works. What time?",
    "sentAt": "2026-11-06T14:02:40.000Z"
  },
  "bookingUrl": "https://cal.example.com/alex/intro"
}
  • eventId (also the X-Programmable-Event-Id header) is one per event: the same in every endpoint's copy, every retry and every redelivery. Use it to drop an event you've already handled.
  • X-Programmable-Id names one delivery and stays the same across its retries; a redelivery is a new delivery with a new one.
  • Answer with any 2xx within 15 seconds. No answer, 408, 409, 425, 429 or a 5xx is retried after 1, 5, 15, 60, 180, 360 and 720 minutes, 8 tries in all; any other status stops it. Developers → Webhooks and CRM shows each delivery, filtered by endpoint, status or event.
  • Redeliver sends a delivered or dead delivery again (one, or every dead one matching the filters), with the same body and eventId.
  • The Test button sends one signed test event now, with the sample body of the event you pick and "test": true.

A sample of every event

What a Generic JSON endpoint receives for each event. The ids and people are made up.

reply.received
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000001",
  "event": "reply.received",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "message": {
    "body": "Thanks, Thursday works. What time?",
    "sentAt": "2026-11-06T14:02:40.000Z"
  },
  "bookingUrl": "https://cal.example.com/alex/intro"
}
meeting.booked
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000002",
  "event": "meeting.booked",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "meeting": {
    "id": "3b2a1f0e-0000-4000-8000-000000000000",
    "when": "2026-11-12T15:00:00.000Z",
    "source": "manual",
    "owner": "Alex Morgan"
  },
  "bookingUrl": "https://cal.example.com/alex/intro"
}
draft.sent
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000003",
  "event": "draft.sent",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "sequence": {
    "id": "9e8d7c6b-0000-4000-8000-000000000000",
    "name": "Three nudges",
    "step": 2
  },
  "draft": {
    "id": "7d6c5b4a-0000-4000-8000-000000000000",
    "type": "dm",
    "text": "Hi Sam, following up on the audit. Is Thursday still good?"
  }
}
draft.failed
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000004",
  "event": "draft.failed",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "draft": {
    "id": "7d6c5b4a-0000-4000-8000-000000000000",
    "type": "dm",
    "text": "Hi Sam, following up on the audit. Is Thursday still good?",
    "error": "The message box didn't open."
  }
}
reply.classified
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000005",
  "event": "reply.classified",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "message": {
    "body": "Thanks, Thursday works. What time?",
    "sentAt": "2026-11-06T14:02:40.000Z"
  },
  "intent": {
    "label": "interested",
    "confidence": 0.92,
    "reason": "They agreed to a day and asked for a time.",
    "manual": false
  }
}
meeting.updated
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000006",
  "event": "meeting.updated",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "meeting": {
    "id": "3b2a1f0e-0000-4000-8000-000000000000",
    "when": "2026-11-13T15:00:00.000Z",
    "source": "manual",
    "owner": "Alex Morgan"
  }
}
meeting.cancelled
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000007",
  "event": "meeting.cancelled",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "meeting": {
    "id": "3b2a1f0e-0000-4000-8000-000000000000",
    "when": "2026-11-12T15:00:00.000Z",
    "source": "manual",
    "owner": "Alex Morgan"
  }
}
contact.created
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000008",
  "event": "contact.created",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "source": "capture"
}
sequence.finished
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-000000000009",
  "event": "sequence.finished",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "sequence": {
    "id": "9e8d7c6b-0000-4000-8000-000000000000",
    "name": "Three nudges",
    "step": 3,
    "status": "completed",
    "reason": "max-steps"
  }
}
sequence.stopped
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-00000000000a",
  "event": "sequence.stopped",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  },
  "sequence": {
    "id": "9e8d7c6b-0000-4000-8000-000000000000",
    "name": "Three nudges",
    "step": 1,
    "status": "replied",
    "reason": "replied"
  }
}
linkedin.connection_accepted
{
  "version": 1,
  "eventId": "e0000000-0000-4000-8000-00000000000b",
  "event": "linkedin.connection_accepted",
  "occurredAt": "2026-11-06T14:03:11.000Z",
  "account": {
    "id": "6f1c0b9e-0000-4000-8000-000000000000"
  },
  "platform": "linkedin",
  "contact": {
    "id": "0d4a6a3c-0000-4000-8000-000000000000",
    "name": "Sam Lee",
    "company": "Acme",
    "profileUrl": "https://www.linkedin.com/in/samlee"
  },
  "sender": {
    "id": "5a3e1d70-0000-4000-8000-000000000000",
    "name": "Alex Morgan"
  },
  "offer": {
    "id": "c2b7f4e1-0000-4000-8000-000000000000",
    "name": "Onboarding audit"
  }
}

sequence.reason on a sequence.stopped is one of: replied (they replied), manual (a person stopped it), not-accepted (the connection request wasn't accepted in time), no-follow-up-on-post (the thread is a post, not a conversation), draft-rejected (the follow-up's draft was rejected), draft-deleted (the follow-up's draft was deleted), draft-failed (the follow-up's draft failed to send). A sequence.finished has max-steps.

Verifying the signature

X-Programmable-Signature: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256 of <t>.<raw body> keyed with the endpoint's signing secret (whsec_…, shown once when you add the endpoint). Check it against the body exactly as it arrived, compare in constant time, and refuse a timestamp more than five minutes old.

Rotating a secret. Rotate secret on an endpoint makes a new one, shown once. The old one keeps working for the overlap you choose (24 hours unless you say otherwise): until it ends, the header carries two signatures, t=…,v1=<new secret>,v1=<old secret>, and a delivery is genuine if either matches. The samples below accept any matching v1, so a receiver using them keeps verifying while you swap the secret over. A verifier that reads only one v1 should switch to the new secret and then end the overlap from the same page.

Node

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

// header: the X-Programmable-Signature header. rawBody: the request body as received, as a string.
// The header can carry more than one v1 (while a signing secret is being rotated): accept if any matches.
export function verify(secret, header, rawBody, toleranceSec = 300) {
  const pairs = header.split(",").map((p) => p.split("="));
  const t = Number((pairs.find((p) => p[0] === "t") || [])[1]);
  const sigs = pairs.filter((p) => p[0] === "v1" && p[1]).map((p) => p[1]);
  if (!t || !sigs.length || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest();
  return sigs.some((s) => {
    const got = Buffer.from(s, "hex");
    return got.length === expected.length && timingSafeEqual(got, expected);
  });
}

Python

import hashlib, hmac, time

def verify(secret: str, header: str, raw_body: bytes, tolerance: int = 300) -> bool:
    pairs = [p.split("=", 1) for p in header.split(",") if "=" in p]
    try:
        t = int(next(v for k, v in pairs if k == "t"))
    except (StopIteration, ValueError):
        return False
    # More than one v1 while a signing secret is being rotated: accept if any matches.
    sigs = [v for k, v in pairs if k == "v1" and v]
    if not sigs or abs(time.time() - t) > tolerance:
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return any(hmac.compare_digest(expected, s) for s in sigs)

Sending events to Zapier, Make or n8n: recipes, with the check in each.

Something missing or wrong? Email [email protected].