Seeking Clarification on MSP API Retention Limits and Bulk Data Export Workarounds.

Comments

3 comments

  • Avatar
    Firewalla

    Do you have any sample code how you are encountering the issues? For example, for flows, you need to page through https://github.com/firewalla/msp-api-examples/blob/main/flow-pagination/index.js

    I am not understanding high frequency polling, but I do know, there is a rate limit, your code need to detect 429 and then back down.

     

     

    0
    Comment actions Permalink
  • Avatar
    Ilco Louis

    Thank you for the quick response!

    To clarify, my integration does not utilize high-frequency polling or aggressive scraping. In fact, quite the opposite: the script is explicitly designed to operate safely and conservatively well within standard operational thresholds. I firmly believe that good etiquette in API consumption means pacing requests deliberately from the outset, rather than adopting a brute-force approach that continuously rams the server until it is forced to scream an HTTP 429 error to back down. Think of it as ringing a doorbell once, rather than using a battering ram to get inside.

    The client-side code itself is functioning perfectly and is completely stable. It handles pagination seamlessly via the response cursors, pulling data in orderly chronological blocks and committing them to our database without any structural errors or network drops.

    The issue is not the execution of the pagination logic, but the hard boundary of the returned dataset itself. Our script successfully processes every single page the API offers, but the dataset simply runs dry and yields 0 results once it reaches approximately 24 hours into the past. The remaining 29 days of history—which are fully visible within the MSP web portal—seem to be completely missing from the API's reach.

    What I am primarily looking for is a definitive architectural confirmation: Is the /v2/flows API gateway strictly limited to a rolling 24-hour retention window, or is there an official method to page further back into the 30-day history?

    If a 24-hour window is indeed the hard limitation of the API platform, that is perfectly fine to know. It simply means that continuing with "Plan API" is a dead end for historical auditing, and I can gracefully pivot my development efforts toward alternative local ingestion methods like Syslog.

    Looking forward to your clarification on this specific boundary!

    Grtz,
    Ilco

    0
    Comment actions Permalink
  • Avatar
    FirewallaSupportDesk

    By default, it queries the last 24 hours flows if time range is not set. Could you share some sample code so we can check for you?

    0
    Comment actions Permalink

Please sign in to leave a comment.