Skip to content

Create webhook endpoint

POST
/webhook-endpoints
curl --request POST \
--url https://app.buildworkpro.com/api/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "example", "eventTypes": [ "bid.created" ], "description": "example" }'

Creates a new webhook endpoint. The url is SSRF-validated before creation. The signingSecret is returned in the response exactly once — store it now, it cannot be retrieved later.

Idempotency-Key
string format: uuid
<= 255 characters

Idempotent retry key for mutating operations. The first request with a given key executes normally and BuildWorkPro caches the response. Replaying the same key with the same request body (method + path + JSON body, SHA-256 hashed) returns the cached response without re-executing the mutation. Replaying with a DIFFERENT body returns 409 idempotency_key_reused. The cache TTL is 24 hours; after expiry the key is treated as a new operation. Keys are tenant-scoped. Recommended: a fresh UUID v4 per logical operation.

Media type application/json
object
url
required
string
>= 1 characters
eventTypes
required
Array<string>
>= 1 items <= 35 items
Allowed values: bid.created bid.updated bid.deleted bid.accepted bid.acceptance_reverted bid.rejected bid.expired bid.cancelled bid.reopened project.created project.updated project.deleted project.status_changed pay_app.submitted pay_app.approved pay_app.rejected pay_app.paid pay_app.voided pay_app.updated pay_app.deleted change_order.submitted change_order.approved change_order.rejected change_order.voided change_order.updated change_order.deleted contact.created contact.updated contact.deleted lead.created lead.updated lead.deleted product.created product.updated product.deleted
description
string | null
<= 2000 characters

Created

Media type application/json
object
data
required
object
id
required
integer
url
required
string
description
required
string | null
eventTypes
required
Array<string>
isActive
required
boolean
consecutiveFailures
required
integer
lastDeliveredAt
required
Any of:
string format: date-time
disabledAt
required
Any of:
string format: date-time
disabledReason
required
string | null
createdAt
required
Any of:
string format: date-time
updatedAt
required
Any of:
string format: date-time
signingSecret
required
string
meta
required
object
request_id

Server-generated request identifier

string
pagination
object
cursor
required

Opaque cursor for the next page; null when no more results

string | null
has_more
required

Whether more pages are available after this one

boolean
count
required

Items in this page

integer
Example generated
{
"data": {
"id": 1,
"url": "example",
"description": "example",
"eventTypes": [
"example"
],
"isActive": true,
"consecutiveFailures": 1,
"lastDeliveredAt": "2026-04-15T12:00:00Z",
"disabledAt": "2026-04-15T12:00:00Z",
"disabledReason": "example",
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z",
"signingSecret": "example"
},
"meta": {
"request_id": "example",
"pagination": {
"cursor": "example",
"has_more": true,
"count": 1
}
}
}

Validation failed

Media type application/problem+json
object
type
required

URL identifying the problem type

string format: uri
title
required

Short human-readable summary

string
status
required

HTTP status code

integer
detail

Human-readable explanation

string
request_id

Server-generated request identifier

string
errors

Validation error array (422 only)

Array<object>
object
field
required

Field path that failed validation

string
code
required

Validation error code

string
message
required

Human-readable validation message

string
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}