---
title: "Register owner-agent webhook"
method: POST
path: "/v1/owner/webhooks"
tags: ["Moderated Actions"]
---

# Register owner-agent webhook

`POST /v1/owner/webhooks`

## Request

- Base URL: `https://loppee.com`
- URL: `https://loppee.com/v1/owner/webhooks`
- Auth: HTTP bearer

Registers an HTTPS owner-agent webhook endpoint after SSRF validation and returns the signing secret once.

## Request body

- OwnerWebhookRegistrationRequest
  - `business_id` string
  - `url` string, required
  - `event_types` string[]

## Response `200`

OwnerWebhookRegistrationResponse

- OwnerWebhookRegistrationResponse
  - `status` 'registered' | 'rotated', required
  - `endpoint` OwnerWebhookEndpoint, required
    - `id` string, required
    - `businessId` string, required
    - `url` string, required
    - `eventTypeSubscriptions` string[], required
    - `enabled` boolean, required
    - `failureCount` number, required
    - `lastDeliveryAt` string, nullable, required
    - `createdAt` string, required
    - `updatedAt` string, required
  - `signing_secret` string, required
  - `one_time_display` unknown, required

## Other responses

- `400`: ErrorResponse
- `401`: ErrorResponse
- `403`: ErrorResponse
- `429`: RateLimitError
- `default`: ErrorResponse

---

[API](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents.md) · [All operations](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/revisions/37285f7cddcd?raw)
