DELETE
/
conversations
/
{id}
curl --request DELETE \
  --url https://dash.superagentes.ai/api/conversations/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "conversation-id-1",
  "deleted": true
}

Excluir Conversa

Este endpoint permite excluir permanentemente uma conversa específica do sistema.

Casos de uso

  • Remover conversas obsoletas ou desnecessárias
  • Limpar dados de teste ou desenvolvimento
  • Gerenciar o armazenamento de dados
  • Implementar políticas de retenção de dados

Exemplos de código

const deleteConversation = async (conversationId) => {
  const response = await fetch(`https://dash.superagentes.ai/api/conversations/${conversationId}`, {
    method: 'DELETE',
    headers: {
      'Authorization': `Bearer ${seu_token_jwt}`,
      'Content-Type': 'application/json'
    }
  });
  
  const data = await response.json();
  return data;
};

// Exemplo de uso
deleteConversation('conversation-id-1');

Exemplo de resposta

{
  "id": "conversation-id-1",
  "deleted": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID da conversa

Response

200
application/json
Conversa excluída

The response is of type object.