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

# Get Tasks Aggregated Data

Export per-user task progress (starts, completions, time to complete) for a property within a date range.

```json
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"servers":[{"url":"https://api.userlane.com/analytics"}],"security":[{"ApiTokenAuth":[]}],"components":{"securitySchemes":{"ApiTokenAuth":{"type":"http","scheme":"bearer"}},"schemas":{"TasksAggregatedDataResponse":{"properties":{"start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"},"data":{"items":{"$ref":"#/components/schemas/TasksAggregatedData"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/CursorPaginationResponse"}},"type":"object","required":["start","end","data","pagination"],"title":"TasksAggregatedDataResponse"},"TasksAggregatedData":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"taskId":{"type":"integer","title":"Taskid"},"user":{"$ref":"#/components/schemas/PublicUserModel"},"starts":{"type":"integer","title":"Starts"},"completions":{"type":"integer","title":"Completions"},"totalTimeToComplete":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Totaltimetocomplete"}},"type":"object","required":["date","taskId","user","starts","completions"],"title":"TasksAggregatedData","description":"Per-user, per-day task progress row."},"PublicUserModel":{"properties":{"id":{"type":"string","title":"Id"},"applicationUserId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicationuserid"}},"type":"object","required":["id"],"title":"PublicUserModel"},"CursorPaginationResponse":{"properties":{"limit":{"type":"integer","exclusiveMinimum":0,"title":"Limit"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcursor","description":"Opaque cursor for the next page. Pass it back as the `cursor` query parameter to fetch the following page. Null when there are no more results."}},"type":"object","required":["limit"],"title":"CursorPaginationResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/public/tasks/property_id/{property_id}/aggregated":{"get":{"tags":["public"],"summary":"Get Tasks Aggregated Data","description":"Export per-user task progress (starts, completions, time to complete) for a\nproperty within a date range.","operationId":"get_tasks_aggregated_data_public_tasks_property_id__property_id__aggregated_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque pagination cursor from the previous response's `nextCursor`. Omit to fetch the first page.","title":"Cursor"},"description":"Opaque pagination cursor from the previous response's `nextCursor`. Omit to fetch the first page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"exclusiveMinimum":0,"description":"Maximum number of records to return per page","default":1000,"title":"Limit"},"description":"Maximum number of records to return per page"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Type of date range..","default":"custom","title":"Type"},"description":"Type of date range.."},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string"},{"type":"null"}],"description":"Start date of the range. Can be ISO date ('2024-01-01') or datetime ('2024-01-01T00:00:00.000Z')","title":"Start"},"description":"Start date of the range. Can be ISO date ('2024-01-01') or datetime ('2024-01-01T00:00:00.000Z')"},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string"},{"type":"null"}],"description":"End date of the range. Can be ISO date ('2024-12-31') or datetime ('2024-12-31T23:59:59.999Z')","title":"End"},"description":"End date of the range. Can be ISO date ('2024-12-31') or datetime ('2024-12-31T23:59:59.999Z')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksAggregatedDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# 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://docs.userlane.com/developers/analytics-api/public/get-tasks-aggregated-data.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.
