---
title: "Mint a new signing secret for this endpoint"
method: POST
path: "/v1/webhook-endpoints/{endpoint_id}/rotate-secret"
tags: ["Webhooks"]
---

# Mint a new signing secret for this endpoint

`POST /v1/webhook-endpoints/{endpoint_id}/rotate-secret`

## Request

- Base URL: `https://carbonguru.io`
- URL: `https://carbonguru.io/v1/webhook-endpoints/{endpoint_id}/rotate-secret`
- Auth: HTTP bearer

THE SECRET IS IN THIS ANSWER ONLY. The endpoint keeps its id, its URL and its events; deliveries after this call are signed with the new secret.

## Path parameters

- `endpoint_id` string, required

## Response `200`

The new signing secret, stated once.

- object
  - `secret` string, required

## Other responses

- `401`: No valid credential. Every authentication failure returns this one document.
- `403`: A missing scope, an exhausted analysis allowance, or an object that is not the caller's.
- `404`: No such resource.

---

[API](https://skmtc.dev/carbonguru/apis/carbonguru-api.md) · [All operations](https://skmtc.dev/carbonguru/apis/carbonguru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/carbonguru/apis/carbonguru-api/revisions/26dcbe7a8500?raw)
