> ## Documentation Index
> Fetch the complete documentation index at: https://docs.curbwaste.com/llms.txt
> Use this file to discover all available pages before exploring further.

# location.created

> Delivered when a location is created, through the API, MCP, or CurbWaste. Reusing an existing active location sends no event.



## OpenAPI

````yaml /openapi/webhooks.openapi.json post /webhooks/location.created
openapi: 3.1.0
info:
  title: CurbWaste Webhooks
  version: 1.0.0
  description: >-
    Outbound HTTPS deliveries CurbWaste POSTs to your registered endpoint.
    Documented as synthetic `/webhooks/{event}` paths for Mintlify rendering —
    these are not partner-callable routes. Authenticate deliveries with HMAC
    (`X-CurbWaste-Signature`), not a Bearer API key. Register endpoints in the
    Developer Platform. Envelope `data` is the public resource profile for
    customers and locations, or the full price list with SKUs and charges for
    `pricelist.created`.
servers: []
security: []
tags:
  - name: Customer events
    description: Emitted after successful public customer writes
  - name: Location events
    description: Emitted after successful public location writes that change data
  - name: Pricelist events
    description: Emitted after successful public customer pricelist creates
paths:
  /webhooks/location.created:
    post:
      tags:
        - Location events
      summary: location.created
      description: >-
        **Outbound webhook** — CurbWaste `POST`s this envelope to your
        registered HTTPS URL. This path is documentation-only (not a partner API
        route).


        Delivered when a location is created, through the API, MCP, or
        CurbWaste. Reusing an existing active location sends no event.
      operationId: webhookLocationCreated
      parameters:
        - $ref: '#/components/parameters/XCurbWasteSignature'
        - $ref: '#/components/parameters/XCurbWasteEventId'
        - $ref: '#/components/parameters/XCurbWasteEventType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookEventEnvelopeLocation'
            example:
              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
      responses:
        '200':
          description: >-
            Acknowledge receipt. Prefer `204` or `200` promptly so the delivery
            succeeds.
components:
  parameters:
    XCurbWasteSignature:
      name: X-CurbWaste-Signature
      in: header
      required: true
      description: >-
        HMAC signature header: `t=<unix_seconds>,s=<hex>`. Signed payload is
        `{timestamp}.{rawBody}` with HMAC-SHA256.
      schema:
        type: string
        example: t=1723053600,s=abcdef0123456789
    XCurbWasteEventId:
      name: X-CurbWaste-Event-Id
      in: header
      required: true
      description: Same value as envelope `id` (`evt_…`). Prefer for idempotency.
      schema:
        type: string
        example: evt_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
    XCurbWasteEventType:
      name: X-CurbWaste-Event-Type
      in: header
      required: true
      description: Same value as envelope `type`.
      schema:
        type: string
        example: customer.created
  schemas:
    WebhookEventEnvelopeLocation:
      type: object
      properties:
        id:
          type: string
          description: Event id (`evt_…`)
          example: evt_bbbbbbbb-cccc-dddd-eeee-ffffffffffff
        type:
          type: string
          enum:
            - location.created
            - location.updated
        createdAt:
          type: string
          format: date-time
          description: When the event was emitted
        companyId:
          type: string
          format: uuid
          description: >-
            CurbWaste company the event belongs to. Use it to route events when
            one endpoint serves several companies.
        data:
          $ref: '#/components/schemas/PublicLocation'
      required:
        - id
        - type
        - createdAt
        - data
        - companyId
    PublicLocation:
      type: object
      description: >-
        Same public location profile as REST location responses (`data`).
        Optional `reused` / `reactivated` may appear on create/reuse paths.
      properties:
        id:
          type: string
          format: uuid
        customerId:
          type: string
          format: uuid
          description: Customer UUID (`Customer.id`), not the Customer ID (customerNumber)
        name:
          type:
            - string
            - 'null'
        status:
          type: string
        locationNote:
          type:
            - string
            - 'null'
        purchaseOrderNumber:
          type:
            - string
            - 'null'
        address:
          $ref: '#/components/schemas/PublicLocationAddress'
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
        reused:
          type: boolean
          description: >-
            Always present; false unless a create reused or reactivated an
            existing site.
        reactivated:
          type: boolean
          description: >-
            Always present; false unless a create reused or reactivated an
            existing site.
      required:
        - id
        - customerId
        - name
        - status
        - locationNote
        - purchaseOrderNumber
        - address
        - createdAt
        - updatedAt
        - reused
        - reactivated
    PublicLocationAddress:
      type: object
      properties:
        address:
          type:
            - string
            - 'null'
        city:
          type:
            - string
            - 'null'
        state:
          type:
            - string
            - 'null'
        zipcode:
          type:
            - string
            - 'null'
        streetNo:
          type:
            - string
            - 'null'
        county:
          type:
            - string
            - 'null'
        borough:
          type:
            - string
            - 'null'
        geoPlaceId:
          type:
            - string
            - 'null'
        latitude:
          type:
            - number
            - 'null'
        longitude:
          type:
            - number
            - 'null'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.