---
title: "Roll endpoint secret"
method: PUT
path: "/v1/projects/{projectID}/endpoints/{endpointID}/expire_secret"
tags: ["Endpoints"]
---

# Roll endpoint secret

`PUT /v1/projects/{projectID}/endpoints/{endpointID}/expire_secret`

This endpoint expires and re-generates the endpoint secret.

## Path parameters

- `projectID` string, required
- `endpointID` string, required

## Request body

- ModelsExpireSecret
  - `expiration` integer
  - `secret` string

## Changes

- **2024-01-30** `5a219dba9f40` — 1 info
  - api operation id `ExpireSecret` removed and replaced with ``

[Change history](https://skmtc.dev/frain-dev/apis/convoy-api-reference/changes/v1/projects/:projectID/endpoints/:endpointID/expire_secret/put.md)

---

[API](https://skmtc.dev/frain-dev/apis/convoy-api-reference.md) · [All operations](https://skmtc.dev/frain-dev/apis/convoy-api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/frain-dev/apis/convoy-api-reference/revisions/5a219dba9f40?raw)
