Rotate a destination signing secret
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/destinations/{id}/rotate-secret \
--cookie hookie_session=const options = {method: 'POST', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/destinations/{id}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/destinations/{id}/rotate-secret"
headers = {"cookie": "hookie_session="}
response = requests.post(url, headers=headers)
print(response.text){
"signing_secret": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Destinations
Rotate a destination signing secret
Top-level alias: POST /admin/api/destinations//rotate-secret.
POST
/
admin
/
api
/
projects
/
{pid}
/
destinations
/
{id}
/
rotate-secret
Rotate a destination signing secret
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/destinations/{id}/rotate-secret \
--cookie hookie_session=const options = {method: 'POST', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/destinations/{id}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/destinations/{id}/rotate-secret"
headers = {"cookie": "hookie_session="}
response = requests.post(url, headers=headers)
print(response.text){
"signing_secret": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Path Parameters
Project id (UUID) belonging to the caller workspace.
Destination id.
Response
Rotated, returning the new plaintext secret (status 200, not 201). Sent with Cache-Control: no-store and audited as rotate_destination_secret. Rotation takes effect on the very next delivery, so the receiver must be updated first. No request body is read.
whsec_ followed by 48 hex characters.