SAYACHECORE

API Documentation

A draft contract for the decision API.

This is a design preview. There is no live API, no API keys and no sandbox endpoint today.

Draft — not available
Roadmap
Everything on this page is a draft design for discussion. Field names and behavior may change. Nothing here can be called.
Request (draft)Concept — not an available API
POST /v1/decisions
Idempotency-Key: <uuid>
Authorization: Bearer <token>   # placeholder

{
  "decision_type": "payment",
  "subject": { "account_ref": "tok_acc_demo" },
  "event": {
    "rail": "upi.pay",
    "amount": { "value": 49500, "currency": "INR" },
    "payee_ref": "tok_payee_demo"
  },
  "context": { "device_ref": "tok_dev_demo" },
  "mode": "sync"
}
Response (draft)Concept — not an available API
200 OK
{
  "decision_id": "dec_demo_000481",
  "outcome": "STEP_UP",
  "score": 0.83,
  "reasons": ["NEW_PAYEE_BURST", "DEVICE_CLUSTER_LINK"],
  "policy": { "id": "P-FR-12", "version": 7 },
  "evidence": ["ev_1042", "ev_1043"],
  "case_id": null,
  "latency_ms": 112
}

Authentication

Short-lived tokens for service accounts; signed webhooks. Details to be designed.

Idempotency

Every write accepts an idempotency key so retries are safe.

Tokenised identifiers

Sensitive identifiers are tokenised at the customer edge; raw government-ID numbers are not needed.

Planned resources

Planned API resources and their status
ResourcePurposeStatus
/v1/decisionsRequest a decision and receive outcome and reasonsPlanned
/v1/eventsSend events for asynchronous scoringPlanned
/v1/casesRead and update casesPlanned
/v1/policiesRead policy versions (writes via console)Planned
WebhooksDecision, case and outcome notificationsPlanned

Building an integration plan?

Design partners help shape the contract before it is published.