/webhooks/v1/webhook-endpointsReturns a paginated list of webhook endpoints for the authenticated network.
limitintMaximum number of items to return
startingAfterstringCursor for pagination. Pass the ID of the last item from the previous page.
Success
{
"data": {
"items": [
{
"id": "wh_abc123",
"networkId": "n_abc123",
"url": "https://example.com/webhook",
"enabledEvents": [
"ocpp.message"
],
"status": "active",
"createdAt": "2023-06-07T17:32:28Z"
}
],
"hasMore": true
}
}/webhooks/v1/webhook-endpointsCreates a new webhook endpoint for receiving event notifications. The webhook secret is only returned once at creation time - store it securely.
urlstringrequired
The URL where webhook events will be delivered
enabledEventsarrayrequired
List of event types to subscribe to
The type of event that triggers the webhook
statusstringThe status of the webhook endpoint
{
"url": "https://example.com/webhook",
"enabledEvents": [
"ocpp.message"
],
"status": "active"
}Webhook endpoint created successfully
{
"data": {
"id": "wh_abc123",
"networkId": "n_abc123",
"url": "https://example.com/webhook",
"enabledEvents": [
"ocpp.message"
],
"status": "active",
"secret": "whsec_abc123def456...",
"createdAt": "2023-06-07T17:32:28Z"
}
}/webhooks/v1/webhook-endpoints/{id}Retrieves a specific webhook endpoint by ID. The webhook secret is not included in the response.
idstringrequired
The webhook endpoint ID
Success
{
"data": {
"id": "wh_abc123",
"networkId": "n_abc123",
"url": "https://example.com/webhook",
"enabledEvents": [
"ocpp.message"
],
"status": "active",
"createdAt": "2023-06-07T17:32:28Z"
}
}/webhooks/v1/webhook-endpoints/{id}Permanently deletes a webhook endpoint. This action cannot be undone.
idstringrequired
The webhook endpoint ID
Webhook endpoint deleted successfully
Empty response
/webhooks/v1/webhook-endpoints/{id}Updates the enabledEvents and/or status of a webhook endpoint.
enabledEventsarrayList of event types to subscribe to
The type of event that triggers the webhook
statusstringThe status of the webhook endpoint
{
"enabledEvents": [
"ocpp.message"
],
"status": "active"
}Webhook endpoint updated successfully
{
"data": {
"id": "wh_abc123",
"networkId": "n_abc123",
"url": "https://example.com/webhook",
"enabledEvents": [
"ocpp.message"
],
"status": "active",
"createdAt": "2023-06-07T17:32:28Z"
}
}Was this page helpful?