Automation - Call Webhook Action
Last updated: November 17, 2026
The Call webhook automation action sends an HTTP POST request with a JSON body to a URL you choose whenever the automation's trigger fires. It works with every trigger type.
For step-by-step setup, see How to Setup Outbound Webhooks with Coperniq Automations.
Configuration
Field | Type | Required | Description |
|---|---|---|---|
Webhook URL | Text (URL) | Yes | The endpoint that receives the |
Delivery
Method:
POSTContent-Type:
application/jsonTimeout: 5 seconds
Retries: if the request fails, times out, or returns a status outside the
2xxrange, Coperniq retries once after about 1 second.Authentication: none is added, and custom headers aren't supported. To protect your endpoint, include a secret token in the URL as a query parameter.
Because a request can be retried, your endpoint may occasionally receive the same event twice. Use event.eventId to detect duplicates.
Payload structure
Every request body has the same top-level shape:
{
"workOrder": { ... }, // only for work order triggers
"record": { ... }, // the project, opportunity or account
"event": { ... } // always present
}Key | Type | Description |
|---|---|---|
| object or omitted | Present only for work order triggers. A snapshot of the work order. |
| object or omitted | Present when the trigger relates to a record (project, opportunity or account). A snapshot of that record. |
| object | Always present. Describes what happened, plus |
workOrder object
Included only for the Work Order Created, Work Order Marked Complete and Work Order Status Updated triggers. For all other triggers this key is left out of the JSON.
Field | Type | Description |
|---|---|---|
| number | Work order ID |
| string | Work order title |
| string or null | Work order description |
| datetime or null | Scheduled start |
| datetime or null | Scheduled end |
| datetime | When the work order was created |
| datetime | When the work order was last changed |
| number or null | Priority level |
| number | ID of the parent record (project, opportunity or account) |
| datetime or null | When the work order was completed |
| string | Current status: |
| number or null | User ID of the primary assignee |
| number | Work order number |
| boolean | Whether this is a field (on-site) work order |
| boolean | Whether the start date is all-day |
| boolean | Whether the end date is all-day |
record object
The project, opportunity or account the automation ran on.
Field | Type | Description |
|---|---|---|
| number | Record ID |
| datetime | When the record was created |
| datetime | When the record was last updated |
| string | Record title |
| string or null | Street address |
| object or null | Coordinates |
|
| Jurisdiction (AHJ), if set |
|
| Current workflow stage, if set |
|
| Record type (see below) |
| number or null | Record value |
| number or null | Owner's user ID |
| string or null | City |
| string or null | State or province |
| string array or null | Trades |
| string or null | Projects only: |
| string or null | Opportunities only: |
| string or null | Primary contact email |
| string or null | Primary contact phone |
| number | Record number |
Record types
| Shown in Coperniq as |
|---|---|
| Project |
| Opportunity |
| Account |
| Vendor |
event object
Always present. Every event includes these fields:
Field | Type | Description |
|---|---|---|
| number | ID of the record the trigger fired on |
| string | Machine-readable trigger name, for example |
| string | Readable trigger name, for example |
| number | Unique ID for this automation run. Use it to spot duplicate deliveries. |
| datetime | When the webhook was sent (UTC) |
Some triggers add more fields, listed below.
Fields added by each trigger
Work order triggers
These triggers include workOrderId in event and also send the workOrder object.
Work Order Created (TASK_CREATED)
Field | Type | Description |
|---|---|---|
| number | ID of the new work order |
| number | Status at creation |
| number or null | Usually null for new work orders |
Work Order Marked Complete (TASK_COMPLETED)
Field | Type | Description |
|---|---|---|
| number | ID of the completed work order |
Work Order Status Updated (TASK_STATUS_MOVEMENT)
Field | Type | Description |
|---|---|---|
| number | ID of the work order |
| number | New status |
| number | Previous status |
Record created
Project Created (
PROJECT_CREATED): no extra fields.record.typeisPROJECT.Opportunity Created (
REQUEST_CREATED): no extra fields.record.typeisDEAL.
Creating an account doesn't fire either trigger.
Status updated
Project Status Updated (
PROJECT_STATUS_MOVEMENT): no extra fields. The new status is inrecord.status.Opportunity Status Updated (
DEAL_STATUS_MOVEMENT): no extra fields. The new status is inrecord.requestStatus.
Property updated
Project Property Updated (
PROJECT_PROPERTY_UPDATED): no extra fields.record.typeisPROJECT.Opportunity Property Updated (
DEAL_PROPERTY_UPDATED): no extra fields.record.typeisDEAL.
Phase SLA violated
Project Phase SLA Violated (PROJECT_PHASE_SLA_VIOLATION) and Opportunity Phase SLA Violated (DEAL_PHASE_SLA_VIOLATION)
Field | Type | Description |
|---|---|---|
| datetime | When the SLA was violated |
| string | Which SLA was violated |
| number | ID of the phase template |
Appointments
Appointment Created (APPOINTMENT_CREATED)
Field | Type | Description |
|---|---|---|
| number | ID of the appointment |
| datetime | Appointment date |
Appointment Rescheduled (APPOINTMENT_RESCHEDULED)
Field | Type | Description |
|---|---|---|
| number | ID of the appointment |
| datetime | New date |
| datetime | Previous date |
Phases
Project Phase Started / Completed (PROJECT_PHASE_STARTED, PROJECT_PHASE_COMPLETED) and Opportunity Phase Started / Completed (REQUEST_PHASE_STARTED, REQUEST_PHASE_COMPLETED)
Field | Type | Description |
|---|---|---|
| number | ID of this phase on the record |
| number | ID of the phase template |
| string | Phase type |
| string |
|
Calls
Call Created or Updated (
CALL_UPSERTED): no extra fields. The related record is inrecord.
Summary by trigger
Trigger |
| Extra |
|---|---|---|
Work Order Created | Yes |
|
Work Order Marked Complete | Yes |
|
Work Order Status Updated | Yes |
|
Project Created | No | none |
Opportunity Created | No | none |
Project Status Updated | No | none |
Opportunity Status Updated | No | none |
Project Property Updated | No | none |
Opportunity Property Updated | No | none |
Project Phase SLA Violated | No |
|
Opportunity Phase SLA Violated | No |
|
Appointment Created | No |
|
Appointment Rescheduled | No |
|
Project Phase Started / Completed | No |
|
Opportunity Phase Started / Completed | No |
|
Call Created or Updated | No | none |
Example payloads
Values below are examples.
Work order status updated on a project
{
"workOrder": {
"id": 4521,
"title": "Install Solar Panels - Phase 2",
"description": "Complete rooftop panel installation for east wing",
"startDate": "2026-03-25T08:00:00.000Z",
"endDate": "2026-03-27T17:00:00.000Z",
"createdAt": "2026-03-20T14:30:00.000Z",
"modifiedAt": "2026-03-27T10:15:00.000Z",
"priority": 2,
"recordId": 1892,
"completionDate": null,
"status": "WORKING",
"assigneeId": 42,
"uid": 4893,
"isField": true,
"startDateAllDay": false,
"endDateAllDay": false
},
"record": {
"id": 1892,
"createdAt": "2026-02-10T09:00:00.000Z",
"updatedAt": "2026-03-27T10:15:00.000Z",
"title": "Smith Residence - 10kW Solar Install",
"address": "123 Maple Street",
"geoLocation": { "lat": 33.749, "lng": -84.388 },
"jurisdiction": { "id": 5, "name": "Fulton County" },
"stage": { "id": 12, "name": "Installation" },
"type": "PROJECT",
"dealValue": 28500,
"ownerId": 7,
"city": "Atlanta",
"state": "GA",
"trades": ["Solar"],
"status": "ACTIVE",
"requestStatus": null,
"primaryEmail": "jsmith@example.com",
"primaryPhone": "+14045551234",
"uid": 1234
},
"event": {
"workOrderId": 4521,
"recordId": 1892,
"triggerKey": "TASK_STATUS_MOVEMENT",
"triggerName": "Work Order status updated",
"currentStatus": 3,
"previousStatus": 2,
"eventId": 98765,
"firedAt": "2026-03-27T10:15:32.000Z"
}
}Opportunity created
{
"record": {
"id": 2034,
"createdAt": "2026-03-27T11:00:00.000Z",
"updatedAt": "2026-03-27T11:00:00.000Z",
"title": "Johnson Residence - Solar Consultation",
"address": "456 Oak Avenue",
"geoLocation": { "lat": 34.052, "lng": -118.244 },
"stage": { "id": 1, "name": "New Lead" },
"type": "DEAL",
"dealValue": 15000,
"ownerId": 3,
"city": "Los Angeles",
"state": "CA",
"trades": ["Solar"],
"status": null,
"requestStatus": "NEW",
"primaryEmail": "bjohnson@example.com",
"primaryPhone": "+13105559876",
"uid": 1349
},
"event": {
"recordId": 2034,
"triggerKey": "REQUEST_CREATED",
"triggerName": "Opportunity created",
"eventId": 98770,
"firedAt": "2026-03-27T11:00:05.000Z"
}
}Project phase SLA violated
{
"record": {
"id": 1750,
"createdAt": "2026-01-15T10:00:00.000Z",
"updatedAt": "2026-03-26T08:00:00.000Z",
"title": "Garcia Commercial - 50kW System",
"address": "789 Industrial Blvd",
"geoLocation": { "lat": 29.760, "lng": -95.370 },
"jurisdiction": { "id": 8, "name": "Harris County" },
"stage": { "id": 15, "name": "Permitting" },
"type": "PROJECT",
"dealValue": 95000,
"ownerId": 11,
"city": "Houston",
"state": "TX",
"trades": ["Solar", "Electrical"],
"status": "ACTIVE",
"requestStatus": null,
"primaryEmail": "garcia@example.com",
"primaryPhone": "+17135557890",
"uid": 1215
},
"event": {
"recordId": 1750,
"triggerKey": "PROJECT_PHASE_SLA_VIOLATION",
"triggerName": "Project Phase SLA violated",
"overdueAt": "2026-03-26T08:00:00.000Z",
"slaType": "completion",
"phaseTemplateId": 22,
"eventId": 98780,
"firedAt": "2026-03-27T00:05:00.000Z"
}
}