Webhook map
locationscanceled(locations.canceled)closed(locations.closed)created(locations.created)updated(locations.updated)
HTTP handler setup
app/api/webhook/route.ts
Events
Locations
Canceled
locations.canceled
A Moz Local location was canceled; carries the location_id to read with local.locations.lookup
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Closed
locations.closed
A Moz Local location was closed (permanently closed); carries the location_id to read with local.locations.lookup
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Created
locations.created
A Moz Local location was created; carries the location_id to read with local.locations.lookup
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Updated
locations.updated
A Moz Local location was updated; carries the location_id to read with local.locations.lookup
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example