curl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish" \
-H "Authorization: Bearer talq_your_environment_token_here"
const response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish', {
method: 'POST',
headers: {
'Authorization': 'Bearer talq_your_environment_token_here'
}
});
const result = await response.json();
import requests
url = "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish"
headers = {"Authorization": "Bearer talq_your_environment_token_here"}
response = requests.post(url, headers=headers)
result = response.json()
{
"success": true,
"message": "Agent unpublished successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "SupportBot",
"current_status": "draft",
"is_ready_to_publish": false,
"updated_at": "2024-01-15T10:55:00Z"
}
}
Agentes
Despublicar Agente
Despublicar um agente para deixá-lo offline sem excluí-lo
POST
/
api
/
v1
/
agents
/
{agent_id}
/
unpublish
curl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish" \
-H "Authorization: Bearer talq_your_environment_token_here"
const response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish', {
method: 'POST',
headers: {
'Authorization': 'Bearer talq_your_environment_token_here'
}
});
const result = await response.json();
import requests
url = "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish"
headers = {"Authorization": "Bearer talq_your_environment_token_here"}
response = requests.post(url, headers=headers)
result = response.json()
{
"success": true,
"message": "Agent unpublished successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "SupportBot",
"current_status": "draft",
"is_ready_to_publish": false,
"updated_at": "2024-01-15T10:55:00Z"
}
}
Despublicar Agente
Despublica um agente para revertê-lo ao estado de rascunho. O agente deixa de receber chamadas de entrada e não pode ser usado para chamadas de saída até ser publicado novamente.Endpoint
POST /api/v1/agents/{agent_id}/unpublish
Parâmetros de caminho
string
obrigatório
O identificador único do agente de voz a ser despublicado.
Cabeçalhos da requisição
string
obrigatório
Token Bearer para autenticação. Formato:
Bearer talq_your_environment_token_hereExemplos
curl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish" \
-H "Authorization: Bearer talq_your_environment_token_here"
const response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish', {
method: 'POST',
headers: {
'Authorization': 'Bearer talq_your_environment_token_here'
}
});
const result = await response.json();
import requests
url = "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/unpublish"
headers = {"Authorization": "Bearer talq_your_environment_token_here"}
response = requests.post(url, headers=headers)
result = response.json()
Resposta
{
"success": true,
"message": "Agent unpublished successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "SupportBot",
"current_status": "draft",
"is_ready_to_publish": false,
"updated_at": "2024-01-15T10:55:00Z"
}
}
Observações
- Despublicar não exclui nenhum dado — o conhecimento do agente, voz, treinamentos, ações e números de telefone são preservados.
- Chamadas ativas que começaram antes do despublish não são interrompidas. Apenas novas chamadas são bloqueadas.
- Para excluir permanentemente um agente, use Excluir Agente.
Esta página foi útil?