/extract/segments/from-quick-entry

Base URL
https://api.babylon.app/v1


POST /extract/segments/from-quick-entry

Extract a segment entry from a natural language sentence.

Parameters

  • segmentLedger (optional) — The name of the Babylon segment.
  • accountAlias (optional) — The account alias.
  • quickEntry — The natural language description of the trade e.g. We bought 100 VEVE for 10000 GBP.
  • format (optional) — Use csv for CSV output, otherwise JSON.
  • columns (optional) — Comma-separated list to select and order fields in the response.

Example request

POST /extract/segments/from-quick-entry
{
	segmentLedger: "MyGBSegment",
	accountAlias: "AJBell-ISA"
	quickEntry: "We bought 100 VEVE for 10000 GBP"
}

Example response — 200

{
  "name": "Segment Ledger Entry",
  "description": "Extracted from 'We bought 100 VEVE for 10000 GBP'.",
  "rows": [
    {"segmentLedger": "MyGBSegment",
     "accountAlias": "AJBell-ISA",
	 "bourse": "LSE",
	 "type": "Buy",
	 "quantity": "100",
	 "symbol": "VEVE",
	 "netAmount": "-10000",
	 "currency": "GBP",
	 "settleDate": "2025-11-17"
	}
  ]
}

GET /extract/segments/from-quick-entry

Same as post method. POST is preferred.

← Back to API