Issue a new secret key. The previous key stops working immediately.
curl --request POST \
--url https://api.pineyard.ai/chatbots/{id}/rotate-key \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/chatbots/{id}/rotate-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/chatbots/{id}/rotate-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"chatbotId": "<string>",
"secret": "<string>",
"last4": "<string>"
}Chatbots
Issue a new secret key. The previous key stops working immediately.
POST
/
chatbots
/
{id}
/
rotate-key
Issue a new secret key. The previous key stops working immediately.
curl --request POST \
--url https://api.pineyard.ai/chatbots/{id}/rotate-key \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/chatbots/{id}/rotate-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/chatbots/{id}/rotate-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"chatbotId": "<string>",
"secret": "<string>",
"last4": "<string>"
}Required scope:
chatbots.edit
Requires chatbots enabled on your account. Otherwise the request is refused; see Errors.

