eave developer docs
Base URL: https://api.eaveapp.ca
Authentication
Machine API calls use an API key as a Bearer token (or X-API-Key). Portal sessions use HttpOnly cookies and are never valid as API credentials.
Authorization: Bearer eave_sk_sand_…
eave_sk_sand_…— sandbox (no real SMS / family alerts)eave_sk_live_…— live (requires organization live access)- Create and revoke keys in the developer portal after signing in
POST /api/v1/classify
Classify a text snippet (a call transcript or a written message). Primary sandbox endpoint. This endpoint analyzes the wording of text only: it does not accept audio and does not detect synthetic or cloned voices.
Languages: English, French (fr-FR, fr-BE) and Dutch (nl-BE). French and Dutch are beta and have not been reviewed by a native speaker. Send lang when you know it, and source ("message" or "call_transcript"): French and Dutch default to "message", so set "call_transcript" for call text.
curl -X POST "$API/api/v1/classify" \
-H "Authorization: Bearer $EAVE_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Please buy Google Play cards and read me the codes.","use_ai":true,"depth":"fast"}'
{
"ok": true,
"environment": "sandbox",
"session_id": "…",
"use_ai": true,
"depth": "fast",
"is_scam": true,
"confidence": 0.91,
"reason": "…",
"tactics": ["gift_card"],
"call_state": { },
"model": "…",
"alerted": false,
"protection": "standard",
"timings": { "triage": 210, "fast_model": 1840, "total": 2090 }
}
use_ai (default true):
true— embedding triage + LLM (counts toward AI quota)false— keyword/rules only, free and fast (model: "rules", includeskeyword_hits). Useful for A/B testing without burning quota.
depth (default "fast", ignored when use_ai is false):
"fast"— one fast-model pass (English text also goes through embedding triage first). Typically 2–4 seconds and one AI call of quota."thorough"— adds a full-model second opinion when the fast pass looks suspicious or uncertain; clearly safe text returns at Fast speed. When the second model runs, expect roughly 5–10 seconds and a second AI call. Allow at least a 70-second client timeout.
max_latency_ms (optional, 300 to 30000): an upper bound on the AI analysis for real-time use. If the model has not answered in time, you get the rules-only verdict with "ai_timeout": true, billed at the rules price, and your call_state is returned unchanged.
protection (default "standard", applies only when use_ai is true; echoed on the response):
"standard"— fewer alerts. Use this level when testing for false positives."sensitive"— warns earlier (confidence 0.50–0.70) on a request for money or data that the text cannot verify."guardian"— maximum protection for vulnerable people: warns on almost any unverified request for money or data, with a confidence of at least 0.60 and a prompt to verify with a trusted person.
source, prior_tail and speaker_mode (call transcripts): set source to "call_transcript". The API keeps no state between requests, so send the end of the previous snippets of the same call in prior_tail (a short tail is enough), and send back the call_state from the previous response. call_state carries the call's context, such as who the caller claims to be and what they asked for, without resending the transcript. Set speaker_mode to true when the transcript contains both voices; false means it holds only the protected person's words, so a caller's requests sent that way are read as the protected person's and are not flagged.
When the two models disagree: for a written message the full model wins and no alert is raised if it says the text is safe. For a call transcript, a very confident fast model (70% or more) still produces a warning-level result (confidence 0.55–0.74), because speech-to-text errors can hide evidence; below that the alert is withheld.
The sandbox runs on an economical setup that sleeps when idle, so the first request after a pause can take about 10–15 seconds.
Every AI response carries a timings object of per-stage milliseconds (triage, fast_model, full_model, total) so you can see where the wall-clock went.
Data handling
The classify endpoint does not store the text you submit; usage accounting keeps counters only. With use_ai: true, the text is sent to our AI providers for analysis (Google Gemini API for the model passes, Azure OpenAI for embedding triage on English text), and retention there follows their terms. We do not currently guarantee EU-only processing; contact us before sending production data if you need a specific region. With use_ai: false nothing leaves our servers.
Sandbox vs live
- Sandbox keys are scoped to
classifyonly (no ingest/monitor). They never send real Twilio SMS or ntfy family alerts. - Live keys are off by default; contact us for production volume.
- HTTP rate limits: sandbox ~30 rpm, live ~120 rpm (enforced per key).
- Paid AI caps (separate from HTTP rpm): sandbox defaults ~100 LLM calls/day and ~1000/month, plus embedding and STT second budgets. Library/keyword skips do not count. Live
/ws/monitoraudio meters STT seconds before each Deepgram/Whisper call; exhausted STT sends a{"type":"quota","resource":"stt"}frame and stops calling STT. Seeai_quotaon classify responses andai_quotasonGET /api/v1/me.
Advanced endpoints
POST /api/ingest— classify the transcript of a finished recording from a vendor capture adapter (live keys only)WS /ws/monitor— live PCM audio stream for eave devices and companion apps (live keys only). Speech-to-text is currently English only; French and Dutch audio is not supported.- Omi marketplace uses a separate webhook path
Errors
401— missing/invalid key403— live disabled or missing scope422— text too short / invalid body429— HTTP rate limited, AI quota exhausted (ai_quota_exceeded), or monthly spend cap reached (spend_cap_reached;use_ai: falserequests are still served)503— AI analysis unavailable (ai_unavailable,ai_busywhen at capacity, oreu_region_unavailableon the EU environment). Not billed.reasonnames the failure (timeout,rate_limited,upstream_5xx,auth,empty_response);retryablesays whether to retry; quoterequest_idto support. Or senduse_ai: false