Webhook objects on Pathwright represents webhook subscriptions for your school to external services. Individual webhook objects can either fire on one event or all events from your school, depending on your needs.
all
or one of the identifiers (e.g. student.member.created
) available below.{
"id": 4431,
"school": 13,
"event": "all",
"target_url": "https://example.com/webhooks/pathwright",
"created_time": "2017-11-02T21:12:40.707776Z"
}
Pathwright’s public API provides endpoints to manage webhook subscriptions for your school.
Endpoint: https://yourschool.pathwright.com/api/public/webhook/
Method: GET
Lists all active webhook subscriptions in the school.
Returns a collection of Webhook objects.
Endpoint: https://yourschool.pathwright.com/api/public/webhook/
Method: POST
Creates a webhook subscription in the authenticated school to a target URL.
all
for all events.Returns the newly created Webhook object.
{
"id": 4431,
"school": 13,
"event": "all",
"target_url": "https://example.com/webhooks/pathwright",
"created_time": "2017-11-02T21:12:40.707776Z"
}
Endpoint: https://yourschool.pathwright.com/api/public/webhook/{webhook_id}/
Method: DELETE
Deletes a webhook subscription, suspending outgoing events to the given target URL.
204 No Content