Skip to content

[FEATURE] REST API endpoint for third-party integration #185

Description

@Rudra-clrscr

Problem

The spam detection system currently only works through its own UI, so other applications, bots, or services can't programmatically use the classifier.

Proposed Solution

Expose a REST API endpoint (e.g., POST /classify) that accepts a message string and returns the classification (Spam / Smishing / Offensive / Ham) along with a confidence score. Include API key-based authentication and basic rate limiting so it can be safely used by external developers.

Acceptance Criteria

  • /classify endpoint accepts text input and returns label + confidence score
  • API key authentication for access control
  • Basic rate limiting to prevent abuse
  • API documentation (e.g., Swagger/OpenAPI spec) describing request/response format

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions