webhooks
GET
https://lucidace.com /v1/projects/{project_id}/webhooks Scope settings:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/webhooks"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Endpoint, newest first
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"events": [
"string"
],
"id": "string",
"name": "string",
"prev_secret_expires_at": "2024-01-01T00:00:00Z",
"project_id": "string",
"url": "string"
}
],
"next_cursor": "string"
}Schema
dataEndpoint[]requiredShow child parameters
created_atstringrequiredenabledbooleanrequiredeventsstring[]requiredSubscribed event types; empty means all.
idstringrequirednamestringrequiredprev_secret_expires_atstringWhile in the future, deliveries carry a signature for the previous secret too.
project_idstringrequiredurlstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/webhooks Scope settings:writeParameters
project_idstringpathrequiredRequest body
application/json
enabledbooleaneventsstring[]Event types; empty or omitted means all.
namestringsecretstringOptional signing secret (min 16 characters); generated when omitted.
urlstringrequired{
"enabled": true,
"events": [
"string"
],
"name": "string",
"secret": "string",
"url": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/webhooks" \
-H "Content-Type: application/json" \
-d '{"enabled":true,"events":["string"],"name":"string","secret":"string","url":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"events": [
"string"
],
"id": "string",
"name": "string",
"prev_secret_expires_at": "2024-01-01T00:00:00Z",
"project_id": "string",
"url": "string",
"secret": "string"
}Schema
created_atstringrequiredenabledbooleanrequiredeventsstring[]requiredSubscribed event types; empty means all.
idstringrequirednamestringrequiredprev_secret_expires_atstringWhile in the future, deliveries carry a signature for the previous secret too.
project_idstringrequiredurlstringrequiredsecretstringShown once (the generated secret, or the one you supplied); stored envelope-encrypted.
400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/webhooks/event-types Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/webhooks/event-types"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Array of event type strings
404
GET
https://lucidace.com /v1/projects/{project_id}/webhooks/{id} Scope settings:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/webhooks/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"events": [
"string"
],
"id": "string",
"name": "string",
"prev_secret_expires_at": "2024-01-01T00:00:00Z",
"project_id": "string",
"url": "string"
}Schema
created_atstringrequiredenabledbooleanrequiredeventsstring[]requiredSubscribed event types; empty means all.
idstringrequirednamestringrequiredprev_secret_expires_atstringWhile in the future, deliveries carry a signature for the previous secret too.
project_idstringrequiredurlstringrequired404
DELETE
https://lucidace.com /v1/projects/{project_id}/webhooks/{id} Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/webhooks/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/webhooks/{id} Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
enabledbooleaneventsarraynamestringurlstring{
"enabled": true,
"events": [
"string"
],
"name": "string",
"url": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/webhooks/{id}" \
-H "Content-Type: application/json" \
-d '{"enabled":true,"events":["string"],"name":"string","url":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/webhooks/{id}/deliveries Scope settings:readParameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/webhooks/{id}/deliveries"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Delivery, newest first
Example
{
"data": [
{
"attempts": 0,
"created_at": "2024-01-01T00:00:00Z",
"delivered_at": "2024-01-01T00:00:00Z",
"endpoint_id": "string",
"event_id": "string",
"event_type": "string",
"id": "string",
"last_error": "string",
"last_status": 0,
"next_attempt_at": "2024-01-01T00:00:00Z",
"response_ms": 0,
"status": "string"
}
],
"next_cursor": "string"
}Schema
dataDelivery[]requiredShow child parameters
attemptsintegerrequiredcreated_atstringrequireddelivered_atstringendpoint_idstringrequiredevent_idstringrequiredevent_typestringrequiredidstringrequiredlast_errorstringlast_statusintegernext_attempt_atstringRetry time while
status is pending; null once the delivery is final (delivered or failed).response_msintegerMilliseconds the last attempt took to get an HTTP response; null when no response came back (no request sent, disabled endpoint, connection failure).
statusstringrequiredpending | delivered | failednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/webhooks/{id}/rotate-secret Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
Optional
overlap_hoursintegerHours the replaced secret keeps signing alongside the new one (0 to 168, default 24).
{
"overlap_hours": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/webhooks/{id}/rotate-secret" \
-H "Content-Type: application/json" \
-d '{"overlap_hours":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 The new secret, shown once. Until
prev_secret_expires_at, deliveries carry Lucida-Signature: t=..,v1=<new>,v1=<old>: accept the delivery when any v1 matches.400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/webhooks/{id}/test Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/webhooks/{id}/test"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 The logged test delivery (status
delivered or failed)Example
{
"attempts": 0,
"created_at": "2024-01-01T00:00:00Z",
"delivered_at": "2024-01-01T00:00:00Z",
"endpoint_id": "string",
"event_id": "string",
"event_type": "string",
"id": "string",
"last_error": "string",
"last_status": 0,
"next_attempt_at": "2024-01-01T00:00:00Z",
"response_ms": 0,
"status": "string"
}Schema
attemptsintegerrequiredcreated_atstringrequireddelivered_atstringendpoint_idstringrequiredevent_idstringrequiredevent_typestringrequiredidstringrequiredlast_errorstringlast_statusintegernext_attempt_atstringRetry time while
status is pending; null once the delivery is final (delivered or failed).response_msintegerMilliseconds the last attempt took to get an HTTP response; null when no response came back (no request sent, disabled endpoint, connection failure).
statusstringrequiredpending | delivered | failed403
404
Updated