---
title: "Rotate business-management agent webhook secret"
method: POST
path: "/v1/owner/agents/{agent_id}/webhook/rotate-secret"
tags: ["Business Owner"]
---

# Rotate business-management agent webhook secret

`POST /v1/owner/agents/{agent_id}/webhook/rotate-secret`

## Request

- Base URL: `https://loppee.com`
- URL: `https://loppee.com/v1/owner/agents/{agent_id}/webhook/rotate-secret`
- Auth: HTTP bearer

Human-owner-only recent-AAL2 rotation of the HMAC signing secret. The replacement secret is returned once; the scoped Loppee API/MCP key is separate and unchanged.

## Path parameters

- `agent_id` string, required

## Response `200`

Rotate business-management agent webhook secret response

- object
  - `status` 'registered' | 'rotated', required
  - `endpoint` object, required
    - `id` string, required
    - `connection_kind` 'consumer' | 'management' | 'team', required
    - `account_id` string, required
    - `credential_id` string, required
    - `business_id` string, nullable, required
    - `endpoint_url` string, uri, required
    - `event_types` string[], required
    - `enabled` boolean, required
    - `disabled_reason` string, nullable, required
    - `failure_count` integer, required
    - `last_delivery_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `signing_secret` string, required
  - `one_time_display` unknown, required
  - `delivery_contract` object, required
    - `version` 'loppee.webhook.v1', required
    - `authentication` 'hmac_sha256', required
    - `payload_mode` 'reference_only', required

## Other responses

- `400`: ErrorResponse
- `401`: ErrorResponse
- `403`: ErrorResponse
- `404`: ErrorResponse
- `409`: 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)
