Enrich
Enrich an existing snapshot with 1Y/3Y benchmark returns from MFAPI.
Use enrichment after parsing when you want fund returns, benchmark mapping, and related portfolio overlays.
Endpoint
Section titled “Endpoint”POST https://api.portfoliointel.co.in/api/v1/enrich
Authentication
Section titled “Authentication”X-API-Key: sk_live_* or Authorization: Bearer sk_live_*.
Request
Section titled “Request”curl -X POST https://api.portfoliointel.co.in/api/v1/enrich \ -H "X-API-Key: sk_live_..." \ -H "Content-Type: application/json" \ -d '{"snapshot_id": "snap_abc123"}'const res = await fetch('https://api.portfoliointel.co.in/api/v1/enrich', { method: 'POST', headers: { 'X-API-Key': process.env.PI_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ snapshot_id: 'snap_abc123' }),});const { data } = await res.json();r = requests.post( 'https://api.portfoliointel.co.in/api/v1/enrich', headers={'X-API-Key': os.environ['PI_KEY']}, json={'snapshot_id': 'snap_abc123'},)