---
title: "Rotate webhook endpoint secret"
method: POST
path: "/webhook-endpoints/{endpointId}/rotate-secret"
tags: ["Webhooks"]
---

# Rotate webhook endpoint secret

`POST /webhook-endpoints/{endpointId}/rotate-secret`

Rotates a webhook endpoint signing secret and returns the new secret exactly once.

## Path parameters

- `endpointId` string, required — Webhook endpoint identifier.

## Request body

- RotateWebhookEndpointSecretBody — Webhook endpoint secret rotation request.
  - `previous_secret_ttl_seconds` integer — Seconds to keep the previous secret active. Maximum is 86400.

## Response `200`

Rotated webhook endpoint secret.

- WebhookEndpointSecretResponse — Webhook endpoint response with one-time plaintext secret.
  - `data` WebhookEndpointSecret, required — Webhook endpoint response with one-time plaintext secret.
    - `created_at` string, date-time, required — Endpoint creation timestamp.
    - `delivery_scope` union, required — Webhook endpoint runtime data recipient.
      - object — Member-targeted endpoint delivery scope.
        - `actor_workspace_membership_id` string, required — Workspace membership the endpoint acts as.
        - `direct_message_delivery_enabled` boolean, required — Whether direct-message events are delivered for conversations the actor belongs to.
        - `type` 'workspace_member', required — Delivery scope type.
      - object — Unsupported workspace export placeholder.
        - `status` 'unsupported' | 'requires_approval' | 'approved', required — Workspace export approval state.
        - `type` 'workspace_export', required — Delivery scope type.
    - `disabled_at` string, date-time, nullable, required — Endpoint disabled timestamp.
    - `enabled_events` string[], required — Product event types delivered to this endpoint.
    - `id` string, required — Webhook endpoint identifier.
    - `name` string, nullable, required — Endpoint label.
    - `object` 'webhook_endpoint', required — Object type.
    - `previous_signing_secret_expires_at` string, date-time, nullable, required — Previous secret expiration timestamp.
    - `signing_secret_prefix` string, required — Display-safe prefix of the active signing secret.
    - `status` 'active' | 'disabled', required — Endpoint status.
    - `updated_at` string, date-time, required — Last update timestamp.
    - `url` string, required — Receiver URL.
    - `workspace_id` string, required — Workspace identifier.
    - `signing_secret` string, required — Plaintext webhook signing secret. Store it immediately.

## Other responses

- `400` — Bad request.
- `401` — Missing or invalid API key.
- `403` — Forbidden.
- `404` — Not found.
- `409` — Conflict.
- `429` — Rate limit or quota exceeded.
- `500` — Internal server error.

---

[API](https://skmtc.net/ando/apis/ando-public-api.md) · [All operations](https://skmtc.net/ando/apis/ando-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ando/ando-public-api/versions/db1553a00d68/schema)
