NexaTrack
NexaTrack for developers

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.

FieldMeaning
event_idA unique id for the event. A retry carries the same one: de-duplicate on it.
typeThe event, such as clock_in.
versionAlways 1. A field added later does not change it.
tenant_idThe account.
entity_idThe Business, or null for an account-wide event (people, keys, AI apps, exports, webhooks).
job_idThe Job, when the event is about one; otherwise null.
occurred_atWhen NexaTrack recorded the event (UTC). An event can carry its own, earlier time, such as clock_in_at.
actor_user_idThe 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.
payloadThe event's own fields, listed below.
messagesEvery 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_countHow many messages there are.
contact_email, contact_phone, contact_crm_idThe 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.
summaryThe 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

EventWhen it is sentPayload fields
ai.approval_closedA 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.approval_waitingAn 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, approver
via names the app or key; summary is the approval's one-line description; risk is outward or sensitive; approver is person or owner.
ai.credential_createdSomeone connects an AI app, or an owner makes an API key.kind, name, person_id, person_name, connection_id
kind is key or connection; connection_id only for a connection.
webhook.pausedA webhook pauses after failing too many times in a row (20 today).endpoint_id, url, failures
The paused webhook itself receives nothing more, this event included, so subscribe a second address to hear it.

Estimates, Invoices and payments

EventWhen it is sentPayload fields
change_order.acceptedThe 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_applied
contract_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_order.declinedThe signer declines a Change Order, with a reason.change_order_id, job_id, job_name, number, title, total_cents, reason, contact_id
change_order.sentThe 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_ids
total_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_memo.issuedThe 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.acceptedThe 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, method
total_cents is the accepted total, with the options the signer chose. method is portal or recorded_external.
estimate.declinedThe signer declines a Proposal, with a reason.estimate_id, job_id, job_name, number, title, reason, contact_id
estimate.sentThe 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_ids
Money 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.viewedSomeone it was sent to opens a Proposal for the first time.estimate_id, job_id, contact_id
invoice.disputedA 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_at
A dispute lost raises invoice.payment_returned with failure_code dispute_lost; one won counts the payment again.
invoice.payment_failedA 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_code
failure_code is Stripe's, such as insufficient_funds. A card declined on Stripe's page raises nothing: the client tries again there.
invoice.payment_processingA 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_code
payment_id is null until the payment succeeds, which raises invoice.payment_succeeded.
invoice.payment_returnedA 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.payment_succeededA 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_ids
method 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.refundedSome or all of a payment is given back.invoice_id, payment_id, refund_id, job_id, job_name, number, amount_cents, balance_cents
invoice.reminder_dueAn 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.sentThe 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_ids
kind is deposit, draw, progress, final, retainage_release or manual. total_cents is after retainage held and with tax.
invoice.viewedSomeone 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_order.approvedThe 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, method
method is portal or recorded_external. It counts as committed from now.
purchase_order.completeThe 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_order.declinedThe 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_order.releasedThe 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_ids
delivery is no_sign_off (emailed) or none (no email; contact_ids is empty). It counts as committed from now.
purchase_order.sentThe 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_ids
total_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_order.voidThe 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

EventWhen it is sentPayload fields
client_update.readyClient Update drafts are ready for a Business to review, once per run.count, jobs
jobs is a list of {job_id, job_name, period}.
client_update.sentThe office sends a Client Update to a Job's client.client_update_id, job_id, job_name, contact_id, title, body, photo_count
contact.createdA 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_id
origin 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.updatedA 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, origin
changed_fields lists what changed.
customer.invitedA client on a Job is invited to their portal.job_id, job_name, contact_id, contact_name
No portal link, for the reason given under sub_assigned.
customer.request_answeredThe 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.request_createdA 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_name
kind 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

EventWhen it is sentPayload fields
clock_inSomeone 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_ids
clock_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_outSomeone 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_switch
duration_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.auto_closedA Shift left open past the Business's longest Shift is closed automatically.time_entry_id, user_id, job_id, job_name, closed_at
shift.clockout_reminderAn 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_local
auto_close_at_local is a time such as 8:00 PM in the Business's time zone.
shift.overtime_startedA 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_period_closedA pay week that had Shifts ends. Once per Business per week.entity_id, period_start, period_end, unapproved_count, totals, overtime_group
totals is a list of {user_id, regular, overtime, double_overtime} in hours. overtime_group lists the Businesses whose hours count together for overtime.

Schedule

EventWhen it is sentPayload fields
crew_assignedA 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_unassignedA 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, reason
reason is unassigned or deleted.
reminder_dueIn 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_item_changedA 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_ids
assignees is a list of {type, id}, type being user or sub.
schedule_item_notes_changedA 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_ids
notify_user_ids is the crew pushed about it: told about the item, on work not completed and not ended.
schedule_publishedA 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

EventWhen it is sentPayload fields
document_addedA document is filed on a Job.document_id, job_id, job_name, folder, name, version
folder is Plans, Specs, Permits, Contracts or Other. version goes up when a document replaces another with the same name.
export.readyAn export the owner asked for is ready to download.export_id, user_id, expires_at, file_count, bytes
job_createdA Job is created. A template is not.job_id, job_name, entity_id, status, job_type, address, customer_contact_id, from_template_id
job_note.createdA 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, level
level is managers or everyone_on_job. The note's title and words are never sent. Nobody is told by NexaTrack.
job_note.deletedA shared note on a Job is removed.note_id, job_id, level
job_note.updatedA 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, level
The fields of job_note.created. A note taken back to Only me sends nothing, so it is not a removal.
job_status_changedA Job's status changes.job_id, job_name, from_status, to_status, cost_study_summary
Statuses 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

EventWhen it is sentPayload fields
key.createdAn API key is made.key_id, name, scopes, created_by
key.revokedAn API key is revoked, including when its person is switched off.key_id, name, reason, revoked_by
reason is there when the key stopped because its person was switched off; revoked_by only when NexaTrack revoked it.
user.deactivatedA person is switched off.user_id, deactivated_by, reassigned_to, counts, closed_shifts
closed_shifts lists the Shifts closed at that moment. Their keys and connections stop at once.
user.email_changedA person's new sign-in email is confirmed.user_id, old_email, new_email, changed_by
user.invitedA person is added to the account.user_id, invited_by, memberships
memberships is a list of {entity_id, role, visible_statuses}; invited_by is a name.
user.reactivatedA switched-off person is brought back.user_id, reactivated_by

Daily Logs and photos

EventWhen it is sentPayload fields
log_submittedA 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_ids
work_performed is a list of short lines. customer_photo_count counts the photos the homeowner can see.
media_addedA photo is stored (within a few minutes), or a video has finished processing.media_id, job_id, type, duration_seconds
type is photo or video; duration_seconds is null for a photo.
media_purge_pendingA closed Job's photos and videos will be removed within 30 days.job_id, job_name, due_on, media_count
scope_flag_quantifiedThe 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_id
estimated_value is whole cents. media_ids are the photos and videos on that Daily Log, and an empty list when it has none.
scope_flag_raisedA 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_text
confidence is 0 to 1, and null when a person marked it.

Subs/Vendors

EventWhen it is sentPayload fields
sub_assignedA 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, notes
No portal link: the sub's email carries one, and a link is a credential that must not be copied into other systems.
sub_compliance_expiringA 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, stage
stage is 30, 7 or expired; days_remaining is negative once expired.
sub_confirmedA 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, reason
reason is always null here.
sub_conflictA 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_document_uploadedA 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_type
document_type is liability, workers_comp or agreement.
sub_item_updatedSomething 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, reason
reason is changed, job_changed, offline or published. item_id and title are absent when the whole Job changed.
sub_notes_changedThe 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_schedule_changedThe 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_unassignedA 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_sequence
reason is unassigned, deleted or hidden. ics_sequence is the calendar cancellation's sequence number, when one was sent.

Tasks

EventWhen it is sentPayload fields
task_assignedA 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_completedA Task is marked done.job_id, job_name, task_id, title, actor_user_id, actor_name, created_by, assignee_type, assignee_id
A Task completed by answering or closing a Customer Request sends no event of its own.
task_reopenedA done Task is reopened.job_id, job_name, task_id, title, actor_user_id, actor_name, created_by, assignee_type, assignee_id
task_rescheduledAn 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