---
title: "Create a webhook destination endpoint"
method: POST
path: "/webhooks/endpoints"
tags: ["Webhooks"]
---

# Create a webhook destination endpoint

`POST /webhooks/endpoints`

This operation creates a destination endpoint for webhooks events.

## Headers

- `s-idempotency-key` string

## Request body

- WebhookDestinationEndpointInput
  - `name` string, required — The name of the webhook destination endpoint
  - `url` string, url, required — The URL of the webhook destination endpoint

## Response `200`

The newly created webhook destination endpoint

- object
  - `endpoint` WebhookDestinationEndpoint, required
    - `createdAt` string, date-time, required — The date the destination endpoint was created
    - `id` string, required — The id of a webhook destination endpoint
    - `name` string — The name of the webhook destination endpoint
    - `object` string, required — String representing the object's type
    - `signingSecrets` WebhookSigningSecret[], required
      - `id` string, required — The ID of the signing secret
      - `value` string, required — The signing secret
    - `status` string, required — The status of the webhook destination endpoint
    - `url` string, url, required — The URL of the webhook destination endpoint

## Other responses

- `400` — bad request
- `500` — unexpected error

---

[API](https://skmtc.net/sprucehealth/apis/spruce-health-api.md) · [All operations](https://skmtc.net/sprucehealth/apis/spruce-health-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sprucehealth/spruce-health-api/revisions/988e298cd9fd/schema)
