GET
/
tasks
/
analytics
Get task analytics
curl --request GET \
  --url https://stoplight.io/mocks/replyteam/reply/765516802/tasks/analytics
{
  "data": [
    {
      "date": "2023-12-25",
      "taskType": "<string>",
      "total": 123,
      "completed": 123,
      "pending": 123,
      "skipped": 123
    }
  ]
}

Query Parameters

timeBucket
enum<string>
required

Time bucket for analytics (day, week, month)

Available options:
day,
week,
month
startDate
string
required

Start date for analytics (YYYY-MM-DD)

endDate
string
required

End date for analytics (YYYY-MM-DD)

Response

200 - application/json

Task analytics retrieved successfully

The response is of type object.