Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Event catalogue

    Events for answers, refusals, indexing and model state changes.

    On this page

    Events describe a recorded outcome; they do not ask your receiver to perform the original action again. Every event uses the same envelope. Store id before acknowledging delivery, and use aggregateRevision to detect stale or out-of-order notifications.

    TypeMeaning
    com.rdcopilot.private-ai.chat.answered.v1The chat has an answer. Read the chat by aggregateId; the event includes documentIds but not the prompt or answer text.
    com.rdcopilot.private-ai.request.refused.v1A request was refused. data carries status refused and the stable code; no answer or context is sent.
    com.rdcopilot.private-ai.document.indexed.v1A file is ready for retrieval. Read its current revision before another indexing request.
    com.rdcopilot.private-ai.document.failed.v1Indexing failed. Read the file error and correct the source before trying again.
    com.rdcopilot.private-ai.model.changed.v1A model runtime changed state. Re-read the model list before scheduling work.

    Envelope

    JSON

    {
      "specversion": "1.0",
      "id": "8a000004-0000-4000-8000-000000000001",
      "type": "com.rdcopilot.private-ai.chat.answered.v1",
      "source": "/private-ai/v1",
      "time": "2026-11-23T07:12:00Z",
      "customerOrgId": "8a000005-0000-4000-8000-000000000001",
      "legalCompanyId": "8a000006-0000-4000-8000-000000000001",
      "aggregateType": "chat",
      "aggregateId": "8a000002-0000-4000-8000-000000000001",
      "aggregateRevision": 1,
      "correlationId": "8a000001-0000-4000-8000-000000000001",
      "causationId": "8a000001-0000-4000-8000-000000000001",
      "actor": {
        "type": "client",
        "id": "workspace-integration"
      },
      "data": {
        "workspaceId": "workspace-main",
        "status": "answered",
        "documentIds": [
          "doc-procedure"
        ]
      }
    }

    Receive and recover

    Register an HTTPS receiver with Subscriptions. The receiver must be reachable through the deployment network policy. Read Delivery and retries before acknowledging messages and Replay to recover parked deliveries.