Signed deliveries, on your endpoint.
Register an HTTPS endpoint for your company and pick the events. Every delivery arrives signed with your secret. Project record events (an RFI answered, a change order approved, a pay app certified and more), Accounting postings and period changes, CRM changes, Analytics alerts and signed test deliveries are implemented.
Manage subscriptions
Subscriptions belong to a company. Members can list them. Creating, changing and testing them, and reading delivery history, takes a company admin; retrying a delivery takes company edit permission. If the token is scoped, it needs webhooks:read to list and webhooks:write for the rest. The body is wrapped in webhook.
The full secret comes back only from create (201), from a PATCH that sets a new one, and from POST …/rotate_secret. Store it then: reads return secret_preview (the last 4 characters) only, and the secret is stored encrypted.
- urlstringYour HTTPS endpoint.
- eventsstring[]"*" for everything, "rfi.*" for one tool, or exact names like "rfi.answered". In the app, tick events one by one on the webhook page.
- secretstringAt least 8 characters, not starting with v1: or v2:. Generated if you leave it out. Lists show only secret_preview.
- activebooleanPause deliveries without deleting the subscription.
- descriptionstringA note for whoever looks at it next.
- GET
/companies/{company_id}/webhooksList subscriptions - POST
/companies/{company_id}/webhooksCreate a subscription - GET
/companies/{company_id}/webhooks/{id}Show one - PATCH
/companies/{company_id}/webhooks/{id}Change URL, events, secret, active or description - POST
/companies/{company_id}/webhooks/{id}/rotate_secretReplace the secret with a generated one and return it once - DELETE
/companies/{company_id}/webhooks/{id}Delete it - GET
/companies/{company_id}/webhooks/{id}/deliveriesDelivery history: status, HTTP status, attempts - POST
/companies/{company_id}/webhooks/{id}/deliveriesQueue a signed test delivery - POST
/companies/{company_id}/webhooks/{id}/deliveries/{delivery_id}/retrySend a failed delivery again - POST
/companies/{company_id}/webhooks/{id}/deliveries/{delivery_id}/replayRe-send a project record event delivery (same event_id) - POST
/companies/{company_id}/webhooks/{id}/replayRe-send the project record events from a time window - GET
/companies/{company_id}/webhooks/event_typesThe project record event catalog, with each data schema
Endpoints must be public HTTPS URLs on port 443 or 8443. Localhost, private and reserved addresses, and redirects are refused, at save and again at every send.
curl -X POST https://app.os.construction/rest/v1.0/companies/{company_id}/webhooks \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"webhook": {
"url": "https://hooks.example.com/os",
"events": ["*"],
"description": "Warehouse sync"
}
}'curl -X POST https://app.os.construction/rest/v1.0/companies/{company_id}/webhooks/{id}/deliveries \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "request_key": "first-test" }'
# 202 Accepted: the delivery is queued. Same request_key, same delivery.Events
These events fire today. Subscribe to exact names, to a namespace like rfi.*, crm.* or accounting.*, or to "*". Send webhook.test from the API or from the webhook's page in the app to check your endpoint end to end. Project record events have their own section.
Accounting events (44) cover journal entries and periods, payables, receivables, banking, payroll, WIP, fixed assets, master data and imports. They carry identifiers, statuses and links rather than amounts or party details. Delivery requires the subscription creator's current view_ledger grant, from a grant not restricted to projects, to cover the event's entity; company-wide events require access to all entities, and payroll events also need payroll view access. Read the Accounting webhook contract before using these events for a ledger integration.
- accounting.journal_entry.posted
- accounting.journal_entry.reversed
- accounting.period.closed
- accounting.period.soft_closed
- accounting.period.reopened
- accounting.ap_bill.approved
- accounting.ap_bill.posted
- accounting.ap_bill.voided
- accounting.ap_payment.posted
- accounting.ap_payment.voided
- accounting.ap_payment.returned
- accounting.ach_return.received
- accounting.ach_noc.received
- accounting.ach_noc.applied
- accounting.ap_payment_run.released
- accounting.ar_invoice.posted
- accounting.ar_invoice.reversed
- accounting.ar_receipt.posted
- accounting.ar_receipt.applied
- accounting.ar_receipt.reversed
- accounting.ar_refund.posted
- accounting.ar_dispute.opened
- accounting.ar_dispute.resolved
- accounting.ar_promise.broken
- accounting.ar_payment.received
- accounting.ar_payment.failed
- accounting.ar_payment.settled
- accounting.ar_deposit.posted
- accounting.payroll_run.posted
- accounting.bank_transaction.submitted
- accounting.payroll_run.voided
- accounting.wip.posted
- accounting.year_end.closed
- accounting.account.created
- accounting.account.updated
- accounting.party.created
- accounting.party.updated
- accounting.cost_code.created
- accounting.bank_transaction.posted
- accounting.bank_transaction.voided
- accounting.bank_reconciliation.finished
- accounting.depreciation_run.posted
- accounting.asset.disposed
- accounting.import.applied
- webhook.testA signed test delivery, sent from the API or the webhook's page.
- analytics.alert.firedAn analytics alert rule fired. data: alert, project_id, fired_at, url.
- analytics.insight.openedAn analytics insight was opened for review. data: id, title, severity, project_id, url. No metric values.
- analytics.schedule.deliveredA scheduled analytics delivery ran with the webhook channel on. data: schedule details and a signed download_url that expires within 7 days (null when report links are off). Never metric values or rows.
- crm.contact.createdA CRM contact was created in company intake or a project. data: contact { id, project_id, relationship, owner_id }, url.
- crm.contact.mergedA duplicate contact was merged into another contact and archived. data: contact { id, project_id, relationship, owner_id } (kept), merged_contact { id, project_id } (archived duplicate), url.
- crm.opportunity.stage_changedAn opportunity moved to a different stage. data: opportunity { id, project_id, contact_id, owner_id }, from_stage, to_stage, url.
- crm.opportunity.wonAn opportunity moved to Won. Sent with crm.opportunity.stage_changed, same data.
- crm.opportunity.lostAn opportunity moved to Lost. Sent with crm.opportunity.stage_changed, same data.
- crm.activity.assignedAn open follow-up was created with, or changed to, a new owner. data: activity { id, project_id, kind, owner_id, contact_id, opportunity_id, due_at }, url.
- crm.lead_inquiry.createdA website inquiry entered the private review queue. data: lead_inquiry { id, form_id }, url. Submitter details stay in the app.
CRM events fire after the change is saved. Their payloads carry identifiers, stages and a link into the app, never names, contact details, notes, amounts or inquiry submitter details: fetch what you need over the CRM API, as a user who may read it. Contacts created by a reviewed CSV import don't send crm.contact.created. Analytics events never carry metric values. For analytics.schedule.delivered, see scheduled deliveries.
CRM and Analytics event deliveries are sent as the change happens, with up to 3 attempts a moment apart. Their body is event_id (a UUID, the same on every attempt), event, company_id, delivered_at and data, and analytics events add a one-line text summary that Slack incoming webhooks and Teams Workflows display. They carry X-OS-Event and X-OS-Signature but no X-OS-Delivery-ID, and they don't appear in delivery history, so dedupe on event_id. Accounting events use the queued delivery workflow and recheck accounting access before delivery.
The delivery body
- idstringUUID for this delivery. Also sent as X-OS-Delivery-ID.
- eventstringThe event name. Also sent as X-OS-Event.
- company_idintegerThe company the subscription belongs to.
- created_atstringISO 8601 timestamp.
- dataobjectThe event details.
POST /os HTTP/1.1
Content-Type: application/json
X-OS-Event: webhook.test
X-OS-Delivery-ID: 6f1c2a9e-3b7d-4c41-9a0e-2f5d8b1c7e44
X-OS-Signature: sha256=5f2b…64 hex characters
{
"id": "6f1c2a9e-3b7d-4c41-9a0e-2f5d8b1c7e44",
"event": "webhook.test",
"company_id": 1,
"created_at": "2026-10-20T14:03:10.000Z",
"data": { "message": "Webhook delivery test" }
}Project record events
A project record event is written in the same database transaction as the change it describes: it exists only if the change was saved, and a restart doesn't lose it. The job runner then delivers it to every active subscription that names it, with the retries below. An event reaches a subscription only while the person who created the subscription can view that tool on that project; company events (project.created, user.invited, insurance.certificate_expiring) need a company admin. Private RFIs, submittals, commitments and tasks send no title or subject, and personal observations and private documents send nothing. No payload carries names, emails, phone numbers or free-text bodies.
Deliveries of one record keep their order for each subscription: a later event for the same record waits while an earlier one is still being retried. Events for different records are not ordered. Use event_id to deduplicate, sequence to spot gaps, and replay to recover after an outage.
- event_idstringOne per event, shared by every subscription and every replay. Deduplicate on it. Also X-OS-Event-ID.
- type, versionstring, integerThe event name (also in event and X-OS-Event) and its payload version. A breaking payload change ships as a new version.
- occurred_atstringWhen the change was saved (ISO 8601).
- company_id, project_idintegerThe company, and the project (null for company events).
- actorobjectWho did it: type (user, service_account, agent, partner_app, automation or system) and id. For automation, id is the rule owner the automation acted for and automation_id is the rule (see /developers/automations).
- resourceobjectThe record: type and id. Fetch details over the REST API as a user who may read it.
- sequenceinteger | nullPer-subscription ordinal for gap detection. null on replays.
- dataobjectIdentifiers, numbers, statuses, dates and amounts for the event. Listed per event below.
Event catalog
Each event and the keys in its data. The same list, with JSON Schema, comes from GET …/webhooks/event_types.
- project.createdv1 · company adminA project was created (from the app, the API, a template or a CRM handoff).
nameproject_numberstagestart_datecompletion_datetemplate_project_id
- user.invitedv1 · company adminA person was invited to join the company. The invitee's name and email stay in the app.
invitation_idexpires_at
- rfi.createdv1 · rfis:viewAn RFI was created, as a draft or open.
numbersubjectstatusdue_date - rfi.answeredv1 · rfis:viewAn official response was added to an RFI, or an existing response was marked official.
numbersubjectstatusdue_datereply_id - rfi.closedv1 · rfis:viewAn RFI moved to a closed status (closed, closed_draft or closed_with_revision).
numbersubjectstatusdue_datefrom_status
- submittal.submittedv1 · submittals:viewA submittal was opened for review: created open, or moved from draft to open.
numberrevisiontitlestatusdue_datespecification_section_id - submittal.returnedv1 · submittals:viewA submittal was returned: its status moved to revise_and_resubmit or rejected.
numberrevisiontitlestatusdue_datespecification_section_idfrom_status - submittal.approvedv1 · submittals:viewA submittal's status moved to approved.
numberrevisiontitlestatusdue_datespecification_section_idfrom_status
- change_order.createdv1 · change_orders:viewA change order (potential change order on a prime contract or commitment) was created.
numbertitlestatusexecutedcontract_typecontract_idchange_event_idrevisiondue_date - change_order.approvedv1 · change_orders:viewA change order's status moved to approved.
numbertitlestatusexecutedcontract_typecontract_idchange_event_idrevisiondue_datefrom_status - change_order.rejectedv1 · change_orders:viewA change order's status moved to rejected.
numbertitlestatusexecutedcontract_typecontract_idchange_event_idrevisiondue_datefrom_status - change_order.executedv1 · change_orders:viewAn approved change order was marked executed (directly or as part of an executed package).
numbertitlestatusexecutedcontract_typecontract_idchange_event_idrevisiondue_datepackage_id
- change_event.createdv1 · change_events:viewA change event was created (from the app, the API or an RFQ).
numbertitlestatusevent_scopeevent_typeorigin_type
- commitment.executedv1 · commitments:viewA subcontract or purchase order was marked executed (or created executed).
contract_typenumbertitlestatusvendor_idexecution_date
- payment_application.submittedv1 · payment_applications:viewA payment application moved to submitted.
numberinvoice_numbercontract_typecontract_idperiod_startperiod_endfrom_statusstatuscurrent_payment_due - payment_application.certifiedv1 · payment_applications:viewA payment application was certified (status approved).
numberinvoice_numbercontract_typecontract_idperiod_startperiod_endfrom_statusstatuscurrent_payment_due - payment_application.paidv1 · payment_applications:viewA payment application was marked paid.
numberinvoice_numbercontract_typecontract_idperiod_startperiod_endfrom_statusstatuscurrent_payment_dueamount_paid
- daily_log.completedv1 · daily_log:viewA day's daily log was marked complete.
log_datecompleted_at
- punch_item.closedv1 · punch_list:viewA punch item's workflow status moved to closed.
positionnameprioritydue_datelocation_idfrom_status
- inspection.item_failedv1 · inspections:viewAn inspection item was answered non-conforming (fail).
inspection_numberinspection_nameitem_iditem_namelocation_id
- observation.createdv1 · observations:viewAn observation was created (directly, from a template or from a failed inspection item).
numbernamestatusprioritytype_iddue_dateassignee_idlocation_idorigin
- document.version_publishedv1 · documents:viewA new version of a project document file was uploaded (version 2 and later).
nameversionversion_idcontent_typesizefolder_id
- drawing_set.releasedv1 · drawings:viewA drawing set was released: its processed revisions became the current published revisions.
namedrawing_revision_idspublished_at
- permit.status_changedv1 · permits:viewA permit's status changed (submit, corrections, approve, issue, suspend, close, withdraw, renew).
numbertitlepermit_typecommandfrom_statusstatusoccurred_onissued_onexpires_on
- insurance.certificate_expiringv1 · company adminA company insurance policy expires within 30 days. Sent once per policy and expiration date.
project_idvendor_idpolicy_typeexpiration_datedays_remaining
- schedule.publishedv1 · schedule:viewA reviewed schedule publication was applied to the project's tasks and became the current published schedule.
kindreceipt_idprevious_receipt_id
- task.completedv1 · tasks:viewA task item's status moved to closed.
numbertitledue_dateassignee_idfrom_status
- approval.requestedv1 · company adminAn approval workflow run started for a record (change order, pay application, AP bill, payment run, ...): its first stage's approvers were asked.
object_typeobject_idstatusroundpolicy_idamountstage_nameescalation_level - approval.approvedv1 · company adminEvery stage of an approval workflow run reached its quorum. The record's own domain decision (approve, certify, release) can now proceed.
object_typeobject_idstatusroundpolicy_idamountstage_nameescalation_level - approval.rejectedv1 · company adminAn approver rejected an approval workflow run; the record returns to its submitter with the reason (in the app).
object_typeobject_idstatusroundpolicy_idamountstage_nameescalation_level - approval.escalatedv1 · company adminA pending approval stage passed its escalation time and more approvers were added to it.
object_typeobject_idstatusroundpolicy_idamountstage_nameescalation_level
- inbound_email.receivedv1 · admin:viewAn email reached a project intake address or was uploaded as .eml, and was logged for processing. Sender and body stay in the app.
address_idsourcetarget_typesize_bytesattachment_count - inbound_email.draft_createdv1 · admin:viewEmail intake created a draft for review: an RFI or submittal in draft status, or AP invoice documents in the capture inbox. Nothing is submitted or approved.
address_idsourcetarget_typerecord_typerecord_idattachment_countsender_verified - inbound_email.rejectedv1 · admin:viewEmail intake refused an email (unknown or unauthenticated sender, auto-reply, loop, size or rate limit, disabled address).
address_idsourcetarget_typereason_code
- connector.sync_completedv1 · company adminA connection sync run finished (succeeded, or partial when some records failed). Review items it raised wait in the Connections app.
sync_idrun_idprovidertriggerstatusreview_items_createdrecords_failed - connector.sync_failedv1 · company adminA connection sync run failed (for example revoked authorization or a provider outage). Company admins are also emailed after three failures in a row.
sync_idrun_idprovidertriggerconsecutive_failures
POST /os HTTP/1.1
Content-Type: application/json
X-OS-Event: rfi.answered
X-OS-Delivery-ID: 0b7f3c1e-5d2a-4f6b-9a8c-1e2d3f4a5b6c
X-OS-Event-ID: 9d4e2a71-8c3b-4f1a-b6d5-7e8f9a0b1c2d
X-OS-Signature: sha256=8c1e…64 hex characters
{
"id": "0b7f3c1e-5d2a-4f6b-9a8c-1e2d3f4a5b6c",
"event_id": "9d4e2a71-8c3b-4f1a-b6d5-7e8f9a0b1c2d",
"sequence": 42,
"event": "rfi.answered",
"type": "rfi.answered",
"version": 1,
"occurred_at": "2026-11-21T14:03:10.000Z",
"created_at": "2026-11-21T14:03:10.000Z",
"company_id": 1,
"project_id": 7,
"actor": { "type": "user", "id": 12 },
"resource": { "type": "rfi", "id": 212 },
"data": { "number": "212", "subject": "Fire dampers at grid C", "status": "open", "due_date": "2026-11-25", "reply_id": 981 }
}# Re-send one delivery (same event_id, replay: true)
curl -X POST https://app.os.construction/rest/v1.0/companies/{company_id}/webhooks/{id}/deliveries/{delivery_id}/replay \
-H "Authorization: Bearer $OS_ACCESS_TOKEN"
# Re-send what this subscription matches from a window (last 30 days, up to 500 a call)
curl -X POST https://app.os.construction/rest/v1.0/companies/{company_id}/webhooks/{id}/replay \
-H "Authorization: Bearer $OS_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "since": "2026-11-20T00:00:00Z", "events": ["rfi.*"] }'Verify signatures
Each delivery carries X-OS-Signature: sha256=<hex>: the HMAC-SHA256 of the raw request body, keyed with your subscription's secret. Verify against the raw bytes before you parse them, and compare in constant time.
To rotate, POST …/rotate_secret (or PATCH the subscription with your own secret). Deliveries switch to it from their next attempt, with no overlap window, so be ready to update your receiver right away.
Handle it
Return any 2xx within 3 seconds, then do slow work async. Delivery is at-least-once: store the event_id (for CRM and Analytics events, the event name and record ids) and ignore repeats. Project record events keep their order per record; nothing else is ordered.
import crypto from "node:crypto";
// Header: X-OS-Signature: sha256=5f2b…
export function verify(rawBody, header, secret) {
const expected = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
const a = Buffer.from(expected), b = Buffer.from(header ?? "");
return a.length === b.length && crypto.timingSafeEqual(a, b);
}import hmac, hashlib
# Header: X-OS-Signature: sha256=5f2b…
def verify(raw_body: bytes, header: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header or "")app.post("/os", express.raw({ type: "application/json" }), (req, res) => {
if (!verify(req.body, req.get("X-OS-Signature"), process.env.OS_WEBHOOK_SECRET)) {
return res.sendStatus(400);
}
const id = req.get("X-OS-Delivery-ID");
if (seen(id)) return res.sendStatus(200); // at-least-once: dedupe on the delivery ID
switch (req.get("X-OS-Event")) {
case "webhook.test":
console.log("os.construction webhook works", JSON.parse(req.body).data);
break;
case "crm.opportunity.won":
queueWonPursuit(JSON.parse(req.body).data.opportunity.id); // ids only: fetch details over the API
break;
}
res.sendStatus(200); // answer within 3 seconds, do slow work async
});Retries and history
A non-2xx answer, or no answer in 3 seconds, is a failed attempt. Signed test deliveries get up to 3 attempts; project record and Accounting events get up to 10 attempts with exponential backoff capped at five minutes. List deliveries with GET …/webhooks/{id}/deliveries to see the event, sequence, outcome, HTTP status and attempts, and resend a failed one with POST …/deliveries/{delivery_id}/retry once its automatic attempts are exhausted (earlier, it answers 409). Project record events are kept for 30 days: POST …/deliveries/{delivery_id}/replay sends one again, and POST …/webhooks/{id}/replay sends a time window again. The webhook's page in the app has retry and replay buttons too.
An exhausted Accounting delivery does not undo its posting. Repair the receiver or access issue and retry the delivery; do not repost the transaction. Retries preserve the event and delivery identifiers, so receivers must deduplicate them. Sequence numbers help detect gaps but do not guarantee arrival order.
The release candidate adds a best-effort finance alert when automatic Accounting delivery retries are exhausted. The alert contains delivery and job references, not transaction payloads or secrets. Confirm availability in your deployed version and monitor failed delivery records even when email is unavailable.
- Attempt 1Within a scheduler tick (about 15 s) of the change, 3-second timeout
- Attempts 2–10Project record and Accounting events: exponential backoff, capped at 5 minutes
- HistoryEvery attempt is kept with its HTTP status
- ManualPOST …/deliveries/{delivery_id}/retry, once automatic attempts are exhausted
Need an event that isn't listed?
Tell us what your ERP, owner portal or data warehouse needs to hear about.
Tell us what you need