KKissan Ki Pehchan
Data and Control

API and Event Contracts

Reference endpoints and events for cases, live rooms, selected frames, reasoning, research, policy and review.

BlueprintVersion 0.25 Aug 2026

Endpoints

MethodPathPurpose
POST/v1/casesCreate case and consent snapshot
POST/v1/cases/{id}/live-sessionsCreate room/session and participant token
GET/v1/live-sessions/{session_id}Read live-session state
POST/v1/live-sessions/{session_id}/framesRegister selected frame or explicit still
POST/v1/live-sessions/{session_id}/join-requestsRequest officer join or handoff
POST/v1/cases/{id}/turnsSubmit finalized transcript turn
POST/v1/cases/{id}/mediaFallback upload/queued media
POST/v1/cases/{id}/analyseStart/resume reasoning
POST/v1/research/searchControlled research
POST/v1/policy/validateExact verification
POST/v1/escalationsCreate human interrupt
POST/v1/escalations/{id}/decisionReviewer decision

Download OpenAPI specification.

Events

case.created, live_session.created, participant.joined, media_mode.changed, track.started, frame.selected, frame.rejected, turn.accepted, analysis.evidence_requested, officer_join.requested, officer_join.completed, analysis.completed, policy.blocked, response.delivered and live_session.ended.

Contract rules

  • Idempotency for case, session, frame and review commands.
  • Room tokens are short-lived and role-scoped.
  • Frame registration includes content hash, call timestamp, objective and quality result.
  • Events use immutable IDs, schema version and causal/correlation IDs.
  • Media-provider webhooks are authenticated and replay-protected.