---
title: "Rotate the domain link-signature key"
method: POST
path: "/domains/link-signature-key/{domainId}"
tags: ["Domains"]
---

# Rotate the domain link-signature key

`POST /domains/link-signature-key/{domainId}`

## Request

- Base URL: `https://api.short.io`
- URL: `https://api.short.io/domains/link-signature-key/{domainId}`
- Auth: API key in header `Authorization`

Generates a new per-domain HMAC secret used by the redirector to sign redirect destination URLs, and returns it. Regenerating invalidates the previous key.

## Path parameters

- `domainId` integer, required

## Response `200`

Default Response

- object
  - `linkSignatureKey` string, required: Newly generated per-domain HMAC secret used to sign redirect URLs (si_sig)

## Other responses

- `403`: Default Response

---

[API](https://skmtc.dev/short/apis/short-io-api-2.md) · [All operations](https://skmtc.dev/short/apis/short-io-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/short/apis/short-io-api-2/revisions/9e4e60c560b1?raw)
