Query sys_hub_flow via REST API

The sys_hub_flow table stores Hub Flow definitions. You can't "download" it as a file directly from the UI, but you can export records via the REST API or use the standard ServiceNow export tools.

Via REST API

code
GET /api/now/table/sys_hub_flow?sysparm_limit=1000
Use code with caution.

Returns JSON of all flow records. Pipe to a file or import into another instance.

Via UI Export

  1. **Navigate** System Definition → Tables → search for sys_hub_flow.
  2. Open the table and view its records in list view.
  3. Select records → right-click → Export → choose XML or CSV.
  4. Save to your local machine.

**Note:** sys_hub_flow is the back-end table; if you want the visual flow definition, export the sys_flow table instead (Flow Designer flows). Hub Flows are a legacy feature — modern flows use Flow Designer.