> For the complete documentation index, see [llms.txt](https://learn.netmaker.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.netmaker.io/api-spec/traffic-logs.md).

# Traffic Logs

## GET /api/v1/flows

> List flow logs

```json
{"openapi":"3.1.1","info":{"title":"NetMaker","version":"1.4.0"},"tags":[],"servers":[{"url":"http://api.demo.netmaker.io"}],"security":[{"oauth":[]}],"paths":{"/api/v1/flows":{"get":{"parameters":[{"schema":{"type":"string"},"description":"Filter by network ID","in":"query","name":"network_id"},{"schema":{"type":"string"},"description":"Start time in RFC3339 format","in":"query","name":"from"},{"schema":{"type":"string"},"description":"End time in RFC3339 format","in":"query","name":"to"},{"schema":{"type":"string"},"description":"Source type filter","in":"query","name":"src_type"},{"schema":{"type":"string"},"description":"Source entity ID filter","in":"query","name":"src_entity_id"},{"schema":{"type":"string"},"description":"Destination type filter","in":"query","name":"dst_type"},{"schema":{"type":"string"},"description":"Destination entity ID filter","in":"query","name":"dst_entity_id"},{"schema":{"type":"string"},"description":"Protocol filter","in":"query","name":"protocol"},{"schema":{"type":"string"},"description":"Node ID filter","in":"query","name":"node_id"},{"schema":{"type":"string"},"description":"Username filter","in":"query","name":"username"},{"schema":{"type":"integer"},"description":"Page number","in":"query","name":"page"},{"schema":{"type":"integer"},"description":"Items per page (max 1000)","in":"query","name":"per_page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/controllers.FlowRow"},"type":"array"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/models.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/models.ErrorResponse"}}}}},"summary":"List flow logs","tags":["Traffic Logs"]}}},"components":{"schemas":{"controllers.FlowRow":{"properties":{"bytes_recv":{"type":"integer"},"bytes_sent":{"type":"integer"},"direction":{"type":"string"},"dst_entity_id":{"type":"string"},"dst_entity_name":{"type":"string"},"dst_ip":{"type":"string"},"dst_port":{"type":"integer"},"dst_type":{"type":"string"},"end_ts":{"type":"string"},"flow_id":{"type":"string"},"host_id":{"type":"string"},"host_name":{"type":"string"},"icmp_code":{"type":"integer"},"icmp_type":{"type":"integer"},"network_id":{"type":"string"},"packets_recv":{"type":"integer"},"packets_sent":{"type":"integer"},"protocol":{"type":"integer"},"src_entity_id":{"type":"string"},"src_entity_name":{"type":"string"},"src_ip":{"type":"string"},"src_port":{"type":"integer"},"src_type":{"type":"string"},"start_ts":{"type":"string"},"status":{"type":"integer"},"version":{"type":"string"}},"type":"object"},"models.ErrorResponse":{"properties":{"code":{"type":"integer"},"message":{"type":"string"},"response":{}},"type":"object"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://learn.netmaker.io/api-spec/traffic-logs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
