Public docs

GET /v1/history

Retrieve recent translation runs for audit and debugging.

Phase 1 shell: this docs surface is wired to the existing backend and repo documentation, and will be expanded as the private dashboard comes online.

What it does

Returns a list of recent POST /v1/translate runs, newest first. Useful for auditing what was analyzed, debugging AI output, or building history views.

Authentication

Requires X-API-Key.

Query parameters

  • limit — integer, optional, default: 10, max recommended: 100

Response fields per run

  • id — unique run ID
  • created_at — ISO timestamp
  • statussuccess or error
  • modebasic or ai
  • planfree or pro
  • raw_text — the original input text
  • product_area — if provided
  • tone — tone used
  • impact_levellow, medium, or high
  • risk_flags — array of detected risk flag strings
  • detected_scopes — array of detected scope tokens
  • ai_provider — which AI provider was used (or null)
  • ai_fallback_used — boolean
  • response_json — the full structured response object
Fetch recent history
curl "https://api.opsentry.ai/v1/history?limit=5" \
-H "X-API-Key: YOUR_API_KEY"