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.
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"
}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
| Resource | Purpose | Status |
|---|---|---|
| /v1/decisions | Request a decision and receive outcome and reasons | Planned |
| /v1/events | Send events for asynchronous scoring | Planned |
| /v1/cases | Read and update cases | Planned |
| /v1/policies | Read policy versions (writes via console) | Planned |
| Webhooks | Decision, case and outcome notifications | Planned |
Building an integration plan?
Design partners help shape the contract before it is published.