---
title: "Register an HTTPS endpoint"
method: POST
path: "/v1/webhooks"
tags: ["Cabinet"]
---

# Register an HTTPS endpoint

`POST /v1/webhooks`

## Request

- Base URL: `https://api.pillwise.dev`
- URL: `https://api.pillwise.dev/v1/webhooks`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, required: HTTPS on a public address. Private, shared, link-local, metadata and internal names are refused here and again at every delivery (the name is resolved then), and redirects are not followed.
  - `events` string[]

## Response `201`

Subscription created; secret shown once

## Other responses

- `400`: invalid_url, invalid_events, or webhook_limit

---

[API](https://skmtc.dev/pillwise/apis/pillwise-api.md) · [All operations](https://skmtc.dev/pillwise/apis/pillwise-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pillwise/apis/pillwise-api/revisions/2c2ca705f9ef?raw)
