Skip to main content
GET
/
api
/
v1
/
tasks
/
analytics
Get task analytics for a date range
curl --request GET \
  --url https://znift.com/api/v1/tasks/analytics \
  --header 'x-api-key: <api-key>'
{
  "totalTasks": 123,
  "completedTasks": 123,
  "completionRate": 123,
  "currentStreak": 123,
  "priorityBreakdown": {},
  "dailyStats": [
    {
      "date": "<string>",
      "total": 123,
      "completed": 123
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key with znift_ prefix. Create one in Profile > API Keys.

Query Parameters

startDate
string<date>
required

Start date (YYYY-MM-DD)

endDate
string<date>
required

End date (YYYY-MM-DD)

Response

200 - application/json

Analytics data

totalTasks
number
completedTasks
number
completionRate
number

Percentage 0-100

currentStreak
number

Consecutive days with completed tasks

priorityBreakdown
object
dailyStats
object[]