Get time spents

GET /data/user/time-spents

Retrieve all time spent entries for the current user. Optionally accepts date range parameters to filter results.

Query parameters

  • start_date string(date)

    Start date for filtering time spents

  • end_date string(date)

    End date for filtering time spents

Responses

  • 200 application/json

    Time spent entries for the current user

    Hide response attributes Show response attributes object
    • id string(uuid)

      Time spent unique identifier

    • person_id string(uuid)

      Person identifier

    • task_id string(uuid)

      Task identifier

    • date string(date)

      Date of time spent

    • duration number

      Duration in seconds

    • created_at string(date-time)

      Creation timestamp

    • updated_at string(date-time)

      Last update timestamp

  • 400

    Wrong date format

GET /data/user/time-spents
curl \
 --request GET 'http://api.example.com/data/user/time-spents' \
 --header "Authorization: $API_KEY"
Response examples (200)
[
  {
    "id": "a24a6ea4-ce75-4665-a070-57453082c25",
    "person_id": "b35b7fb5-df86-5776-b181-68564193d36",
    "task_id": "c46c8gc6-eg97-6887-c292-79675204e47",
    "date": "2023-01-01",
    "duration": 3600,
    "created_at": "2023-01-01T12:00:00Z",
    "updated_at": "2023-01-01T12:30:00Z"
  }
]