---
title: "Rotate an automation webhook secret"
method: POST
path: "/api/v0/automations/{automationId}/webhook/rotate"
tags: ["Automations"]
---

# Rotate an automation webhook secret

`POST /api/v0/automations/{automationId}/webhook/rotate`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/automations/{automationId}/webhook/rotate`
- Auth: HTTP bearer

Invalidates the current webhook secret and returns a replacement exactly once. Requires permission to change the automation; any other automation answers 404.

## Path parameters

- `automationId` string, required: Automation ID

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- RotateAutomationWebhook200ResponseBody
  - `webhook` object, required
    - `url` string, required
    - `secret` string
    - `fingerprint` string, required

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-12** `b6a46c415079`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/automations/:automationId/webhook/rotate/post.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
