Assistants
Delete an assistant
DELETE/assistants/{assistant_id}
Your default assistant can't be deleted: the request returns 409 with default_assistant.
#Parameters
assistant_idinteger · pathrequired
#Example request
curl -X DELETE https://app.bluepenguin.io/api/v1/assistants/12 \
-H "Authorization: Bearer $BLUEPENGUIN_KEY"const r = await fetch('https://app.bluepenguin.io/api/v1/assistants/12', {
method: 'DELETE',
headers: {
authorization: `Bearer ${process.env.BLUEPENGUIN_KEY}`,
},
})
const data = await r.json()import os, requests
r = requests.delete(
"https://app.bluepenguin.io/api/v1/assistants/12",
headers={"Authorization": f"Bearer {os.environ['BLUEPENGUIN_KEY']}"},
)
data = r.json()#Example response
200 OK
{
"ok": true
}#Errors
| Status | When |
|---|---|
401 | Missing or invalid API key. |
404 | not_found: it doesn't exist or belongs to another business. |
422 | A parameter or field is invalid; the reply lists which. |
429 | More than 240 requests a minute on this key. |