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 POST request. Must be a valid URL.

Delivery

  • Method: POST

  • Content-Type: application/json

  • Timeout: 5 seconds

  • Retries: if the request fails, times out, or returns a status outside the 2xx range, 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

workOrder

object or omitted

Present only for work order triggers. A snapshot of the work order.

record

object or omitted

Present when the trigger relates to a record (project, opportunity or account). A snapshot of that record.

event

object

Always present. Describes what happened, plus eventId and firedAt.

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

id

number

Work order ID

title

string

Work order title

description

string or null

Work order description

startDate

datetime or null

Scheduled start

endDate

datetime or null

Scheduled end

createdAt

datetime

When the work order was created

modifiedAt

datetime

When the work order was last changed

priority

number or null

Priority level

recordId

number

ID of the parent record (project, opportunity or account)

completionDate

datetime or null

When the work order was completed

status

string

Current status: QUEUED, ASSIGNED, SCHEDULED, DISPATCHED, ON_THE_WAY, CLOCKED_IN, WORKING, WAITING, CLOCKED_OUT, CHANGES_REQUESTED, REVIEW, SUBMITTED, COMPLETED or CANCELLED

assigneeId

number or null

User ID of the primary assignee

uid

number

Work order number

isField

boolean

Whether this is a field (on-site) work order

startDateAllDay

boolean

Whether the start date is all-day

endDateAllDay

boolean

Whether the end date is all-day

record object

The project, opportunity or account the automation ran on.

Field

Type

Description

id

number

Record ID

createdAt

datetime

When the record was created

updatedAt

datetime

When the record was last updated

title

string

Record title

address

string or null

Street address

geoLocation

object or null

Coordinates

jurisdiction

{ id, name } or omitted

Jurisdiction (AHJ), if set

stage

{ id, name } or omitted

Current workflow stage, if set

type

PROJECT, DEAL, ACCOUNT or VENDOR

Record type (see below)

dealValue

number or null

Record value

ownerId

number or null

Owner's user ID

city

string or null

City

state

string or null

State or province

trades

string array or null

Trades

status

string or null

Projects only: ACTIVE, ON_HOLD, CANCELLED or COMPLETED

requestStatus

string or null

Opportunities only: NEW, APPOINTMENT_SCHEDULED, APPOINTMENT_COMPLETED or OVERDUE

primaryEmail

string or null

Primary contact email

primaryPhone

string or null

Primary contact phone

uid

number

Record number

Record types

record.type

Shown in Coperniq as

PROJECT

Project

DEAL

Opportunity

ACCOUNT

Account

VENDOR

Vendor

event object

Always present. Every event includes these fields:

Field

Type

Description

recordId

number

ID of the record the trigger fired on

triggerKey

string

Machine-readable trigger name, for example TASK_CREATED

triggerName

string

Readable trigger name, for example Work Order created

eventId

number

Unique ID for this automation run. Use it to spot duplicate deliveries.

firedAt

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

workOrderId

number

ID of the new work order

currentStatus

number

Status at creation

previousStatus

number or null

Usually null for new work orders

Work Order Marked Complete (TASK_COMPLETED)

Field

Type

Description

workOrderId

number

ID of the completed work order

Work Order Status Updated (TASK_STATUS_MOVEMENT)

Field

Type

Description

workOrderId

number

ID of the work order

currentStatus

number

New status

previousStatus

number

Previous status

Record created

  • Project Created (PROJECT_CREATED): no extra fields. record.type is PROJECT.

  • Opportunity Created (REQUEST_CREATED): no extra fields. record.type is DEAL.

Creating an account doesn't fire either trigger.

Status updated

  • Project Status Updated (PROJECT_STATUS_MOVEMENT): no extra fields. The new status is in record.status.

  • Opportunity Status Updated (DEAL_STATUS_MOVEMENT): no extra fields. The new status is in record.requestStatus.

Property updated

  • Project Property Updated (PROJECT_PROPERTY_UPDATED): no extra fields. record.type is PROJECT.

  • Opportunity Property Updated (DEAL_PROPERTY_UPDATED): no extra fields. record.type is DEAL.

Phase SLA violated

Project Phase SLA Violated (PROJECT_PHASE_SLA_VIOLATION) and Opportunity Phase SLA Violated (DEAL_PHASE_SLA_VIOLATION)

Field

Type

Description

overdueAt

datetime

When the SLA was violated

slaType

string

Which SLA was violated

phaseTemplateId

number

ID of the phase template

Appointments

Appointment Created (APPOINTMENT_CREATED)

Field

Type

Description

appointmentId

number

ID of the appointment

dueDate

datetime

Appointment date

Appointment Rescheduled (APPOINTMENT_RESCHEDULED)

Field

Type

Description

appointmentId

number

ID of the appointment

dueDate

datetime

New date

previousDueDate

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

phaseInstanceId

number

ID of this phase on the record

phaseTemplateId

number

ID of the phase template

phaseType

string

Phase type

status

string

in_progress or completed

Calls

  • Call Created or Updated (CALL_UPSERTED): no extra fields. The related record is in record.

Summary by trigger

Trigger

workOrder sent?

Extra event fields

Work Order Created

Yes

workOrderId, currentStatus, previousStatus

Work Order Marked Complete

Yes

workOrderId

Work Order Status Updated

Yes

workOrderId, currentStatus, previousStatus

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

overdueAt, slaType, phaseTemplateId

Opportunity Phase SLA Violated

No

overdueAt, slaType, phaseTemplateId

Appointment Created

No

appointmentId, dueDate

Appointment Rescheduled

No

appointmentId, dueDate, previousDueDate

Project Phase Started / Completed

No

phaseInstanceId, phaseTemplateId, phaseType, status

Opportunity Phase Started / Completed

No

phaseInstanceId, phaseTemplateId, phaseType, status

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"
  }
}