Get all time spents for the given person.

GET /data/persons/{person_id}/time-spents

Optionally can accept date range parameters.

Path parameters

  • person_id string(uuid) Required

Query parameters

  • start_date string(date)
  • end_date string(date)

Responses

  • 200 application/json

    All time spents for the given person

    Hide response attributes Show response attributes object
    • id string(uuid)
    • person_id string(uuid)
    • duration number(float)
    • date string(date)
  • 400

    Invalid date range parameters

  • 404

    Person not found

GET /data/persons/{person_id}/time-spents
curl \
 --request GET 'http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents' \
 --header "Authorization: $API_KEY"
Response examples (200)
[
  {
    "id": "string",
    "person_id": "string",
    "duration": 42.0,
    "date": "2025-05-04"
  }
]