Reports and tax

insights.map.export

Generate a private PNG of the permitted Insights Map filters and supplied viewport, with native map attribution. Return a short-lived private download URL; no accounting records change.

GETPOST/api/v1/accounting/insights.map.export

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

accounting_insights_map_export

Fields

  • filtersobjectRequired

    No other fields

  • viewportobjectRequired

    No other fields

  • width640 or 1280
    6401280
  • height360 or 720
    360720

Example

curl https://app.getoatmilk.com/api/v1/accounting/insights.map.export \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "filters": {},
  "viewport": {
    "center": {
      "lat": 1,
      "lon": 1
    },
    "zoom": 1
  }
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/insights.map.export
curl https://app.getoatmilk.com/api/v1/accounting/insights.map.export \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "filters": {},
  "viewport": {
    "center": {
      "lat": 1,
      "lon": 1
    },
    "zoom": 1
  }
}'

More in Reports and tax.