---
title: "Create a webhook (secret returned once)"
method: POST
path: "/webhooks"
tags: ["webhooks"]
---

# Create a webhook (secret returned once)

`POST /webhooks`

## Request

- Base URL: `https://qrflow.codes/api/v1`
- URL: `https://qrflow.codes/api/v1/webhooks`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, uri, required
  - `events` string[], required
  - `description` string

## Response `201`

Created

- object
  - `webhook` Webhook
    - `id` string
    - `url` string
    - `events` string[]
    - `active` boolean
    - `last_status` integer, nullable
    - `last_delivery_at` string, nullable
    - `consecutive_failures` integer
    - `secret` string: Only on create

## Other responses

- `402`: Needs Business

---

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