※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。

Supported Formats

json

Examples

GET /api/v1/time_entries
200
[
  {
    "id": 85,
    "time_trackable_id": 992,
    "time_tracker_id": 260,
    "updated_at": "2022-04-01T21:00:00.000+09:00",
    "amount": 0,
    "input_type": "realtime",
    "started_at": "2022-04-01T20:00:00.000+09:00",
    "stopped_at": "2022-04-01T20:30:00.000+09:00",
    "duration": 1800.0,
    "html_url": "http://test.host/app/mytasks/992/edit",
    "user": {
      "id": 260,
      "email": "lincoln.ward@treutel.example",
      "nickname": "Ted Treutel",
      "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
      "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
      "daily": true,
      "weekly": true,
      "calendar_zoom_rate": 1,
      "daily_time": "17:00",
      "has_password": true,
      "html_url": "http://test.host/app/users/260/calendar",
      "is_deactivated": false
    },
    "task": {
      "id": 992,
      "key": "http://hermiston.example/youlanda",
      "title": "Nulla est qui exercitationem.",
      "url": "http://hermiston.example/youlanda",
      "safe_url": "http://hermiston.example/youlanda",
      "label": "[Tennessee gooses] Nulla est qui exercitationem.",
      "team_id": 465,
      "parent_id": 991,
      "root_id": 991,
      "category": {
        "id": 991,
        "title": "key45",
        "color": 1
      },
      "team": {
        "name": "Tennessee gooses"
      }
    },
    "formatted_duration": "00:30",
    "team": {
      "id": 465,
      "name": "Tennessee gooses",
      "created_at": "2022-04-01T21:00:00.000+09:00",
      "updated_at": "2022-04-01T21:00:00.000+09:00",
      "deleted_at": null,
      "time_limit": 0,
      "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0T///////8JWPfcAAABZElEQVR42u3coUpDURyA8XN0srKiUcGgLBgMgq/gC6hFVHwDBdssaxMMFpEFxaAMkyALZhHBsDhQiwgmsQzHioIcH2Bl4J0f0+9XDxz+937cEy7cG0ulSqXRCIIM0QP8dwaAGQBmAJgBYAaAGQCWy2qjuBt3wnw8jJvxhL6o/krtVAjV1E6FVP35bpkFmLkono7Ori0urU83ydvTf82Jh/3WwfnG5cdTBrt5BMEMADMAzACwOFhvQ8vH28tzU/m3fHF4rHv1+fblqzN+dFXbe6zTk/bKJwBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAGQBmAJgBYAaAZfa3lN9xXb+7f90aiblaPOtebU2+33yuhNWwQM/ZuwH7Uv7v8QiCGQBmAJgBYAaAGQBmANg3fkU4PNwQ87oAAAAASUVORK5CYII=",
      "ancestry": null,
      "html_url": "http://test.host/app/teams/465/edit",
      "descendants_names": [],
      "payment_required": false,
      "price_users_count": 1,
      "payable": true,
      "free_ends_at": "2022-04-15T21:00:00.000+09:00",
      "rounding": "floor",
      "capacity": null,
      "premium": false,
      "personal": false
    }
  }
]
GET /api/v1/time_entries
200
[
  {
    "id": 86,
    "time_trackable_id": 995,
    "time_tracker_id": 261,
    "updated_at": "2022-04-01T21:00:00.000+09:00",
    "amount": 0,
    "input_type": "realtime",
    "started_at": "2022-04-01T20:00:00.000+09:00",
    "stopped_at": "2022-04-01T20:30:00.000+09:00",
    "duration": 1800.0,
    "html_url": "http://test.host/app/mytasks/995/edit",
    "user": {
      "id": 261,
      "email": "elana@ryan.test",
      "nickname": "Latrisha Parisian IV",
      "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
      "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
      "daily": true,
      "weekly": true,
      "calendar_zoom_rate": 1,
      "daily_time": "17:00",
      "has_password": true,
      "html_url": "http://test.host/app/users/261/calendar",
      "is_deactivated": false
    },
    "task": {
      "id": 995,
      "key": "http://weissnat.example/annamae",
      "title": "Est qui incidunt ipsam.",
      "url": "http://weissnat.example/annamae",
      "safe_url": "http://weissnat.example/annamae",
      "label": "[Missouri exorcists] Est qui incidunt ipsam.",
      "team_id": 466,
      "parent_id": 994,
      "root_id": 994,
      "category": {
        "id": 994,
        "title": "key46",
        "color": 1
      },
      "team": {
        "name": "Missouri exorcists"
      }
    },
    "formatted_duration": "00:30",
    "team": {
      "id": 466,
      "name": "Missouri exorcists",
      "created_at": "2022-04-01T21:00:00.000+09:00",
      "updated_at": "2022-04-01T21:00:00.000+09:00",
      "deleted_at": null,
      "time_limit": 0,
      "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0T///////8JWPfcAAAJMUlEQVR42u2ce1QU1x3H792Z2QXB1xYNKF0eAsLGoAerVCtGqzwSjAY1C9RTCfGIBc0xVo01xGMVjaYmkhwjxhiL1tZFBRFzRB6JEjQYBa1tcIGVXTYIokYExcfCvPrHYIPO3nUFZme23c9fe+b3m3t/v/u9M/exdxf6+WVldXQAJyIhEzuA/3ecAoiMUwCRcQogMk4BRMYpgMg4BRAZvHe3LX5r3H15uts64gH41Bb/XK/aOGpNk0tHBbNO7JSfTeqPYXvkRxQMNhsk2+J/9tOmJvpC1Sct42n189bVewE6iHSP9103Qpv83RYSJhi0+WwF6BSw4frOhNe9wrHG1dvDU+U2NT1HJ0aHdV2p8umNAHZ6Bc1TBEcS6+QqrBm+YZ8ae0dClLqM+M6eNdpJgC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C5sW3QNvrT6QzBQ7M8tITgCOnN06K1vW0Yf9mnET93nCCq9LMt2geoUCXOJ7nnzXWEB53I00Z7JBYudkGYkKcLSuLoDMJMuZzeAk38o1unKB61HIzBzjOxXPR5UjzYG3JxIVoG2z+Wt2UPGEhk3USxaCzoYRICDqJz8l/v2MWb5X8L/zfYwD2tew3hcuX0+ilc+uTzwkKgBHTonOypb10n1hy+VnfDWDY6GFk3faEmurCukgaQHOxTUXUY2Nqfe2shZOKow0D5wMLZwj6mpkRoIjeZ11paTgp4z6jqQFYH3ZLHD/0Hs1HuRc2+8qfsM4kvLjjpWLncGzkbQAHLmTaluopfQGNhFctsVfattt1nEAAX6SP/RgjKc+M+2k/2Dds+HC3Vj2V98Pbd5Gd9lWtvg4gAAc2pKaZw6qOQ4y8PbEYQT4VtkYQe/mTi/zrdyKIder9nVLJzulTC//K8L+cCeW1y0rZzt3hcJhf36y5zS5dFSwFW1eZiUryBFa4XAYAThOfWbaSaWe8jMB3unSOOBgfZ8DOv+2UlwcZgz4X8UpgMg4BRAZpwAi4xRAZJwCiIxTAJFxCiAy/wH3LmJYvyjHkwAAAABJRU5ErkJggg==",
      "ancestry": null,
      "html_url": "http://test.host/app/teams/466/edit",
      "descendants_names": [],
      "payment_required": false,
      "price_users_count": 1,
      "payable": true,
      "free_ends_at": "2022-04-15T21:00:00.000+09:00",
      "rounding": "floor",
      "capacity": null,
      "premium": false,
      "personal": false
    }
  }
]

Params

Param name Description
stopped_at
optional

Stopped at (unixtime)

Validations:

  • Must be a number.

started_since
optional

Started at since (unixtime)

Validations:

  • Must be a number.

started_until
optional

Started at until (unixtime)

Validations:

  • Must be a number.

created_since
optional

Started at since (unixtime)

Validations:

  • Must be a number.

updated_since
optional

Updated at since (unixtime)

Validations:

  • Must be a number.

deleted_since
optional

Deleted at since (unixtime)

Validations:

  • Must be a number.

input_type
optional

Validations:

  • Must be one of: realtime, manual, automation.

team_id
optional

Validations:

  • Must be a number.

user_id
optional

Validations:

  • Must be a number.

category_id
optional

Validations:

  • Must be a number.

per_page
optional

Validations:

  • Must be a number.

page
optional

Validations:

  • Must be a number.