OutcomeGuard API Documentation
OutcomeGuard provides a high-reliability, low-latency REST interface for monitoring business outcome deadlines, tracking operations across microservices and automations, and alerting when confirmations fail to arrive.
Important MVP Architectural Scope Notice
OutcomeGuard tracks reported confirmations against strict UTC deadlines. This means your downstream automation steps, webhooks, or CRM listeners report confirmations to the API. The initial MVP does not perform arbitrary independent database scans or direct CRM introspection without an explicit custom integration.
Authentication
All API endpoints under /api/v1/ require a Bearer token in the Authorization header. API keys begin with the prefix og_live_.
Registers the start of an asynchronous business operation. Calculates the UTC deadline from timeout_seconds and transitions state to PENDING.
Request Body Parameters
Example Request
{
"workflow": "website-lead-capture",
"correlation_id": "lead_12345",
"expected_outcome": "crm_record_confirmed",
"timeout_seconds": 300,
"metadata": {
"source": "contact_form"
}
}Reports the arrival of a matching outcome confirmation. If received before the deadline, marks status as CONFIRMED. If the deadline has already passed, rejects with an explicit 409 Conflict (EXPIRED).
Request Body Parameters
Example Request
{
"correlation_id": "lead_12345",
"outcome": "crm_record_confirmed",
"event_id": "evt_unique_12345",
"metadata": {
"crm_record_id": "crm_rec_99482"
}
}Returns paginated outcomes belonging exclusively to the authenticated API key's owner. Supports filtering by status and workflow.
Public minimal health check. Returns status code 200 without exposing database credentials or internal infrastructure.