Archive an agent (v1)
curl --request DELETE \
--url https://api.pineyard.ai/v1/agents/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/v1/agents/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/v1/agents/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"ok": true
}Agents
Archive an agent (v1)
Archives the agent. Refused with agent_in_use (and the campaignIds) while a running campaign uses it. Archiving an archived agent succeeds. Agents cannot be permanently deleted over the API.
DELETE
/
v1
/
agents
/
{id}
Archive an agent (v1)
curl --request DELETE \
--url https://api.pineyard.ai/v1/agents/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/v1/agents/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/v1/agents/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"ok": true
}Required scope:
agents.delete
Scopes apply to scoped API keys. Keys issued without scopes can call every
/v1 endpoint.
