Rotate a CRM webhook secret
curl --request POST \
--url https://api.pineyard.ai/crm/connections/{id}/webhook-secret/rotate \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/crm/connections/{id}/webhook-secret/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/crm/connections/{id}/webhook-secret/rotate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"secret": "<string>"
}CRM
Rotate a CRM webhook secret
Generate (or rotate) the webhook secret for a CRM connection. The plaintext secret is returned EXACTLY ONCE — display it immediately and never expose it via any other endpoint.
POST
/
crm
/
connections
/
{id}
/
webhook-secret
/
rotate
Rotate a CRM webhook secret
curl --request POST \
--url https://api.pineyard.ai/crm/connections/{id}/webhook-secret/rotate \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/crm/connections/{id}/webhook-secret/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/crm/connections/{id}/webhook-secret/rotate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"secret": "<string>"
}
