# TriageSupport API Sentiment and urgency scoring for support tickets, reviews, and customer messages. One HTTP call, no SDK, no model-provider account to manage. ## Base URL https://triagesupport.com ## Authentication Send header: x-api-key: YOUR_KEY Get a free key with: curl -X POST https://triagesupport.com/signup \ -H "Content-Type: application/json" \ -d '{"email": "you@example.com"}' POST /signup Body: {"email": "you@example.com"} Response: {"status": "pending"} (always - this response never reveals whether the email is new or already has an account) A confirmation link is emailed to that address; your key is issued only after you confirm it (POST /signup/confirm with the emailed token - see the link itself, it does this automatically when opened in a browser). No card required. 3 calls/month free once confirmed. ## Core endpoint POST /analyze Headers: Content-Type: application/json x-api-key: YOUR_KEY Idempotency-Key: Body: {"text": ""} Response: { "sentiment": "positive" | "neutral" | "negative", "sentiment_score": , "urgency": "low" | "medium" | "high", "reason": "" } If you're retrying a request (timeout, dropped connection, etc.), send the same Idempotency-Key you used the first time: you'll get the original result back instead of a new billable call. Reusing a key with a different request body returns 409. If a request with that key is still being processed by a concurrent call, you'll get 503 with a Retry-After header - wait and retry, don't treat it as a failure. Keys are honored for 24 hours. Safe default if you're generating one per logical request: a UUID. Example: curl -X POST https://triagesupport.com/analyze \ -H "Content-Type: application/json" \ -H "x-api-key: YOUR_KEY" \ -H "Idempotency-Key: 5c1b2e2a-1b1e-4b7a-9a4a-0c6f1b7a9e11" \ -d '{"text": "This is the third time your product has crashed."}' Response: {"sentiment":"negative","sentiment_score":-0.8,"urgency":"high","reason":"repeated product failure"} ## Other endpoints POST /checkout Upgrade an existing key to pay-as-you-go ($0.02/call, no monthly minimum). Body: {"api_key": "...", "success_url": "...", "cancel_url": "..."} Response: {"checkout_url": ""} POST /demo Unauthenticated, no key required. Same request/response shape as /analyze, for evaluation only. Capped at 500 characters, rate-limited. ## Full machine-readable reference https://triagesupport.com/openapi.yaml (OpenAPI 3.1) ## Limits - Free plan: 3 calls/month. Past that, HTTP 429 with a JSON body: {"error": "Monthly quota exceeded", "allowance": 3, "remaining": 0, "reset_time": ""} - never a surprise charge. - Paid plan: $0.02/call, no monthly minimum, no rate limit beyond standard service limits. - Text limit: 4000 characters per call to /analyze, 500 to /demo. - If usage tracking is briefly unavailable, you'll get HTTP 503 instead of a 429 or a result - the model was never called on that attempt, so no Stripe charge was ever made for it. A free-tier credit can in rare cases still end up consumed even though you received a 503 (e.g. our side's own confirmation of the reservation was lost). Retry with the same Idempotency-Key: if a credit was taken, the retry resumes that same reservation rather than spending a second one. ## Notes for integrating agents - No SDK required - a single HTTP call is sufficient in any language. - Submitted text itself is not stored or logged on our side. The computed result for each call (sentiment, urgency, and the short one-line reason) is retained per account for billing and audit purposes - it is not the original text, but may reference details from it. - Treat "urgency" as a strong triage signal, not a guaranteed classification - validate against real ticket data before fully automating routing decisions on it.