Integrate risk detection into any application. Send customer text, get back structured risk assessments in under 2 seconds.
The RiskDetect API analyzes customer interactions (emails, call transcripts, chat messages) and returns a risk assessment with a numerical score, detected signals, summary, recommended action, and urgency level.
All responses are JSON. All endpoints accept POST requests with JSON bodies.
API keys are included in the Authorization header:
Authorization: Bearer rd_your_api_key_here
Get your API key by registering or from the dashboard settings. The live demo does not require authentication.
https://riskdetect.app/api
The primary endpoint. Accepts any customer text and returns a full risk assessment.
{
"content": "This is my third email about this issue...",
"type": "email",
"subject": "RE: Urgent",
"from": "customer@co.com"
}
| Parameter | Type | Description | |
|---|---|---|---|
| content | string | required | The customer interaction text to analyze |
| type | string | optional | Interaction type: email, call_transcript, chat. Auto-detected if omitted. |
| subject | string | optional | Email subject line |
| from | string | optional | Sender email or identifier |
{
"analysis": {
"risk_score": 85,
"risk_level": "high",
"signals": [
"BBB complaint threatened",
"Legal counsel mentioned",
"Competitor comparison"
],
"summary": "Customer is highly frustrated...",
"recommended_action": "Escalate to senior manager...",
"urgency": "today"
},
"metadata": {
"model": "gpt-4o-mini",
"processingMs": 1842
}
}
Analyze up to 50 interactions in a single request. Results are returned sorted by risk score (highest first).
{
"emails": [
{ "id": "email-001", "content": "First email...", "type": "email" },
{ "id": "transcript-001", "content": "Agent: Hi...", "type": "call_transcript" }
]
}
Fetch your org's stored risk assessments. Paginated and filterable.
| Param | Type | Description |
|---|---|---|
| limit | number | Results per page (max 200, default 50) |
| level | string | Filter by risk level: critical, high, medium, low |
Aggregated customer profiles from assessment data, sorted by peak risk score.
Aggregated statistics and trend data for your org.
Create, list, and delete automated alert rules. Rules trigger when new assessments match conditions.
Create a new rule:
{
"name": "Critical Alert",
"conditionType": "score_above",
"conditionValue": "80",
"actionType": "slack",
"actionTarget": "https://hooks.slack.com/..."
}
| Level | Score | Description |
|---|---|---|
| critical | 80-100 | Immediate intervention required. Legal threats, formal complaints. |
| high | 60-79 | Respond today. Competitor evaluation, escalation demands. |
| medium | 30-59 | Address this week. Growing frustration, repeat contacts. |
| low | 0-29 | Routine. No significant risk signals detected. |
RiskDetect tracks 30+ risk signals across these categories:
| Plan | Monthly Limit | Demo (no key) |
|---|---|---|
| Starter ($99/mo) | 250 interactions | 5 requests/min per IP |
| Professional ($299/mo) | 2,500 interactions | |
| Enterprise ($899/mo) | Unlimited |
Unauthenticated requests are rate-limited to 5/minute per IP. Returns 429 with Retry-After header when exceeded.