Skip to main content
POST
/
api
/
v1
/
agents
/
{id}
/
deactivate
Deactivate agent (alias unpublish)
curl --request POST \
  --url https://api.callaro.ai/api/v1/agents/{id}/deactivate \
  --header 'Authorization: Bearer <token>'
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.callaro.ai/api/v1/agents/{id}/deactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.callaro.ai/api/v1/agents/{id}/deactivate"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
{
  "data": {},
  "message": "<string>",
  "meta": {},
  "request_id": "<string>"
}
{
"error": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"details": {},
"errors": [
"<string>"
]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Deactivated

data
object | null
message
string | null
meta
object | null
request_id
string | null