API Reference
Complete REST API documentation for PRSense
Base URL
https://api.prsense.dev/v1 Authentication
All API requests require an API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEY Endpoints
POST /check
Check repository history for similar work.
{
"prId": 123,
"title": "Fix login bug",
"description": "Handle empty passwords",
"files": ["auth.ts", "utils.ts"],
"diff": "..."
} Response
{
"type": "DUPLICATE" | "POSSIBLE" | "UNIQUE",
"confidence": 0.95,
"originalPr": 87,
"breakdown": {
"textSimilarity": 0.92,
"diffSimilarity": 0.88,
"fileSimilarity": 0.50
}
} POST /organizations/:slug/search
Semantic search for PRs.
{
"query": "How did we fix the login bug?"
} POST /batch
Check multiple PRs in a single request.
GET /stats
Get repository statistics and analytics.
Need an API key? Sign in to generate one.
PRSense