---
title: "Rotate owner-agent webhook secret"
method: POST
path: "/v1/owner/webhooks/{endpoint_id}/rotate-secret"
tags: ["Moderated Actions"]
---

# Rotate owner-agent webhook secret

`POST /v1/owner/webhooks/{endpoint_id}/rotate-secret`

## Request

- Base URL: `https://loppee.com`
- URL: `https://loppee.com/v1/owner/webhooks/{endpoint_id}/rotate-secret`
- Auth: HTTP bearer

Rotates one owner-agent webhook signing secret and returns the replacement once.

## Path parameters

- `endpoint_id` string, required

## Request body

- EmptyRequest

## 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)
