API Reference

Authentication

All requests require the X-Nefesh-Key header.

X-Nefesh-Key: nk_your_api_key_here

Endpoints

MethodEndpointDescription
POST/v1/ingestSend signals, get state
GET/v1/state?session_id=XRead current state
GET/v1/history?session_id=X&minutes=5State history (1-60 min)
DELETE/v1/subjects/{subject_id}GDPR cascading delete

Rate Limits

LimitValue
Per session120 req/min
New sessions per key50/min
Solo tier total50,000 calls
Body size4 KB max

Error Codes

CodeMeaning
400Invalid payload, timestamp too old, missing signals
401Missing or invalid X-Nefesh-Key
413Body exceeds 4 KB limit
429Rate limit exceeded