Webhooks

Manage webhook endpoints for real-time events

GET/api/v1/webhooks

List webhooks

Returns all configured webhook endpoints. Requires admin or owner role.

curl https://api.offly.net/api/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY"
Try it

Do not use production API keys on shared devices. Keys are stored in memory only.

POST/api/v1/webhooks

Create a webhook

Creates a new webhook endpoint. Requires admin or owner role.

Request body

FieldTypeDescription
url*string(uri)
events*array

Response

FieldTypeDescription
idstring(uuid)
urlstring(uri)
eventsarray
is_activeboolean
secretstringOnly returned on creation
created_atstring(date-time)
curl -X POST https://api.offly.net/api/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Try it

Do not use production API keys on shared devices. Keys are stored in memory only.

PATCH/api/v1/webhooks/{id}

Update a webhook

Parameters

Parameters

NameTypeInDescription
id*string(uuid)path

Request body

FieldTypeDescription
urlstring(uri)
eventsarray
is_activeboolean

Response

FieldTypeDescription
idstring(uuid)
urlstring(uri)
eventsarray
is_activeboolean
secretstringOnly returned on creation
created_atstring(date-time)
curl -X PATCH https://api.offly.net/api/v1/webhooks/{id} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Try it

Do not use production API keys on shared devices. Keys are stored in memory only.

DELETE/api/v1/webhooks/{id}

Delete a webhook

Parameters

Parameters

NameTypeInDescription
id*string(uuid)path
curl -X DELETE https://api.offly.net/api/v1/webhooks/{id} \
  -H "Authorization: Bearer YOUR_API_KEY"
Try it

Do not use production API keys on shared devices. Keys are stored in memory only.