Chat with AI assistant

POST https://app.cyrion.ai/api/chat

Chat with an AI assistant that has access to your scan data.

The AI can answer questions about:

  • Scans: status, targets, configurations
  • Vulnerabilities: discovered security issues, severity, PoCs, remediation
  • Agents: their tasks, status, and activities
  • Activity: tool executions and their results
  • Statistics: LLM usage, costs, scan performance
  • Scheduled Scans: upcoming and completed scheduled scans
  • CVEs: Common Vulnerabilities and Exposures information

Request body

  • attachments (object[]): File attachments (text files, images)
  • context_data (object): Context data from the active tab
  • context_type (string): Type of context: 'agents', 'activity', 'vulnerabilities', 'scans', 'scheduled_scans', 'statistics', 'general'
  • conversation_history (object[]): Previous messages in the conversation
  • message (string, required): User message
  • query_database (boolean): Whether to query the database for context-aware responses
  • scan_name (string): Current scan name to query specific data from
  • thinking (boolean): Enable extended thinking mode for complex analysis
  • web_search (boolean): Enable web search for additional context

Responses

  • 200 Successful Response
  • 422 Validation Error