Webhook events
location.created
Delivered when a location is created, through the API, MCP, or CurbWaste. Reusing an existing active location sends no event.
location.created
curl --request POST \
--url https://api.example.com/webhooks/location.created \
--header 'Content-Type: application/json' \
--header 'X-CurbWaste-Event-Id: <x-curbwaste-event-id>' \
--header 'X-CurbWaste-Event-Type: <x-curbwaste-event-type>' \
--header 'X-CurbWaste-Signature: <x-curbwaste-signature>' \
--data '
{
"id": "evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff",
"type": "location.created",
"createdAt": "2026-09-16T18:00:00.000Z",
"data": {
"id": "11111111-2222-3333-4444-555555555555",
"customerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Main Yard",
"status": "ACTIVE",
"locationNote": null,
"purchaseOrderNumber": null,
"address": {
"address": "123 Main St",
"city": "Austin",
"state": "TX",
"zipcode": "78701",
"streetNo": "123",
"county": null,
"borough": null,
"geoPlaceId": null,
"latitude": 30.2672,
"longitude": -97.7431
},
"createdAt": "2026-09-16T18:00:00.000Z",
"updatedAt": "2026-09-16T18:00:00.000Z",
"reused": false,
"reactivated": false
}
}
'import requests
url = "https://api.example.com/webhooks/location.created"
payload = {
"id": "evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff",
"type": "location.created",
"createdAt": "2026-09-16T18:00:00.000Z",
"data": {
"id": "11111111-2222-3333-4444-555555555555",
"customerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Main Yard",
"status": "ACTIVE",
"locationNote": None,
"purchaseOrderNumber": None,
"address": {
"address": "123 Main St",
"city": "Austin",
"state": "TX",
"zipcode": "78701",
"streetNo": "123",
"county": None,
"borough": None,
"geoPlaceId": None,
"latitude": 30.2672,
"longitude": -97.7431
},
"createdAt": "2026-09-16T18:00:00.000Z",
"updatedAt": "2026-09-16T18:00:00.000Z",
"reused": False,
"reactivated": False
}
}
headers = {
"X-CurbWaste-Signature": "<x-curbwaste-signature>",
"X-CurbWaste-Event-Id": "<x-curbwaste-event-id>",
"X-CurbWaste-Event-Type": "<x-curbwaste-event-type>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-CurbWaste-Signature': '<x-curbwaste-signature>',
'X-CurbWaste-Event-Id': '<x-curbwaste-event-id>',
'X-CurbWaste-Event-Type': '<x-curbwaste-event-type>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: 'evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff',
type: 'location.created',
createdAt: '2026-09-16T18:00:00.000Z',
data: {
id: '11111111-2222-3333-4444-555555555555',
customerId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
name: 'Main Yard',
status: 'ACTIVE',
locationNote: null,
purchaseOrderNumber: null,
address: {
address: '123 Main St',
city: 'Austin',
state: 'TX',
zipcode: '78701',
streetNo: '123',
county: null,
borough: null,
geoPlaceId: null,
latitude: 30.2672,
longitude: -97.7431
},
createdAt: '2026-09-16T18:00:00.000Z',
updatedAt: '2026-09-16T18:00:00.000Z',
reused: false,
reactivated: false
}
})
};
fetch('https://api.example.com/webhooks/location.created', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/webhooks/location.created",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff',
'type' => 'location.created',
'createdAt' => '2026-09-16T18:00:00.000Z',
'data' => [
'id' => '11111111-2222-3333-4444-555555555555',
'customerId' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'name' => 'Main Yard',
'status' => 'ACTIVE',
'locationNote' => null,
'purchaseOrderNumber' => null,
'address' => [
'address' => '123 Main St',
'city' => 'Austin',
'state' => 'TX',
'zipcode' => '78701',
'streetNo' => '123',
'county' => null,
'borough' => null,
'geoPlaceId' => null,
'latitude' => 30.2672,
'longitude' => -97.7431
],
'createdAt' => '2026-09-16T18:00:00.000Z',
'updatedAt' => '2026-09-16T18:00:00.000Z',
'reused' => false,
'reactivated' => false
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-CurbWaste-Event-Id: <x-curbwaste-event-id>",
"X-CurbWaste-Event-Type: <x-curbwaste-event-type>",
"X-CurbWaste-Signature: <x-curbwaste-signature>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/webhooks/location.created"
payload := strings.NewReader("{\n \"id\": \"evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff\",\n \"type\": \"location.created\",\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"data\": {\n \"id\": \"11111111-2222-3333-4444-555555555555\",\n \"customerId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Main Yard\",\n \"status\": \"ACTIVE\",\n \"locationNote\": null,\n \"purchaseOrderNumber\": null,\n \"address\": {\n \"address\": \"123 Main St\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zipcode\": \"78701\",\n \"streetNo\": \"123\",\n \"county\": null,\n \"borough\": null,\n \"geoPlaceId\": null,\n \"latitude\": 30.2672,\n \"longitude\": -97.7431\n },\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"updatedAt\": \"2026-09-16T18:00:00.000Z\",\n \"reused\": false,\n \"reactivated\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-CurbWaste-Signature", "<x-curbwaste-signature>")
req.Header.Add("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
req.Header.Add("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/webhooks/location.created")
.header("X-CurbWaste-Signature", "<x-curbwaste-signature>")
.header("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
.header("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff\",\n \"type\": \"location.created\",\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"data\": {\n \"id\": \"11111111-2222-3333-4444-555555555555\",\n \"customerId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Main Yard\",\n \"status\": \"ACTIVE\",\n \"locationNote\": null,\n \"purchaseOrderNumber\": null,\n \"address\": {\n \"address\": \"123 Main St\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zipcode\": \"78701\",\n \"streetNo\": \"123\",\n \"county\": null,\n \"borough\": null,\n \"geoPlaceId\": null,\n \"latitude\": 30.2672,\n \"longitude\": -97.7431\n },\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"updatedAt\": \"2026-09-16T18:00:00.000Z\",\n \"reused\": false,\n \"reactivated\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webhooks/location.created")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CurbWaste-Signature"] = '<x-curbwaste-signature>'
request["X-CurbWaste-Event-Id"] = '<x-curbwaste-event-id>'
request["X-CurbWaste-Event-Type"] = '<x-curbwaste-event-type>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff\",\n \"type\": \"location.created\",\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"data\": {\n \"id\": \"11111111-2222-3333-4444-555555555555\",\n \"customerId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Main Yard\",\n \"status\": \"ACTIVE\",\n \"locationNote\": null,\n \"purchaseOrderNumber\": null,\n \"address\": {\n \"address\": \"123 Main St\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zipcode\": \"78701\",\n \"streetNo\": \"123\",\n \"county\": null,\n \"borough\": null,\n \"geoPlaceId\": null,\n \"latitude\": 30.2672,\n \"longitude\": -97.7431\n },\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"updatedAt\": \"2026-09-16T18:00:00.000Z\",\n \"reused\": false,\n \"reactivated\": false\n }\n}"
response = http.request(request)
puts response.read_bodyHeaders
Body
application/json
Response
200
Acknowledge receipt. Prefer 204 or 200 promptly so the delivery succeeds.
⌘I
location.created
curl --request POST \
--url https://api.example.com/webhooks/location.created \
--header 'Content-Type: application/json' \
--header 'X-CurbWaste-Event-Id: <x-curbwaste-event-id>' \
--header 'X-CurbWaste-Event-Type: <x-curbwaste-event-type>' \
--header 'X-CurbWaste-Signature: <x-curbwaste-signature>' \
--data '
{
"id": "evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff",
"type": "location.created",
"createdAt": "2026-09-16T18:00:00.000Z",
"data": {
"id": "11111111-2222-3333-4444-555555555555",
"customerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Main Yard",
"status": "ACTIVE",
"locationNote": null,
"purchaseOrderNumber": null,
"address": {
"address": "123 Main St",
"city": "Austin",
"state": "TX",
"zipcode": "78701",
"streetNo": "123",
"county": null,
"borough": null,
"geoPlaceId": null,
"latitude": 30.2672,
"longitude": -97.7431
},
"createdAt": "2026-09-16T18:00:00.000Z",
"updatedAt": "2026-09-16T18:00:00.000Z",
"reused": false,
"reactivated": false
}
}
'import requests
url = "https://api.example.com/webhooks/location.created"
payload = {
"id": "evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff",
"type": "location.created",
"createdAt": "2026-09-16T18:00:00.000Z",
"data": {
"id": "11111111-2222-3333-4444-555555555555",
"customerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Main Yard",
"status": "ACTIVE",
"locationNote": None,
"purchaseOrderNumber": None,
"address": {
"address": "123 Main St",
"city": "Austin",
"state": "TX",
"zipcode": "78701",
"streetNo": "123",
"county": None,
"borough": None,
"geoPlaceId": None,
"latitude": 30.2672,
"longitude": -97.7431
},
"createdAt": "2026-09-16T18:00:00.000Z",
"updatedAt": "2026-09-16T18:00:00.000Z",
"reused": False,
"reactivated": False
}
}
headers = {
"X-CurbWaste-Signature": "<x-curbwaste-signature>",
"X-CurbWaste-Event-Id": "<x-curbwaste-event-id>",
"X-CurbWaste-Event-Type": "<x-curbwaste-event-type>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-CurbWaste-Signature': '<x-curbwaste-signature>',
'X-CurbWaste-Event-Id': '<x-curbwaste-event-id>',
'X-CurbWaste-Event-Type': '<x-curbwaste-event-type>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: 'evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff',
type: 'location.created',
createdAt: '2026-09-16T18:00:00.000Z',
data: {
id: '11111111-2222-3333-4444-555555555555',
customerId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
name: 'Main Yard',
status: 'ACTIVE',
locationNote: null,
purchaseOrderNumber: null,
address: {
address: '123 Main St',
city: 'Austin',
state: 'TX',
zipcode: '78701',
streetNo: '123',
county: null,
borough: null,
geoPlaceId: null,
latitude: 30.2672,
longitude: -97.7431
},
createdAt: '2026-09-16T18:00:00.000Z',
updatedAt: '2026-09-16T18:00:00.000Z',
reused: false,
reactivated: false
}
})
};
fetch('https://api.example.com/webhooks/location.created', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/webhooks/location.created",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff',
'type' => 'location.created',
'createdAt' => '2026-09-16T18:00:00.000Z',
'data' => [
'id' => '11111111-2222-3333-4444-555555555555',
'customerId' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'name' => 'Main Yard',
'status' => 'ACTIVE',
'locationNote' => null,
'purchaseOrderNumber' => null,
'address' => [
'address' => '123 Main St',
'city' => 'Austin',
'state' => 'TX',
'zipcode' => '78701',
'streetNo' => '123',
'county' => null,
'borough' => null,
'geoPlaceId' => null,
'latitude' => 30.2672,
'longitude' => -97.7431
],
'createdAt' => '2026-09-16T18:00:00.000Z',
'updatedAt' => '2026-09-16T18:00:00.000Z',
'reused' => false,
'reactivated' => false
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-CurbWaste-Event-Id: <x-curbwaste-event-id>",
"X-CurbWaste-Event-Type: <x-curbwaste-event-type>",
"X-CurbWaste-Signature: <x-curbwaste-signature>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/webhooks/location.created"
payload := strings.NewReader("{\n \"id\": \"evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff\",\n \"type\": \"location.created\",\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"data\": {\n \"id\": \"11111111-2222-3333-4444-555555555555\",\n \"customerId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Main Yard\",\n \"status\": \"ACTIVE\",\n \"locationNote\": null,\n \"purchaseOrderNumber\": null,\n \"address\": {\n \"address\": \"123 Main St\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zipcode\": \"78701\",\n \"streetNo\": \"123\",\n \"county\": null,\n \"borough\": null,\n \"geoPlaceId\": null,\n \"latitude\": 30.2672,\n \"longitude\": -97.7431\n },\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"updatedAt\": \"2026-09-16T18:00:00.000Z\",\n \"reused\": false,\n \"reactivated\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-CurbWaste-Signature", "<x-curbwaste-signature>")
req.Header.Add("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
req.Header.Add("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/webhooks/location.created")
.header("X-CurbWaste-Signature", "<x-curbwaste-signature>")
.header("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
.header("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff\",\n \"type\": \"location.created\",\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"data\": {\n \"id\": \"11111111-2222-3333-4444-555555555555\",\n \"customerId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Main Yard\",\n \"status\": \"ACTIVE\",\n \"locationNote\": null,\n \"purchaseOrderNumber\": null,\n \"address\": {\n \"address\": \"123 Main St\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zipcode\": \"78701\",\n \"streetNo\": \"123\",\n \"county\": null,\n \"borough\": null,\n \"geoPlaceId\": null,\n \"latitude\": 30.2672,\n \"longitude\": -97.7431\n },\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"updatedAt\": \"2026-09-16T18:00:00.000Z\",\n \"reused\": false,\n \"reactivated\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webhooks/location.created")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CurbWaste-Signature"] = '<x-curbwaste-signature>'
request["X-CurbWaste-Event-Id"] = '<x-curbwaste-event-id>'
request["X-CurbWaste-Event-Type"] = '<x-curbwaste-event-type>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff\",\n \"type\": \"location.created\",\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"data\": {\n \"id\": \"11111111-2222-3333-4444-555555555555\",\n \"customerId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Main Yard\",\n \"status\": \"ACTIVE\",\n \"locationNote\": null,\n \"purchaseOrderNumber\": null,\n \"address\": {\n \"address\": \"123 Main St\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zipcode\": \"78701\",\n \"streetNo\": \"123\",\n \"county\": null,\n \"borough\": null,\n \"geoPlaceId\": null,\n \"latitude\": 30.2672,\n \"longitude\": -97.7431\n },\n \"createdAt\": \"2026-09-16T18:00:00.000Z\",\n \"updatedAt\": \"2026-09-16T18:00:00.000Z\",\n \"reused\": false,\n \"reactivated\": false\n }\n}"
response = http.request(request)
puts response.read_body