---
title: "Rotate Hook Secret"
method: POST
path: "/v1/pretrade-hooks/{hook_id}/rotate-secret"
tags: ["ai-agents-admin"]
---

# Rotate Hook Secret

`POST /v1/pretrade-hooks/{hook_id}/rotate-secret`

## Request

- Base URL: `https://api.tickwire.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tickwire.io/v1/pretrade-hooks/{hook_id}/rotate-secret`
- Auth: none declared

Issue a new signing secret (shown once); the old one stops working.
With ``Idempotency-Key`` a replay rotates nothing and answers ``secret:
null`` with a ``secret_notice``.

## Path parameters

- `hook_id` string, required

## Headers

- `Idempotency-Key` string, nullable
- `X-Actor` string, nullable
- `X-Reason` string, nullable
- `X-API-Key` string, nullable
- `Authorization` string, nullable
- `auth-token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tickwire/apis/tickwire-control-plane.md) · [All operations](https://skmtc.dev/tickwire/apis/tickwire-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/tickwire/apis/tickwire-control-plane/revisions/a4d1386fa23e?raw)
