> For the complete documentation index, see [llms.txt](https://navixy.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://navixy.com/docs/analytics-api/products/reports/api-reference.md). Agents can also search and read this documentation through its [MCP server](https://navixy.com/docs/~gitbook/mcp).

# Reports API reference

The complete reference of the Navixy Reports API: every operation with its parameters and responses, and the main response models.

This page is the complete reference of the Reports API: every operation with its request and responses, then the response models.

The base address is `https://reports.<REGION>.navixy.com/api`, where `<REGION>` is `eu` or `us`. Every request needs an access token, as [Authentication](https://navixy.com/docs/analytics-api/authentication.md) describes.

## API actions

## List report types and assets

> Returns what your token can read in the workspace: the report types that the role lets you run and the assets that you can see. It also returns today's date and the dates of 6 common periods in \`timeZone\`. Call it first, and take the report type IDs and the asset IDs for the other operations from it.\
> \
> The response lists the assets only when there are at most 200 of them. With more, \`assets\` is missing and \`assetCount\` has the number: name \`all\` in the other operations, or take the IDs from Navixy GraphQL API.\
> \
> The body accepts no field but \`timeZone\`. This operation doesn't count as a report run.

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"tags":[{"name":"Tools","description":"Tools. The report types and assets that a token can use, report summaries, and links to reports. Operations under `/tools`, with the access token of a Console API key, for integrations and AI agents."}],"servers":[{"url":"https://reports.{region}.navixy.com/api","description":"Navixy production server of your region","variables":{"region":{"default":"eu","enum":["eu","us"],"description":"The region of your organization: `eu` for the European Union, `us` for the United States."}}}],"security":[{"apiKeyToken":[]}],"components":{"securitySchemes":{"apiKeyToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"The access token that your app gets by exchanging a Console API key."}},"schemas":{"ReportTypesRequest":{"type":"object","required":["timeZone"],"additionalProperties":false,"properties":{"timeZone":{"$ref":"#/components/schemas/TimeZone"}}},"TimeZone":{"type":"string","description":"Required. The IANA time zone of the person who reads the result, such as `Europe/Madrid`. The API reads the days of the period and writes every date and time in this time zone. `UTC` is accepted, and a fixed offset such as `+01:00` or `Etc/GMT+2` isn't."},"ReportTypesAndAssets":{"type":"object","description":"What your token can read in the workspace.","required":["today","timeZone","periods","templates","assetCount"],"properties":{"today":{"type":"string","format":"date","description":"Today in `timeZone`. A period can't end after it."},"timeZone":{"type":"string","description":"The `timeZone` of the request."},"periods":{"type":"object","description":"6 common periods, each with its first and last day, both included: `today`, `yesterday`, `this_week`, `last_week`, `this_month`, and `last_month`. A week starts on Monday, and this week and this month end today.","additionalProperties":{"$ref":"#/components/schemas/Period"}},"templates":{"type":"array","description":"The report types that the role lets you run, ordered by code. Empty when you may run none.","items":{"$ref":"#/components/schemas/ReportTypeInfo"}},"assets":{"type":"array","description":"The assets that you can see and that Reports has GPS device data for, ordered by ID, when there are at most 200 of them. Missing when there are more. The other operations return HTTP 400 for the ID of any other asset.","items":{"$ref":"#/components/schemas/AssetInfo"}},"assetCount":{"type":"integer","description":"The number of assets that you can see and that Reports has GPS device data for. 0 when `templates` is empty."}}},"Period":{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","format":"date","description":"The first day of the period."},"to":{"type":"string","format":"date","description":"The last day of the period."}}},"ReportTypeInfo":{"type":"object","required":["code","name"],"properties":{"code":{"type":"string","description":"The ID of the report type, for `report` in the other operations."},"name":{"type":"string","description":"The name of the report type, in English."},"description":{"type":"string","description":"What the report type returns and which operations read it, in English."}}},"AssetInfo":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The ID of the asset, for `assets` in the other operations."},"title":{"type":"string","description":"The title of the asset. Missing when Reports has no title for it."}}},"Error":{"type":"object","description":"The body of every error response except HTTP 401.","required":["code","message"],"properties":{"code":{"type":"string","description":"What went wrong. Your app checks this field to decide what to do.","enum":["product_not_enabled","insufficient_rights","roles_unresolved","token_incomplete","template_not_found","trip_not_found","invalid_report_parameters","report_too_large","report_source_not_configured","report_source_unavailable","not_implemented","internal_error","not_found","method_not_allowed","unsupported_media_type","bad_request","invalid_tool_call","tool_rate_limited","tool_unavailable"]},"message":{"type":"string","description":"The error in English, for a person to read. It can change, so don't check it in code."},"details":{"type":"object","description":"More about the error, when the code has more to say. For `invalid_report_parameters` and `invalid_tool_call`, each key is a wrong field of the request, and its value says what the field must be. For `token_incomplete`, `claim` names the missing claim of the token.","additionalProperties":{"type":"string"}}}}},"responses":{"ToolsUnauthorized":{"description":"The request has no token, or the token is invalid or expired. The token of an API key also gets HTTP 401 on any path outside `/api/tools/`. The response has no body. Exchange the API key again and repeat the request. When HTTP 401 repeats with the new token, check the path.","headers":{"WWW-Authenticate":{"description":"The word `Bearer` and the address of the description of this API's authentication.","schema":{"type":"string"}}}},"ToolsForbidden":{"description":"The token is valid, but it doesn't give access. `product_not_enabled`: the workspace doesn't have Reports, or the role gives no access to it. `insufficient_rights`: the role gives access to Reports, but lacks its `reports-standard` feature. `roles_unresolved` and `token_incomplete`: Navixy couldn't read the role or the workspace from the token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnsupportedMediaType":{"description":"The request has a body, but its `Content-Type` is missing or isn't `application/json`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Reports couldn't process the request. Repeat the request later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ToolsReportDataUnavailable":{"description":"Report data can't be read. `report_source_unavailable`: repeat the request later. `report_source_not_configured`: Reports has no report data in this Navixy environment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/tools/context":{"post":{"tags":["Tools"],"summary":"List report types and assets","operationId":"reportTypesList","description":"Returns what your token can read in the workspace: the report types that the role lets you run and the assets that you can see. It also returns today's date and the dates of 6 common periods in `timeZone`. Call it first, and take the report type IDs and the asset IDs for the other operations from it.\n\nThe response lists the assets only when there are at most 200 of them. With more, `assets` is missing and `assetCount` has the number: name `all` in the other operations, or take the IDs from Navixy GraphQL API.\n\nThe body accepts no field but `timeZone`. This operation doesn't count as a report run.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportTypesRequest"}}}},"responses":{"200":{"description":"The report types and assets that your token can use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportTypesAndAssets"}}}},"400":{"description":"The body is wrong. With `invalid_tool_call`, `details` names each wrong field and says what it must be. With `bad_request`, the body isn't JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/ToolsUnauthorized"},"403":{"$ref":"#/components/responses/ToolsForbidden"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ToolsReportDataUnavailable"}}}}}}
```

## Get report summary

> Runs a report for a period and a set of assets and returns its summary: the figures of the report for the period, never individual trips, stops or readings. \`trips\_and\_stops\` returns the figures of all assets in \`totals\` and the same figures for each asset. \`sensor\_readings\` returns one line for each sensor. \`driver\_performance\` has no summary and returns HTTP 400.\
> \
> Each request counts as one report run against the limit of about 250 runs in 24 hours, once Reports accepts it. A request that returns HTTP 400 for a wrong field doesn't count.

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"tags":[{"name":"Tools","description":"Tools. The report types and assets that a token can use, report summaries, and links to reports. Operations under `/tools`, with the access token of a Console API key, for integrations and AI agents."}],"servers":[{"url":"https://reports.{region}.navixy.com/api","description":"Navixy production server of your region","variables":{"region":{"default":"eu","enum":["eu","us"],"description":"The region of your organization: `eu` for the European Union, `us` for the United States."}}}],"security":[{"apiKeyToken":[]}],"components":{"securitySchemes":{"apiKeyToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"The access token that your app gets by exchanging a Console API key."}},"schemas":{"SummaryRequest":{"type":"object","required":["timeZone","report","from","to","assets"],"additionalProperties":false,"properties":{"timeZone":{"$ref":"#/components/schemas/TimeZone"},"report":{"type":"string","description":"The ID of the report type, from `templates` in the list of report types and assets (`POST /api/tools/context`)."},"from":{"type":"string","format":"date","description":"The first day of the period, included, on the calendar of `timeZone`. Not before 1900-01-02."},"to":{"type":"string","format":"date","description":"The last day of the period, included. Not before `from`, not after today in `timeZone`, and at most 31 days with `from`."},"assets":{"description":"`all` for every asset that you can see, or a list of 1 to 500 asset IDs. Each ID is a UUID in lowercase and must be one of the assets in the list of report types and assets (`POST /api/tools/context`).","oneOf":[{"type":"string","const":"all"},{"type":"array","minItems":1,"maxItems":500,"items":{"type":"string","format":"uuid"}}]}}},"TimeZone":{"type":"string","description":"Required. The IANA time zone of the person who reads the result, such as `Europe/Madrid`. The API reads the days of the period and writes every date and time in this time zone. `UTC` is accepted, and a fixed offset such as `+01:00` or `Etc/GMT+2` isn't."},"TripsSummary":{"type":"object","title":"trips_and_stops","description":"The summary of a `trips_and_stops` report. `totals` has the figures of all assets.","required":["totals","assetsInScope","assets","assetsOmitted"],"properties":{"totals":{"$ref":"#/components/schemas/TripFigures"},"assetsInScope":{"type":"integer","description":"The number of assets in the report, including assets without trips or stops."},"assets":{"type":"array","description":"One line for each asset with a trip or a stop, the longest distance first. At most 50.","items":{"$ref":"#/components/schemas/AssetTrips"}},"assetsOmitted":{"type":"integer","description":"The number of assets with trips or stops after the first 50."}}},"TripFigures":{"type":"object","description":"Trip and stop figures. `null` means no data, which isn't zero.","required":["trips","distanceM","drivingS","stops","stopS","maxSpeedKmh"],"properties":{"trips":{"type":"integer","description":"The number of trips."},"distanceM":{"type":["integer","null"],"description":"The distance, in meters."},"drivingS":{"type":["integer","null"],"description":"The time that the assets moved, in seconds."},"stops":{"type":"integer","description":"The number of stops."},"stopS":{"type":"integer","description":"The time of the stops, in seconds."},"maxSpeedKmh":{"type":["number","null"],"description":"The maximum speed, in kilometers per hour."}}},"AssetTrips":{"type":"object","required":["assetId","title","figures"],"properties":{"assetId":{"type":"string","format":"uuid","description":"The ID of the asset."},"title":{"type":["string","null"],"description":"The title of the asset, or `null` when Reports has none."},"figures":{"$ref":"#/components/schemas/TripFigures"}}},"SensorSummary":{"type":"object","title":"sensor_readings","description":"The summary of a `sensor_readings` report.","required":["assets","devices","sensors","samples","series","seriesOmitted"],"properties":{"assets":{"type":"integer","description":"The number of assets with readings."},"devices":{"type":"integer","description":"The number of GPS devices with readings."},"sensors":{"type":"integer","description":"The number of sensors with readings."},"samples":{"type":"integer","description":"The number of readings."},"series":{"type":"array","description":"One line for each sensor with readings, ordered by asset, device, key, unit, and type. At most 50.","items":{"$ref":"#/components/schemas/SensorLine"}},"seriesOmitted":{"type":"integer","description":"The number of sensor lines after the first 50."}}},"SensorLine":{"type":"object","description":"The readings of one sensor of one GPS device over the period, in the unit that the device sends.","required":["assetId","title","deviceId","key","unit","type","average","min","max","first","last","change","samples"],"properties":{"assetId":{"type":"string","format":"uuid","description":"The ID of the asset."},"title":{"type":["string","null"],"description":"The title of the asset, or `null` when Reports has none."},"deviceId":{"type":"string","format":"uuid","description":"The ID of the GPS device."},"key":{"type":"string","description":"The name of the value that the device sends."},"unit":{"type":"string","description":"The unit of measure. An empty string when the value has none."},"type":{"type":"string","description":"The data type of the value as the device sends it."},"average":{"type":"number","description":"The average of all readings."},"min":{"type":"number","description":"The lowest reading."},"max":{"type":"number","description":"The highest reading."},"first":{"type":"number","description":"The first reading of the period."},"last":{"type":"number","description":"The last reading of the period."},"change":{"type":"number","description":"`last` minus `first`: how much a counter, such as mileage, grew. Less when the counter was reset."},"samples":{"type":"integer","description":"The number of readings."}}},"Error":{"type":"object","description":"The body of every error response except HTTP 401.","required":["code","message"],"properties":{"code":{"type":"string","description":"What went wrong. Your app checks this field to decide what to do.","enum":["product_not_enabled","insufficient_rights","roles_unresolved","token_incomplete","template_not_found","trip_not_found","invalid_report_parameters","report_too_large","report_source_not_configured","report_source_unavailable","not_implemented","internal_error","not_found","method_not_allowed","unsupported_media_type","bad_request","invalid_tool_call","tool_rate_limited","tool_unavailable"]},"message":{"type":"string","description":"The error in English, for a person to read. It can change, so don't check it in code."},"details":{"type":"object","description":"More about the error, when the code has more to say. For `invalid_report_parameters` and `invalid_tool_call`, each key is a wrong field of the request, and its value says what the field must be. For `token_incomplete`, `claim` names the missing claim of the token.","additionalProperties":{"type":"string"}}}}},"responses":{"ToolsUnauthorized":{"description":"The request has no token, or the token is invalid or expired. The token of an API key also gets HTTP 401 on any path outside `/api/tools/`. The response has no body. Exchange the API key again and repeat the request. When HTTP 401 repeats with the new token, check the path.","headers":{"WWW-Authenticate":{"description":"The word `Bearer` and the address of the description of this API's authentication.","schema":{"type":"string"}}}},"ToolsForbidden":{"description":"The token is valid, but it doesn't give access. `product_not_enabled`: the workspace doesn't have Reports, or the role gives no access to it. `insufficient_rights`: the role gives access to Reports, but lacks its `reports-standard` feature. `roles_unresolved` and `token_incomplete`: Navixy couldn't read the role or the workspace from the token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnsupportedMediaType":{"description":"The request has a body, but its `Content-Type` is missing or isn't `application/json`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RunLimitReached":{"description":"The token's API key has made about 250 report runs in this workspace in the last 24 hours. The request isn't run and isn't counted. Try again later: each run stops counting 24 hours after it was made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Reports couldn't process the request. Repeat the request later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RunUnavailable":{"description":"The report can't be run now. `tool_unavailable`: Reports is running as many reports as it can at once, and the request isn't counted. `report_source_unavailable`: report data can't be read. `report_source_not_configured`: Reports has no report data in this Navixy environment. Repeat the request later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/tools/run_report_totals":{"post":{"tags":["Tools"],"summary":"Get report summary","operationId":"reportSummaryGet","description":"Runs a report for a period and a set of assets and returns its summary: the figures of the report for the period, never individual trips, stops or readings. `trips_and_stops` returns the figures of all assets in `totals` and the same figures for each asset. `sensor_readings` returns one line for each sensor. `driver_performance` has no summary and returns HTTP 400.\n\nEach request counts as one report run against the limit of about 250 runs in 24 hours, once Reports accepts it. A request that returns HTTP 400 for a wrong field doesn't count.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryRequest"}}}},"responses":{"200":{"description":"The summary of the report. Its shape depends on the report type.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TripsSummary"},{"$ref":"#/components/schemas/SensorSummary"}]}}}},"400":{"description":"The body is wrong. With `invalid_tool_call`, `details` names each wrong field and says what it must be. With `bad_request`, the body isn't JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/ToolsUnauthorized"},"403":{"$ref":"#/components/responses/ToolsForbidden"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"429":{"$ref":"#/components/responses/RunLimitReached"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/RunUnavailable"}}}}}}
```

## Create link to report

> Checks a report, its period, its assets, and its view options as Location Intelligence opens them. Returns the checked report with \`link\`, the address that opens it there. The link names no time zone: Reports reads the period in the time zone of the browser that opens it. So send the time zone of the person who opens the link.\
> \
> When \`view\.step\` gives too many points for the period, the response raises it to the shortest step that fits and says so in \`adjusted\`. Any other wrong field returns HTTP 400. This operation doesn't count as a report run.

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"tags":[{"name":"Tools","description":"Tools. The report types and assets that a token can use, report summaries, and links to reports. Operations under `/tools`, with the access token of a Console API key, for integrations and AI agents."}],"servers":[{"url":"https://reports.{region}.navixy.com/api","description":"Navixy production server of your region","variables":{"region":{"default":"eu","enum":["eu","us"],"description":"The region of your organization: `eu` for the European Union, `us` for the United States."}}}],"security":[{"apiKeyToken":[]}],"components":{"securitySchemes":{"apiKeyToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"The access token that your app gets by exchanging a Console API key."}},"schemas":{"ReportLinkRequest":{"type":"object","required":["timeZone","report","from","to","assets"],"additionalProperties":false,"properties":{"timeZone":{"$ref":"#/components/schemas/TimeZone"},"report":{"type":"string","description":"The ID of the report type, from `templates` in the list of report types and assets (`POST /api/tools/context`)."},"from":{"type":"string","format":"date","description":"The first day of the period, included, on the calendar of `timeZone`. Not before 1900-01-02."},"to":{"type":"string","format":"date","description":"The last day of the period, included. Not before `from`, not after today in `timeZone`, and at most 31 days with `from`."},"assets":{"description":"`all` for every asset that you can see, or a list of 1 to 200 asset IDs. Each ID is a UUID in lowercase and must be one of the assets in the list of report types and assets (`POST /api/tools/context`).","oneOf":[{"type":"string","const":"all"},{"type":"array","minItems":1,"maxItems":200,"items":{"type":"string","format":"uuid"}}]},"view":{"$ref":"#/components/schemas/View"}}},"TimeZone":{"type":"string","description":"Required. The IANA time zone of the person who reads the result, such as `Europe/Madrid`. The API reads the days of the period and writes every date and time in this time zone. `UTC` is accepted, and a fixed offset such as `+01:00` or `Etc/GMT+2` isn't."},"View":{"type":["object","null"],"description":"The view options of the report page. `trips_and_stops` accepts `tab` and `kind`, `sensor_readings` accepts `step`, and `driver_performance` accepts none. Leave it out for the default view.","additionalProperties":false,"properties":{"tab":{"type":"string","description":"`trips_and_stops` only. `days` opens the summary day by day, and an asset ID of the report opens the tab of that asset."},"kind":{"type":"string","enum":["trip","stop"],"description":"`trips_and_stops` only. Shows only trips or only stops in the log."},"step":{"type":"integer","enum":[300,600,1800,3600,14400,86400],"description":"`sensor_readings` only. The length of each point of the table and the chart, in seconds."}}},"ReportLink":{"type":"object","required":["report","from","to","assets","view","link"],"properties":{"report":{"type":"string","description":"The ID of the report type."},"from":{"type":"string","format":"date","description":"The first day of the period."},"to":{"type":"string","format":"date","description":"The last day of the period."},"assets":{"description":"`all`, or the list of asset IDs.","oneOf":[{"type":"string","const":"all"},{"type":"array","items":{"type":"string","format":"uuid"}}]},"view":{"type":"object","description":"The view options of the report, as checked. Empty for the default view.","additionalProperties":true},"adjusted":{"type":"object","description":"What the response changed from the request, one entry for each field, and why. Missing when nothing changed.","additionalProperties":{"type":"string"}},"link":{"type":"string","format":"uri","description":"The address that opens the report in Location Intelligence, with the organization and the workspace of the token."}}},"Error":{"type":"object","description":"The body of every error response except HTTP 401.","required":["code","message"],"properties":{"code":{"type":"string","description":"What went wrong. Your app checks this field to decide what to do.","enum":["product_not_enabled","insufficient_rights","roles_unresolved","token_incomplete","template_not_found","trip_not_found","invalid_report_parameters","report_too_large","report_source_not_configured","report_source_unavailable","not_implemented","internal_error","not_found","method_not_allowed","unsupported_media_type","bad_request","invalid_tool_call","tool_rate_limited","tool_unavailable"]},"message":{"type":"string","description":"The error in English, for a person to read. It can change, so don't check it in code."},"details":{"type":"object","description":"More about the error, when the code has more to say. For `invalid_report_parameters` and `invalid_tool_call`, each key is a wrong field of the request, and its value says what the field must be. For `token_incomplete`, `claim` names the missing claim of the token.","additionalProperties":{"type":"string"}}}}},"responses":{"ToolsUnauthorized":{"description":"The request has no token, or the token is invalid or expired. The token of an API key also gets HTTP 401 on any path outside `/api/tools/`. The response has no body. Exchange the API key again and repeat the request. When HTTP 401 repeats with the new token, check the path.","headers":{"WWW-Authenticate":{"description":"The word `Bearer` and the address of the description of this API's authentication.","schema":{"type":"string"}}}},"ToolsForbidden":{"description":"The token is valid, but it doesn't give access. `product_not_enabled`: the workspace doesn't have Reports, or the role gives no access to it. `insufficient_rights`: the role gives access to Reports, but lacks its `reports-standard` feature. `roles_unresolved` and `token_incomplete`: Navixy couldn't read the role or the workspace from the token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnsupportedMediaType":{"description":"The request has a body, but its `Content-Type` is missing or isn't `application/json`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Reports couldn't process the request. Repeat the request later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ToolsReportDataUnavailable":{"description":"Report data can't be read. `report_source_unavailable`: repeat the request later. `report_source_not_configured`: Reports has no report data in this Navixy environment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/tools/propose_report":{"post":{"tags":["Tools"],"summary":"Create link to report","operationId":"reportLinkCreate","description":"Checks a report, its period, its assets, and its view options as Location Intelligence opens them. Returns the checked report with `link`, the address that opens it there. The link names no time zone: Reports reads the period in the time zone of the browser that opens it. So send the time zone of the person who opens the link.\n\nWhen `view.step` gives too many points for the period, the response raises it to the shortest step that fits and says so in `adjusted`. Any other wrong field returns HTTP 400. This operation doesn't count as a report run.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportLinkRequest"}}}},"responses":{"200":{"description":"The checked report and its link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportLink"}}}},"400":{"description":"The body is wrong. With `invalid_tool_call`, `details` names each wrong field and says what it must be. With `bad_request`, the body isn't JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/ToolsUnauthorized"},"403":{"$ref":"#/components/responses/ToolsForbidden"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ToolsReportDataUnavailable"}}}}}}
```

## Response models

## The ReportTypesAndAssets object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"ReportTypesAndAssets":{"type":"object","description":"What your token can read in the workspace.","required":["today","timeZone","periods","templates","assetCount"],"properties":{"today":{"type":"string","format":"date","description":"Today in `timeZone`. A period can't end after it."},"timeZone":{"type":"string","description":"The `timeZone` of the request."},"periods":{"type":"object","description":"6 common periods, each with its first and last day, both included: `today`, `yesterday`, `this_week`, `last_week`, `this_month`, and `last_month`. A week starts on Monday, and this week and this month end today.","additionalProperties":{"$ref":"#/components/schemas/Period"}},"templates":{"type":"array","description":"The report types that the role lets you run, ordered by code. Empty when you may run none.","items":{"$ref":"#/components/schemas/ReportTypeInfo"}},"assets":{"type":"array","description":"The assets that you can see and that Reports has GPS device data for, ordered by ID, when there are at most 200 of them. Missing when there are more. The other operations return HTTP 400 for the ID of any other asset.","items":{"$ref":"#/components/schemas/AssetInfo"}},"assetCount":{"type":"integer","description":"The number of assets that you can see and that Reports has GPS device data for. 0 when `templates` is empty."}}},"Period":{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","format":"date","description":"The first day of the period."},"to":{"type":"string","format":"date","description":"The last day of the period."}}},"ReportTypeInfo":{"type":"object","required":["code","name"],"properties":{"code":{"type":"string","description":"The ID of the report type, for `report` in the other operations."},"name":{"type":"string","description":"The name of the report type, in English."},"description":{"type":"string","description":"What the report type returns and which operations read it, in English."}}},"AssetInfo":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The ID of the asset, for `assets` in the other operations."},"title":{"type":"string","description":"The title of the asset. Missing when Reports has no title for it."}}}}}}
```

## The Period object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"Period":{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","format":"date","description":"The first day of the period."},"to":{"type":"string","format":"date","description":"The last day of the period."}}}}}}
```

## The ReportTypeInfo object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"ReportTypeInfo":{"type":"object","required":["code","name"],"properties":{"code":{"type":"string","description":"The ID of the report type, for `report` in the other operations."},"name":{"type":"string","description":"The name of the report type, in English."},"description":{"type":"string","description":"What the report type returns and which operations read it, in English."}}}}}}
```

## The AssetInfo object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"AssetInfo":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The ID of the asset, for `assets` in the other operations."},"title":{"type":"string","description":"The title of the asset. Missing when Reports has no title for it."}}}}}}
```

## The TripsSummary object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"TripsSummary":{"type":"object","title":"trips_and_stops","description":"The summary of a `trips_and_stops` report. `totals` has the figures of all assets.","required":["totals","assetsInScope","assets","assetsOmitted"],"properties":{"totals":{"$ref":"#/components/schemas/TripFigures"},"assetsInScope":{"type":"integer","description":"The number of assets in the report, including assets without trips or stops."},"assets":{"type":"array","description":"One line for each asset with a trip or a stop, the longest distance first. At most 50.","items":{"$ref":"#/components/schemas/AssetTrips"}},"assetsOmitted":{"type":"integer","description":"The number of assets with trips or stops after the first 50."}}},"TripFigures":{"type":"object","description":"Trip and stop figures. `null` means no data, which isn't zero.","required":["trips","distanceM","drivingS","stops","stopS","maxSpeedKmh"],"properties":{"trips":{"type":"integer","description":"The number of trips."},"distanceM":{"type":["integer","null"],"description":"The distance, in meters."},"drivingS":{"type":["integer","null"],"description":"The time that the assets moved, in seconds."},"stops":{"type":"integer","description":"The number of stops."},"stopS":{"type":"integer","description":"The time of the stops, in seconds."},"maxSpeedKmh":{"type":["number","null"],"description":"The maximum speed, in kilometers per hour."}}},"AssetTrips":{"type":"object","required":["assetId","title","figures"],"properties":{"assetId":{"type":"string","format":"uuid","description":"The ID of the asset."},"title":{"type":["string","null"],"description":"The title of the asset, or `null` when Reports has none."},"figures":{"$ref":"#/components/schemas/TripFigures"}}}}}}
```

## The TripFigures object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"TripFigures":{"type":"object","description":"Trip and stop figures. `null` means no data, which isn't zero.","required":["trips","distanceM","drivingS","stops","stopS","maxSpeedKmh"],"properties":{"trips":{"type":"integer","description":"The number of trips."},"distanceM":{"type":["integer","null"],"description":"The distance, in meters."},"drivingS":{"type":["integer","null"],"description":"The time that the assets moved, in seconds."},"stops":{"type":"integer","description":"The number of stops."},"stopS":{"type":"integer","description":"The time of the stops, in seconds."},"maxSpeedKmh":{"type":["number","null"],"description":"The maximum speed, in kilometers per hour."}}}}}}
```

## The AssetTrips object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"AssetTrips":{"type":"object","required":["assetId","title","figures"],"properties":{"assetId":{"type":"string","format":"uuid","description":"The ID of the asset."},"title":{"type":["string","null"],"description":"The title of the asset, or `null` when Reports has none."},"figures":{"$ref":"#/components/schemas/TripFigures"}}},"TripFigures":{"type":"object","description":"Trip and stop figures. `null` means no data, which isn't zero.","required":["trips","distanceM","drivingS","stops","stopS","maxSpeedKmh"],"properties":{"trips":{"type":"integer","description":"The number of trips."},"distanceM":{"type":["integer","null"],"description":"The distance, in meters."},"drivingS":{"type":["integer","null"],"description":"The time that the assets moved, in seconds."},"stops":{"type":"integer","description":"The number of stops."},"stopS":{"type":"integer","description":"The time of the stops, in seconds."},"maxSpeedKmh":{"type":["number","null"],"description":"The maximum speed, in kilometers per hour."}}}}}}
```

## The SensorSummary object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"SensorSummary":{"type":"object","title":"sensor_readings","description":"The summary of a `sensor_readings` report.","required":["assets","devices","sensors","samples","series","seriesOmitted"],"properties":{"assets":{"type":"integer","description":"The number of assets with readings."},"devices":{"type":"integer","description":"The number of GPS devices with readings."},"sensors":{"type":"integer","description":"The number of sensors with readings."},"samples":{"type":"integer","description":"The number of readings."},"series":{"type":"array","description":"One line for each sensor with readings, ordered by asset, device, key, unit, and type. At most 50.","items":{"$ref":"#/components/schemas/SensorLine"}},"seriesOmitted":{"type":"integer","description":"The number of sensor lines after the first 50."}}},"SensorLine":{"type":"object","description":"The readings of one sensor of one GPS device over the period, in the unit that the device sends.","required":["assetId","title","deviceId","key","unit","type","average","min","max","first","last","change","samples"],"properties":{"assetId":{"type":"string","format":"uuid","description":"The ID of the asset."},"title":{"type":["string","null"],"description":"The title of the asset, or `null` when Reports has none."},"deviceId":{"type":"string","format":"uuid","description":"The ID of the GPS device."},"key":{"type":"string","description":"The name of the value that the device sends."},"unit":{"type":"string","description":"The unit of measure. An empty string when the value has none."},"type":{"type":"string","description":"The data type of the value as the device sends it."},"average":{"type":"number","description":"The average of all readings."},"min":{"type":"number","description":"The lowest reading."},"max":{"type":"number","description":"The highest reading."},"first":{"type":"number","description":"The first reading of the period."},"last":{"type":"number","description":"The last reading of the period."},"change":{"type":"number","description":"`last` minus `first`: how much a counter, such as mileage, grew. Less when the counter was reset."},"samples":{"type":"integer","description":"The number of readings."}}}}}}
```

## The SensorLine object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"SensorLine":{"type":"object","description":"The readings of one sensor of one GPS device over the period, in the unit that the device sends.","required":["assetId","title","deviceId","key","unit","type","average","min","max","first","last","change","samples"],"properties":{"assetId":{"type":"string","format":"uuid","description":"The ID of the asset."},"title":{"type":["string","null"],"description":"The title of the asset, or `null` when Reports has none."},"deviceId":{"type":"string","format":"uuid","description":"The ID of the GPS device."},"key":{"type":"string","description":"The name of the value that the device sends."},"unit":{"type":"string","description":"The unit of measure. An empty string when the value has none."},"type":{"type":"string","description":"The data type of the value as the device sends it."},"average":{"type":"number","description":"The average of all readings."},"min":{"type":"number","description":"The lowest reading."},"max":{"type":"number","description":"The highest reading."},"first":{"type":"number","description":"The first reading of the period."},"last":{"type":"number","description":"The last reading of the period."},"change":{"type":"number","description":"`last` minus `first`: how much a counter, such as mileage, grew. Less when the counter was reset."},"samples":{"type":"integer","description":"The number of readings."}}}}}}
```

## The ReportLink object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"ReportLink":{"type":"object","required":["report","from","to","assets","view","link"],"properties":{"report":{"type":"string","description":"The ID of the report type."},"from":{"type":"string","format":"date","description":"The first day of the period."},"to":{"type":"string","format":"date","description":"The last day of the period."},"assets":{"description":"`all`, or the list of asset IDs.","oneOf":[{"type":"string","const":"all"},{"type":"array","items":{"type":"string","format":"uuid"}}]},"view":{"type":"object","description":"The view options of the report, as checked. Empty for the default view.","additionalProperties":true},"adjusted":{"type":"object","description":"What the response changed from the request, one entry for each field, and why. Missing when nothing changed.","additionalProperties":{"type":"string"}},"link":{"type":"string","format":"uri","description":"The address that opens the report in Location Intelligence, with the organization and the workspace of the token."}}}}}}
```

## The View object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"View":{"type":["object","null"],"description":"The view options of the report page. `trips_and_stops` accepts `tab` and `kind`, `sensor_readings` accepts `step`, and `driver_performance` accepts none. Leave it out for the default view.","additionalProperties":false,"properties":{"tab":{"type":"string","description":"`trips_and_stops` only. `days` opens the summary day by day, and an asset ID of the report opens the tab of that asset."},"kind":{"type":"string","enum":["trip","stop"],"description":"`trips_and_stops` only. Shows only trips or only stops in the log."},"step":{"type":"integer","enum":[300,600,1800,3600,14400,86400],"description":"`sensor_readings` only. The length of each point of the table and the chart, in seconds."}}}}}}
```

## The Error object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Reports API","version":"1.0.0"},"components":{"schemas":{"Error":{"type":"object","description":"The body of every error response except HTTP 401.","required":["code","message"],"properties":{"code":{"type":"string","description":"What went wrong. Your app checks this field to decide what to do.","enum":["product_not_enabled","insufficient_rights","roles_unresolved","token_incomplete","template_not_found","trip_not_found","invalid_report_parameters","report_too_large","report_source_not_configured","report_source_unavailable","not_implemented","internal_error","not_found","method_not_allowed","unsupported_media_type","bad_request","invalid_tool_call","tool_rate_limited","tool_unavailable"]},"message":{"type":"string","description":"The error in English, for a person to read. It can change, so don't check it in code."},"details":{"type":"object","description":"More about the error, when the code has more to say. For `invalid_report_parameters` and `invalid_tool_call`, each key is a wrong field of the request, and its value says what the field must be. For `token_incomplete`, `claim` names the missing claim of the token.","additionalProperties":{"type":"string"}}}}}}}
```


---

# 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://navixy.com/docs/analytics-api/products/reports/api-reference.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.
