Webhooks

Create a webhook destination endpoint

This operation creates a destination endpoint for webhooks events.

post/webhooks/endpoints

Request

  • Base URL
    https://api.sprucehealth.com/v1
  • Auth
    HTTP bearer

Headers

s-idempotency-keystring

A unique value generated by the client used to recognize subsequent retries of the same request. Idempotency keys can be up to 255 characters long.

Request body

namestring required

The name of the webhook destination endpoint

urlstring url required

The URL of the webhook destination endpoint

Example request

{
  "name": "My Webhook Endpoint",
  "url": "https://example.com/webhook"
}

Response

The newly created webhook destination endpoint

Example response

{
  "endpoint": {
    "createdAt": "2020-04-01T00:00:00Z",
    "id": "wde_01HWDG5ADNBGJ3XXXXXFP8P1GH",
    "name": "My Webhook Endpoint",
    "signingSecrets": [
      {
        "id": "wss_01HWDG5ADNBGXXXXXY07DP8"
      }
    ],
    "url": "https://example.com/webhook"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.