Retrieve Registered Webhooks

GET /v2/webhooks

Webhooks are HTTP callbacks that notify your application when events happen in SQUAKE's system.
Instead of continuously polling our API, webhooks push data to your endpoint when events occur.

This endpoint returns the list of currently registered webhooks.
See the Integration Documentation for more information.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string(uuid)

      A unique identifier for the webhook, represented as a universally unique identifier (UUID)

    • last_failed_at string | null

      The timestamp of the most recent failed delivery attempt. If no failures have occurred, this field is null

    • last_sent_at string | null

      The timestamp of the most recent successful delivery attempt. If no attempts have been made, this field is null

    • The total number of consecutive failed delivery attempts

    • kind string

      The type of event that triggers the webhook

      Values are order, carbon_activity_expired, confirmation_document_available, or certificate_document_available.

    • endpoint_url string(uri)

      The URL where the webhook payloads are sent. Must be a valid URI that accepts POST requests

GET /v2/webhooks
curl \
 --request GET 'https://api.squake.earth/v2/webhooks' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "kind": "order",
    "signing_key": "TAWHPBAVckH8KmxRtlRX/rQ/mona5vUem7QFtozGHxM=",
    "endpoint_url": "http://example.com",
    "last_sent_at": "2024-08-24T14:15:22Z",
    "last_failed_at": "2024-08-22T14:10:78Z",
    "failed_attempts": 0
  }
]