webhooks

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-webhooks"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/51ca7721-27ee-4eb6-916a-ef9e6383800c/social-card.svg?v=3e7ae33eec8b" alt="webhooks" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/webhooksScope settings:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
created_atstringrequired
enabledbooleanrequired
eventsstring[]required
Subscribed event types; empty means all.
idstringrequired
namestringrequired
prev_secret_expires_atstring
While in the future, deliveries carry a signature for the previous secret too.
project_idstringrequired
urlstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/webhooksScope settings:write

Parameters

project_idstringpathrequired

Request body

application/json
enabledboolean
eventsstring[]
Event types; empty or omitted means all.
namestring
secretstring
Optional 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_atstringrequired
enabledbooleanrequired
eventsstring[]required
Subscribed event types; empty means all.
idstringrequired
namestringrequired
prev_secret_expires_atstring
While in the future, deliveries carry a signature for the previous secret too.
project_idstringrequired
urlstringrequired
secretstring
Shown once (the generated secret, or the one you supplied); stored envelope-encrypted.
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/webhooks/event-typesScope settings:read

Parameters

project_idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/webhooks/{id}Scope settings:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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_atstringrequired
enabledbooleanrequired
eventsstring[]required
Subscribed event types; empty means all.
idstringrequired
namestringrequired
prev_secret_expires_atstring
While in the future, deliveries carry a signature for the previous secret too.
project_idstringrequired
urlstringrequired
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/webhooks/{id}Scope settings:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/webhooks/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/webhooks/{id}Scope settings:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
enabledboolean
eventsarray
namestring
urlstring
{
  "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

Responses

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/webhooks/{id}/deliveriesScope settings:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
attemptsintegerrequired
created_atstringrequired
delivered_atstring
endpoint_idstringrequired
event_idstringrequired
event_typestringrequired
idstringrequired
last_errorstring
last_statusinteger
next_attempt_atstring
Retry time while status is pending; null once the delivery is final (delivered or failed).
response_msinteger
Milliseconds the last attempt took to get an HTTP response; null when no response came back (no request sent, disabled endpoint, connection failure).
statusstringrequired
pending | delivered | failed
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/webhooks/{id}/rotate-secretScope settings:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json

Optional

overlap_hoursinteger
Hours 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.

Same as 201 · POST /v1/projects/{project_id}/webhooks

400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/webhooks/{id}/testScope settings:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
attemptsintegerrequired
created_atstringrequired
delivered_atstring
endpoint_idstringrequired
event_idstringrequired
event_typestringrequired
idstringrequired
last_errorstring
last_statusinteger
next_attempt_atstring
Retry time while status is pending; null once the delivery is final (delivered or failed).
response_msinteger
Milliseconds the last attempt took to get an HTTP response; null when no response came back (no request sent, disabled endpoint, connection failure).
statusstringrequired
pending | delivered | failed
403
404
Updated