API Online

Resolve tickets
before your team wakes up

Upload your knowledge base. Point your email webhook. Clasp reads every inbound ticket, searches your docs, and generates accurate responses — automatically.

Quick Start

1. Upload a doc to your knowledge base:

curl -X POST /api/docs \
  -H "Content-Type: application/json" \
  -d '{"title": "Refund Policy", "content": "We offer full refunds within 30 days..."}'

2. Send a ticket via webhook:

curl -X POST /api/webhooks/email \
  -H "Content-Type: application/json" \
  -d '{"subject": "Refund request", "body": "I want a refund for my order", "from_email": "customer@example.com"}'

3. Clasp auto-resolves it:

{"success": true, "ticket": {"status": "resolved"}, "response": {"confidence": 0.9, "text": "..."}}
🔍

Smart Doc Search

Full-text search with keyword fallback. Finds the right answer from your knowledge base every time.

Instant Resolution

Tickets are resolved in seconds, not hours. High-confidence responses are auto-sent.

🎯

Confidence Scoring

Every response includes a confidence score. Low confidence? Gets flagged for human review.

API Endpoints

Method Endpoint Description
POST/api/webhooks/emailInbound ticket webhook
POST/api/docsUpload knowledge doc
GET/api/docsList all docs
GET/api/ticketsList tickets (filter by status)
GET/api/tickets/:idTicket detail + responses
POST/api/tickets/:id/resolveRe-resolve with updated KB
GET/api/search?q=Search knowledge base
GET/api/statsResolution metrics
GET/api/healthHealth check