Webhook events
The owner adds a webhook in NexaTrack (Settings, AI apps and integrations, Webhooks): an https address and the events to send. NexaTrack then POSTs each event to it as JSON, signed. These are the 83 events the form offers. How to receive them safely is on the webhooks page.
Every event
One POST per event, with this body. The fields under payload depend on the event and are listed below.
| Field | Meaning |
|---|---|
event_ | A unique id for the event. A retry carries the same one: de-duplicate on it. |
type | The event, such as clock_in. |
version | Always 1. A field added later does not change it. |
tenant_ | The account. |
entity_ | The Business, or null for an account-wide event (people, keys, AI apps, exports, webhooks). |
job_ | The Job, when the event is about one; otherwise null. |
occurred_ | When NexaTrack recorded the event (UTC). An event can carry its own, earlier time, such as clock_in_at. |
actor_ | The person whose action raised it, when a signed-in person did. Null for an API key, an AI app, a scheduled run, a sub or homeowner in their portal, and NexaTrack itself. |
payload | The event's own fields, listed below. |
messages | Every message NexaTrack sent because of this event: template, channel, body, status, sent_at, fail_reason, to_email, to_phone, to_name, to_kind (contact or user), to_crm_contact_id, resource_type and resource_id. |
message_ | How many messages there are. |
contact_ | The first outside recipient's details (a client's or a sub's, never a staff member's), or the contact's own for contact.* events, for tools that only map top-level fields. |
summary | The first message's text, or the event type when nothing was sent. |
Fields can be added to a payload at any time; an event's version stays 1 when they are. Ignore fields you do not use.
AI apps and webhooks
| Event | When it is sent | Payload fields |
|---|---|---|
ai. | A request that was waiting is declined, or expires unanswered. An approved one raises nothing here. | pending_action_id, person_id, via, summary, reason, risk |
ai. | An AI app or a key asks to do something that waits for approval: something that would tell a sub or a homeowner (at most one event per credential in ten minutes), or a sensitive change (one event each). | pending_action_id, person_id, via, summary, count, risk, approvervia names the app or key; summary is the approval's one-line description; risk is outward or sensitive; approver is person or owner. |
ai. | Someone connects an AI app, or an owner makes an API key. | kind, name, person_id, person_name, connection_idkind is key or connection; connection_id only for a connection. |
webhook. | A webhook pauses after failing too many times in a row (20 today). | endpoint_id, url, failuresThe paused webhook itself receives nothing more, this event included, so subscribe a second address to hear it. |
Estimates, Invoices and payments
| Event | When it is sent | Payload fields |
|---|---|---|
change_ | The signer accepts a Change Order online, or the office records an acceptance made outside NexaTrack. | change_order_id, estimate_id, job_id, job_name, number, title, total_cents, contract_cents, signer_contact_id, method, budget_appliedcontract_cents is the contract with this change: the accepted Estimate and every accepted Change Order. budget_applied is true when its internal costs were added to the Job's cost budget. |
change_ | The signer declines a Change Order, with a reason. | change_order_id, job_id, job_name, number, title, total_cents, reason, contact_id |
change_ | The office sends a Change Order to an accepted Estimate: its number is taken, its PDF is stored and the email is queued. | change_order_id, estimate_id, job_id, job_name, number, revision, title, total_cents, valid_until, schedule_impact_work_days, signer_contact_id, contact_ids, superseded_idstotal_cents is negative for a credit. estimate_id is the accepted Estimate it changes. schedule_impact_work_days is the Work Days it adds, negative when it takes some off, and null when it does not touch the schedule; nothing on the schedule moves by itself. |
credit_ | The office issues a Credit Memo against an open Invoice; it is applied at once. | invoice_id, credit_memo_id, number, invoice_number, job_id, job_name, total_cents, balance_cents, contact_ids |
estimate. | The signer accepts a Proposal online, or the office records an acceptance made outside NexaTrack. | estimate_id, job_id, job_name, number, title, total_cents, signer_contact_id, methodtotal_cents is the accepted total, with the options the signer chose. method is portal or recorded_external. |
estimate. | The signer declines a Proposal, with a reason. | estimate_id, job_id, job_name, number, title, reason, contact_id |
estimate. | The office sends a Proposal: its number is taken, its PDF is stored and the email is queued. | estimate_id, job_id, job_name, number, revision, title, total_cents, maximum_total_cents, valid_until, signer_contact_id, contact_ids, superseded_idsMoney is whole cents. total_cents leaves out the optional lines and maximum_total_cents includes them all. contact_ids are everyone it went to; signer_contact_id is the one who approves. superseded_ids are earlier revisions this one replaced. No link or PDF is in the event. |
estimate. | Someone it was sent to opens a Proposal for the first time. | estimate_id, job_id, contact_id |
invoice. | A client disputed an online payment with their bank. The amount is owed again until Stripe settles the dispute. | invoice_id, payment_id, job_id, job_name, number, amount_cents, balance_cents, reason, evidence_due_atA dispute lost raises invoice.payment_returned with failure_code dispute_lost; one won counts the payment again. |
invoice. | A client's bank payment that was on its way did not go through. The balance is still owed. | invoice_id, attempt_id, payment_id, job_id, job_name, number, amount_cents, balance_cents, method, failure_codefailure_code is Stripe's, such as insufficient_funds. A card declined on Stripe's page raises nothing: the client tries again there. |
invoice. | A client paid by bank account on Stripe's page. The money is on its way, usually four business days; nothing is paid yet. | invoice_id, attempt_id, payment_id, job_id, job_name, number, amount_cents, balance_cents, method, failure_codepayment_id is null until the payment succeeds, which raises invoice.payment_succeeded. |
invoice. | A payment did not clear after all (a returned check, a bank payment the bank sent back, or a dispute lost), and the balance is owed again. | invoice_id, payment_id, job_id, job_name, number, amount_cents, balance_cents, failure_code |
invoice. | A payment is recorded on an Invoice and its receipt is made: one the office recorded, or a client's card or bank payment once Stripe confirms it. | invoice_id, payment_id, job_id, job_name, number, amount_cents, balance_cents, method, received_on, contact_ids, payer_contact_idsmethod is check, cash or other for a payment the office recorded, card or ach for one paid online. No card or bank detail is ever sent. |
invoice. | Some or all of a payment is given back. | invoice_id, payment_id, refund_id, job_id, job_name, number, amount_cents, balance_cents |
invoice. | An open Invoice with a balance reaches one of its Business's reminder days, counted from the due date. Once per Invoice per reminder day. | invoice_id, job_id, job_name, number, title, total_cents, balance_cents, due_on, days_past_due, payer_contact_id, contact_ids |
invoice. | The office sends an Invoice, or one is issued for a Draw due when a Proposal is accepted: its number is taken, its PDF is stored and the email is queued. | invoice_id, job_id, job_name, number, title, kind, total_cents, balance_cents, due_on, payer_contact_id, contact_idskind is deposit, draw, progress, final, retainage_release or manual. total_cents is after retainage held and with tax. |
invoice. | Someone it was sent to opens the Invoice for the first time. | invoice_id, job_id, job_name, number, total_cents, balance_cents, contact_id |
purchase_ | The Sub/Vendor approves a Purchase Order sent for their sign-off, from its own link, or the office records their approval. An earlier revision it replaces is marked replaced. | purchase_order_id, job_id, job_name, sub_id, sub_company, number, revision, title, total_cents, methodmethod is portal or recorded_external. It counts as committed from now. |
purchase_ | The office marks a released or approved Purchase Order complete: the work is done or the materials arrived. | purchase_order_id, job_id, job_name, sub_id, number, title, total_cents |
purchase_ | The Sub/Vendor says they cannot take on a Purchase Order sent for their sign-off, with a reason. | purchase_order_id, job_id, job_name, sub_id, sub_company, number, revision, title, total_cents, reason |
purchase_ | The office releases a Purchase Order with nothing to approve: emailed to the Sub/Vendor, or released without an email. | purchase_order_id, job_id, job_name, sub_id, sub_company, number, revision, title, total_cents, needed_by, delivery, contact_idsdelivery is no_sign_off (emailed) or none (no email; contact_ids is empty). It counts as committed from now. |
purchase_ | The office releases a Purchase Order for the Sub/Vendor's sign-off: its PO- number is taken, its PDF is stored and the email is queued. | purchase_order_id, job_id, job_name, sub_id, sub_company, number, revision, title, total_cents, needed_by, delivery, contact_idstotal_cents is what the Business pays, with the tax and other charges the Sub/Vendor quoted. delivery is sign_off. Send again raises it again with the same fields and resent: true. Never a link or token. |
purchase_ | The office voids a released Purchase Order, with a reason. It stops counting as committed or pending. | purchase_order_id, job_id, job_name, sub_id, number, title, total_cents, reason |
Clients and homeowners
| Event | When it is sent | Payload fields |
|---|---|---|
client_ | Client Update drafts are ready for a Business to review, once per run. | count, jobsjobs is a list of {job_id, job_name, period}. |
client_ | The office sends a Client Update to a Job's client. | client_update_id, job_id, job_name, contact_id, title, body, photo_count |
contact. | A client is added: in NexaTrack, through the API, from a CRM, or as a new client while creating a Job. | contact_id, entity_id, kind, name, first_name, last_name, email, phone, cell, address_street, address_city, address_state, address_zip, crm_contact_id, changed_fields, origin, job_idorigin is person, mcp (an AI app or key) or crm; an event with origin crm is never sent to webhooks. job_id is there only for a client added while creating a Job. |
contact. | A client's details actually change, or a CRM id is linked or unlinked. A write that changes nothing sends nothing. | contact_id, entity_id, kind, name, first_name, last_name, email, phone, cell, address_street, address_city, address_state, address_zip, crm_contact_id, changed_fields, originchanged_fields lists what changed. |
customer. | A client on a Job is invited to their portal. | job_id, job_name, contact_id, contact_nameNo portal link, for the reason given under sub_assigned. |
customer. | The office replies to a Customer Request. Closing one without a reply sends nothing. | request_id, job_id, job_name, contact_id, contact_name, kind, reply_text |
customer. | A homeowner sends a question or a warranty request from their portal, or the office logs a warranty claim. | request_id, job_id, job_name, contact_id, contact_name, kind, text, task_id, logged_by, logged_by_namekind is question or warranty. logged_by is the person who logged a claim from the office, absent from the portal; a claim logged with no client has contact_id null. |
Time clock
| Event | When it is sent | Payload fields |
|---|---|---|
clock_ | Someone clocks in. A repeated or duplicate punch sends nothing. | time_entry_id, user_id, user_name, job_id, job_name, job_address, clock_in_at, source, geo, location_status, out_of_bounds, distance_m, continues, tag_idsclock_in_at is when the punch happened; occurred_at is when it reached NexaTrack, which can be later for a phone that was offline. geo is {lat, lng} or null. continues is true when it continues a Shift on the same Job that ended within five minutes. tag_ids are the tags chosen at Clock In. |
clock_ | Someone clocks out of their open Shift. | time_entry_id, user_id, user_name, job_id, job_name, duration_minutes, break_minutes, location_status, out_of_bounds, distance_m, same_job_switchduration_minutes is after breaks. Not sent for a Shift closed automatically (that is shift.auto_closed) or closed by switching a person off (listed in user.deactivated). |
shift. | A Shift left open past the Business's longest Shift is closed automatically. | time_entry_id, user_id, job_id, job_name, closed_at |
shift. | An open Shift is two hours from being closed automatically. Once per Shift. | time_entry_id, user_id, job_id, job_name, auto_close_at, auto_close_at_localauto_close_at_local is a time such as 8:00 PM in the Business's time zone. |
shift. | A Shift first takes the person past the weekly overtime threshold. Once per person per pay week. | time_entry_id, user_id, user_name, job_id, job_name, started_at, started_at_local, threshold_hours |
timesheet_ | A pay week that had Shifts ends. Once per Business per week. | entity_id, period_start, period_end, unapproved_count, totals, overtime_grouptotals is a list of {user_id, regular, overtime, double_overtime} in hours. overtime_group lists the Businesses whose hours count together for overtime. |
Schedule
| Event | When it is sent | Payload fields |
|---|---|---|
crew_ | A crew member is told they are on a Schedule Item of a schedule that is online, once; also when they take over a switched-off person's items. | job_id, job_name, item_id, title, user_id, start_date, end_date |
crew_ | A crew member who was told about an item is taken off it, or it is deleted. | job_id, job_name, item_id, title, start_date, end_date, user_id, reasonreason is unassigned or deleted. |
reminder_ | In the Business's morning, for each person or sub on an item that starts within its reminder days. Once per assignee. | job_id, job_name, item_id, title, start_date, notes, assignee_type, assignee_id |
schedule_ | A Schedule Item's dates move on a schedule that is online. One event per item moved. | job_id, job_name, item_id, title, old_start, new_start, old_end, new_end, assignees, notify_user_idsassignees is a list of {type, id}, type being user or sub. |
schedule_ | A Schedule Item's notes change on a schedule that is online and somebody was told about the item. One event per change. | job_id, job_name, item_id, title, notes, notify_user_idsnotify_user_ids is the crew pushed about it: told about the item, on work not completed and not ended. |
schedule_ | A Job's schedule is published (put online), including a republish with no changes. A preview sends nothing. | job_id, job_name, item_count, changed_item_ids |
Jobs and documents
| Event | When it is sent | Payload fields |
|---|---|---|
document_ | A document is filed on a Job. | document_id, job_id, job_name, folder, name, versionfolder is Plans, Specs, Permits, Contracts or Other. version goes up when a document replaces another with the same name. |
export. | An export the owner asked for is ready to download. | export_id, user_id, expires_at, file_count, bytes |
job_ | A Job is created. A template is not. | job_id, job_name, entity_id, status, job_type, address, customer_contact_id, from_template_id |
job_ | A note for Managers and Foremen, or for everyone on the Job, is written on a Job. A note kept for Only me sends nothing. | note_id, job_id, levellevel is managers or everyone_on_job. The note's title and words are never sent. Nobody is told by NexaTrack. |
job_ | A shared note on a Job is removed. | note_id, job_id, level |
job_ | A shared note on a Job is changed, pinned, marked done or brought back, or a note is shared for the first time. A note that is Only me after the change sends nothing. | note_id, job_id, levelThe fields of job_note.created. A note taken back to Only me sends nothing, so it is not a removal. |
job_ | A Job's status changes. | job_id, job_name, from_status, to_status, cost_study_summaryStatuses are presale, open, warranty and closed. cost_study_summary is filled only when a Job closes and its numbers can be worked out: {labour_cost, total_hours, unpriced_hours, budget_remaining, slip_days, scope_flags, complete}. |
People and API keys
| Event | When it is sent | Payload fields |
|---|---|---|
key. | An API key is made. | key_id, name, scopes, created_by |
key. | An API key is revoked, including when its person is switched off. | key_id, name, reason, revoked_byreason is there when the key stopped because its person was switched off; revoked_by only when NexaTrack revoked it. |
user. | A person is switched off. | user_id, deactivated_by, reassigned_to, counts, closed_shiftsclosed_shifts lists the Shifts closed at that moment. Their keys and connections stop at once. |
user. | A person's new sign-in email is confirmed. | user_id, old_email, new_email, changed_by |
user. | A person is added to the account. | user_id, invited_by, membershipsmemberships is a list of {entity_id, role, visible_statuses}; invited_by is a name. |
user. | A switched-off person is brought back. | user_id, reactivated_by |
Daily Logs and photos
| Event | When it is sent | Payload fields |
|---|---|---|
log_ | A new Daily Log is saved. Adding to the same log again sends nothing. | log_id, job_id, job_name, user_id, user_name, log_date, work_performed, photo_count, customer_photo_count, has_unexpected_work, customer_update_cadence, notify_user_idswork_performed is a list of short lines. customer_photo_count counts the photos the homeowner can see. |
media_ | A photo is stored (within a few minutes), or a video has finished processing. | media_id, job_id, type, duration_secondstype is photo or video; duration_seconds is null for a photo. |
media_ | A closed Job's photos and videos will be removed within 30 days. | job_id, job_name, due_on, media_count |
scope_ | The office saves the hours, materials and value of a Change Order made from a Daily Log's scope flag, the first time. | job_id, log_id, hours, materials, estimated_value, media_ids, change_order_idestimated_value is whole cents. media_ids are the photos and videos on that Daily Log, and an empty list when it has none. |
scope_ | A Daily Log reads like work outside the agreed scope, when it is written or when it is edited to say so. | log_id, job_id, reason, confidence, quoted_textconfidence is 0 to 1, and null when a person marked it. |
Subs/Vendors
| Event | When it is sent | Payload fields |
|---|---|---|
sub_ | A sub is told they are on a Schedule Item of a schedule that is online. Once per sub per item. | job_id, job_name, item_id, title, sub_id, company, start_date, end_date, notesNo portal link: the sub's email carries one, and a link is a credential that must not be copied into other systems. |
sub_ | A sub's liability or workers comp certificate is 30 days from expiring (to the sub), 7 days (to managers), or has expired (to both). Once per stage. | sub_id, company, kind, label, expires_on, days_remaining, audience, stagestage is 30, 7 or expired; days_remaining is negative once expired. |
sub_ | A sub confirms a Schedule Item in their portal. | sub_id, company, item_id, title, start_date, end_date, job_id, job_name, responded_at, confirmed_at, reasonreason is always null here. |
sub_ | A sub reports a conflict with a Schedule Item, with a reason. | sub_id, company, item_id, title, start_date, end_date, job_id, job_name, responded_at, reason |
sub_ | A sub uploads a certificate or agreement in their portal and the file is stored. Once per Business the sub works for. | sub_id, company, document_id, document_typedocument_type is liability, workers_comp or agreement. |
sub_ | Something a linked sub sees changed with no other sub event: an item's title or notes, the Job's name, address or notes for subs, or the schedule taken offline or published. Raised only for subs linked to their own NexaTrack account. | job_id, job_name, item_id, title, sub_id, company, linked, reasonreason is changed, job_changed, offline or published. item_id and title are absent when the whole Job changed. |
sub_ | The notes of an item a sub was told about change, while the item is shown to subs. | job_id, job_name, item_id, title, notes, sub_id, company |
sub_ | The dates of an item a sub was told about move. | job_id, job_name, item_id, title, sub_id, company, old_start, new_start, old_end, new_end |
sub_ | A sub who was told about an item is taken off it, the item is deleted, or it is hidden from subs. | job_id, job_name, item_id, title, start_date, end_date, sub_id, company, reason, ics_sequencereason is unassigned, deleted or hidden. ics_sequence is the calendar cancellation's sequence number, when one was sent. |
Tasks
| Event | When it is sent | Payload fields |
|---|---|---|
task_ | A Task gets an assignee, when it is made or later, including a switched-off person's Tasks handed to someone else. | job_id, job_name, task_id, title, assignee_type, assignee_id, due_date |
task_ | A Task is marked done. | job_id, job_name, task_id, title, actor_user_id, actor_name, created_by, assignee_type, assignee_idA Task completed by answering or closing a Customer Request sends no event of its own. |
task_ | A done Task is reopened. | job_id, job_name, task_id, title, actor_user_id, actor_name, created_by, assignee_type, assignee_id |
task_ | An assigned Task's due date changes and its assignee does not. | job_id, job_name, task_id, title, actor_user_id, actor_name, assignee_type, assignee_id, old_due_date, due_date |
Listed, but not sent today
The webhook form offers these names, but nothing in NexaTrack sends them yet. Subscribing does no harm; nothing will arrive until a release says so on the changelog.
customer.update_sent, job.closeout_study_ready, job_reopened_warranty, quote_requested, scan_submitted, tasks_generated