Webhook endpoints
Manage webhook endpoints through the API. Events, signatures and retries are covered in the webhooks guide.
- GET
/webhooksList webhook endpoints - POST
/webhooksCreate a webhook endpoint - PATCH
/webhooks/{webhookId}Update a webhook endpoint - DELETE
/webhooks/{webhookId}Delete a webhook endpoint - POST
/webhooks/{webhookId}/rotate-secretRotate the signing secret - POST
/webhooks/{webhookId}/testSend a webhook.test event - GET
/webhooks/{webhookId}/deliveriesList recent deliveries - POST
/webhooks/{webhookId}/deliveries/{deliveryId}/redeliverRedeliver an event
List webhook endpoints
GET/webhooks
Scope webhooks:managePermission webhooks:manage
Secrets are never returned. Needs Owner/Admin as token creator and a plan with webhooks.
Response 200
Success.
-
allowedboolean -
eventTypesarray of string -
webhooksarray of WebhookShow 6 attributes
-
idstring -
urlstring -
eventsarray of stringAllowed values:
project.createdproject.updatedproject.archivedproject.deletedtask.createdtask.updatedtask.completedtask.reopenedtask.assignedtask.deletedmilestone.createdmilestone.updatedmilestone.completedcomment.created -
descriptionstring -
enabledboolean -
createdAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl "https://api.getprojectflow.com/v1/webhooks" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/webhooks', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/webhooks",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"allowed": false,
"eventTypes": [
"eventType"
],
"webhooks": [
{
"id": "webhook_1",
"url": "https://app.getprojectflow.com/project/proj_1",
"events": [
"project.created"
],
"description": "Short description",
"enabled": false,
"createdAt": "2026-11-02T09:00:00.000Z"
}
],
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Create a webhook endpoint
POST/webhooks
Scope webhooks:managePermission webhooks:manage
Returns the signing secret once. Max 10 endpoints per workspace. https only, ports 443/8443, no private addresses.
Request body application/json
-
urlstring (uri)requiredHTTPS endpoint.
-
eventsarray of stringrequiredAllowed values:
project.createdproject.updatedproject.archivedproject.deletedtask.createdtask.updatedtask.completedtask.reopenedtask.assignedtask.deletedmilestone.createdmilestone.updatedmilestone.completedcomment.created -
descriptionstring
Response 201
Created.
-
webhookWebhookShow 6 attributes
-
idstring -
urlstring -
eventsarray of stringAllowed values:
project.createdproject.updatedproject.archivedproject.deletedtask.createdtask.updatedtask.completedtask.reopenedtask.assignedtask.deletedmilestone.createdmilestone.updatedmilestone.completedcomment.created -
descriptionstring -
enabledboolean -
createdAtstring (date-time)
-
-
secretstringSigning secret. Shown only in this response.
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/webhooks" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://app.getprojectflow.com/project/proj_1",
"events": [
"project.created"
],
"description": "Short description"
}'const res = await fetch('https://api.getprojectflow.com/v1/webhooks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://app.getprojectflow.com/project/proj_1',
events: [
'project.created'
],
description: 'Short description'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/webhooks",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"url": "https://app.getprojectflow.com/project/proj_1",
"events": [
"project.created"
],
"description": "Short description"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"url": "https://app.getprojectflow.com/project/proj_1",
"events": [
"project.created",
],
"description": "Short description",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"webhook": {
"id": "webhook_1",
"url": "https://app.getprojectflow.com/project/proj_1",
"events": [
"project.created"
],
"description": "Short description",
"enabled": false,
"createdAt": "2026-11-02T09:00:00.000Z"
},
"secret": "secret",
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Update a webhook endpoint
PATCH/webhooks/{webhookId}
Scope webhooks:managePermission webhooks:manage
Path parameters
-
webhookIdstringrequired
Request body application/json
-
urlstring (uri) -
eventsarray of stringAllowed values:
project.createdproject.updatedproject.archivedproject.deletedtask.createdtask.updatedtask.completedtask.reopenedtask.assignedtask.deletedmilestone.createdmilestone.updatedmilestone.completedcomment.created -
descriptionstring -
enabledboolean
Response 200
Success.
-
webhookWebhookShow 6 attributes
-
idstring -
urlstring -
eventsarray of stringAllowed values:
project.createdproject.updatedproject.archivedproject.deletedtask.createdtask.updatedtask.completedtask.reopenedtask.assignedtask.deletedmilestone.createdmilestone.updatedmilestone.completedcomment.created -
descriptionstring -
enabledboolean -
createdAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X PATCH "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://app.getprojectflow.com/project/proj_1",
"description": "Short description",
"enabled": false
}'const res = await fetch('https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://app.getprojectflow.com/project/proj_1',
description: 'Short description',
enabled: false
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"url": "https://app.getprojectflow.com/project/proj_1",
"description": "Short description",
"enabled": False
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"url": "https://app.getprojectflow.com/project/proj_1",
"description": "Short description",
"enabled": false,
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"webhook": {
"id": "webhook_1",
"url": "https://app.getprojectflow.com/project/proj_1",
"events": [
"project.created"
],
"description": "Short description",
"enabled": false,
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Delete a webhook endpoint
DELETE/webhooks/{webhookId}
Scope webhooks:managePermission webhooks:manage
Deletes the endpoint, its secret and its delivery log.
Path parameters
-
webhookIdstringrequired
Response 200
Success.
-
deletedWebhookIdstring
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X DELETE "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.delete(
"https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID")!)
request.httpMethod = "DELETE"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"deletedWebhookId": "deletedwebhook_1",
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Rotate the signing secret
POST/webhooks/{webhookId}/rotate-secret
Scope webhooks:managePermission webhooks:manage
The old secret keeps signing for 24 hours (a second v1= in the signature header).
Path parameters
-
webhookIdstringrequired
Response 200
Success.
-
secretstring -
previousSecretValidUntilstring (date-time) | null
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/rotate-secret" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/rotate-secret', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/rotate-secret",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/rotate-secret")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"secret": "secret",
"previousSecretValidUntil": "2026-11-02T09:00:00.000Z",
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Send a webhook.test event
POST/webhooks/{webhookId}/test
Scope webhooks:managePermission webhooks:manage
Path parameters
-
webhookIdstringrequired
Response 200
Success.
-
okboolean -
deliveryWebhookDeliveryShow 9 attributes
-
idstring -
eventIdstring -
eventTypestring -
statusstringAllowed values:
pendingsucceededfailed -
responseCodeinteger | null -
durationMsinteger -
attemptsinteger -
errorstring | null -
createdAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/test" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/test', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/test",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/test")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"ok": false,
"delivery": {
"id": "webhookdelivery_1",
"eventId": "event_1",
"eventType": "eventType",
"status": "pending",
"responseCode": 1,
"durationMs": 1,
"attempts": 1,
"error": "error",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
List recent deliveries
GET/webhooks/{webhookId}/deliveries
Scope webhooks:managePermission webhooks:manage
Last 50 deliveries, kept 30 days.
Path parameters
-
webhookIdstringrequired
Query parameters
-
limitintegerPage size.
-
cursorstringOpaque cursor from the previous response's
nextCursor.
Response 200
Success.
-
deliveriesarray of WebhookDeliveryShow 9 attributes
-
idstring -
eventIdstring -
eventTypestring -
statusstringAllowed values:
pendingsucceededfailed -
responseCodeinteger | null -
durationMsinteger -
attemptsinteger -
errorstring | null -
createdAtstring (date-time)
-
-
nextCursorstring | null -
totalinteger
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries?limit=50" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries?limit=50', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries?limit=50",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"deliveries": [
{
"id": "webhookdelivery_1",
"eventId": "event_1",
"eventType": "eventType",
"status": "pending",
"responseCode": 1,
"durationMs": 1,
"attempts": 1,
"error": "error",
"createdAt": "2026-11-02T09:00:00.000Z"
}
],
"nextCursor": null,
"total": 1,
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Redeliver an event
POST/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver
Scope webhooks:managePermission webhooks:manage
Resends the same body with a fresh signature.
Path parameters
-
webhookIdstringrequired -
deliveryIdstringrequired
Response 200
Success.
-
okboolean -
deliveryWebhookDeliveryShow 9 attributes
-
idstring -
eventIdstring -
eventTypestring -
statusstringAllowed values:
pendingsucceededfailed -
responseCodeinteger | null -
durationMsinteger -
attemptsinteger -
errorstring | null -
createdAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"ok": false,
"delivery": {
"id": "webhookdelivery_1",
"eventId": "event_1",
"eventType": "eventType",
"status": "pending",
"responseCode": 1,
"durationMs": 1,
"attempts": 1,
"error": "error",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}