Skip to main content
POST
/
webhooks
/
v1
/
endpoints
/
{id}
/
rotate_secret
curl -X POST "https://api.case.dev/webhooks/v1/endpoints/%3Cstring%3E/rotate_secret" \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "previousSecretExpiresInSec": 0 }'

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Body

application/json
previousSecretExpiresInSec
integer

How long (seconds) the old secret continues to be accepted. 0 invalidates immediately. Default: 86400 (24h).

Required range: 0 <= x <= 2592000

Response

Secret rotated