API Reference
Previews what batches would be created for the given time range. Does not create any batches.
cURL
curl --request POST \ --url https://app.gomangrove.com/api/v1/ledgers/{ledger_id}/generate_preview \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "start_time": "2025-01-01T00:00:00.000Z", "end_time": "2025-03-31T23:59:59.000Z" } '
{ "data": [ { "id": "lgr_abc123def456", "name": "Net Carbon Removal", "count": 3 } ] }
Ledger friendly ID (e.g., lgr_abc123def456)
Start of the time range
End of the time range
Optional array of data point friendly IDs. If omitted, auto-discovers from time range.
200
Show child attributes