Rotate webhook secret
curl --request POST \
--url https://gengen.farm/api/gengen/v1/webhook-endpoints/{id}/rotate-secret \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/webhook-endpoints/{id}/rotate-secret"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/webhook-endpoints/{id}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"secret": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Webhooks
Rotate webhook secret
Rotate webhook secret. See the Audio API guide for limits, lifecycle and examples. Save the returned secret now; it is shown only once.
POST
/
webhook-endpoints
/
{id}
/
rotate-secret
Rotate webhook secret
curl --request POST \
--url https://gengen.farm/api/gengen/v1/webhook-endpoints/{id}/rotate-secret \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/webhook-endpoints/{id}/rotate-secret"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/webhook-endpoints/{id}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"secret": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}See the Audio API guide for request examples, limits, billing and delivery behavior.