3 endpoints
Webhooks
Webhook endpoints and event subscriptions
GET
List webhook endpoints
/webhooksRetrieve all configured webhook endpoints.
Code Examples
curl -X GET "https://api.pipesolar.com/v1/webhooks" \
-H "Authorization: Bearer ps_live_..." \
-H "Content-Type: application/json"Playground
GET
/webhooksTry itPOST
Create a webhook endpoint
/webhooksRegister a new URL to receive webhook events.
Request Body
application/json
urlstringrequiredWebhook URL
Example: "https://example.com/webhooks/pipesolar"
eventsarrayrequiredEvent types to subscribe to
Example: "[\"panel.created\", \"alert.triggered\"]"
secretstringSigning secret for verification
Code Examples
curl -X POST "https://api.pipesolar.com/v1/webhooks" \
-H "Authorization: Bearer ps_live_..." \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhooks/pipesolar",
"events": "[\"panel.created\", \"alert.triggered\"]",
"secret": "example"
}'Playground
POST
/webhooksTry itDELETE
Delete a webhook endpoint
/webhooks/{webhook_id}Remove a webhook endpoint and stop receiving events.
Parameters
| Parameter | Type | Description |
|---|---|---|
webhook_idrequired | string | The webhook ID |
Code Examples
curl -X DELETE "https://api.pipesolar.com/v1/webhooks/123" \
-H "Authorization: Bearer ps_live_..." \
-H "Content-Type: application/json"Playground
DELETE
/webhooks/{webhook_id}Try itwebhook_id