---
title: "Create a webhook subscription"
method: POST
path: "/me/webhooks"
tags: ["Me"]
---

# Create a webhook subscription

`POST /me/webhooks`

## Request

- Base URL: `https://api.onegoodarea.com`
- URL: `https://api.onegoodarea.com/me/webhooks`
- Auth: HTTP bearer

Register a new webhook URL. Returns the signing secret ONCE.

## Request body

- object
  - `url` string, required
  - `events` string[], required
  - `causes` string[]

## Response `200`

Default Response

- object
  - `id` string, required
  - `url` string, required
  - `events` string[], required
  - `causes` string[], required
  - `secret` string, required
  - `created_at` string, date-time, required

## Other responses

- `201`: Default Response
- `400`: Default Response
- `401`: Default Response

---

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