KrosAI Docs
DashboardGet Started
  • Getting Started
    • Introduction
    • Quickstart Guide
    • Authentication
  • OpenAI SDK Compatability
  • Endpoints
    • Completions API
      • Create Chat Completion
    • Translation API
    • Text Summarization API
    • Audio Transcription API
    • Sentiment Analysis API
  • AGENT
    • Agents API
      • Create Agent
      • List Agents
      • Get Agent
      • Update Agent
      • Delete Agent
      • Start Voice Session
    • Conversations API
      • Create Conversation
      • List Conversations
      • Get Conversation
      • Get Conversation Messages
    • Knowledge Base API
      • Create Knowledge Base
      • List Knowledge Base
      • Upload Document
      • List Document
  • Resources
    • AI Voice Agents
    • In-App Voice Assistants
    • Virtual Health Assistants
    • EdTech Language Tutors
  • SDKS
    • Node.JS SDK
    • React Native SDK
    • Flutter
Powered by GitBook
On this page
  • Endpoint
  • Parameters
  • Authentication
  • Response
  • Example Request
  • Error Responses
  • Notes
  1. AGENT
  2. Agents API

Delete Agent

Permanently removes an agent and its configuration.

Endpoint

DELETE /v1/agents/{agent_id}

Parameters

Parameter
Type
Required
Description

agent_id

string

Yes

Unique identifier of the agent to delete

Authentication

Requires a valid API key or user authentication token.

Response

Returns a success message when the agent is deleted.

Response Format

{
  "message": "Agent deleted successfully"
}

Example Request

curl -X DELETE "https://api.krosai.com/v1/agents/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -H "Authorization: Bearer YOUR_API_KEY"

Error Responses

Status Code
Description

401

Unauthorized - Invalid or missing API key

403

Forbidden - Not authorized to delete this agent

404

Not Found - Agent with the specified ID does not exist

500

Internal Server Error

Notes

  • This action cannot be undone.

  • Active voice sessions with this agent will be terminated.

  • Historical conversation data associated with this agent will remain accessible.

  • Knowledge bases linked to this agent are not deleted.

PreviousUpdate AgentNextStart Voice Session

Last updated 2 months ago