Skip to main content
GET
/
hours
Get Hours
curl --request GET \
  --url https://api.projectcor.com/v1/hours \
  --header 'Authorization: Bearer <token>'
{
  "total": "<string>",
  "perPage": 123,
  "page": 123,
  "lastPage": 123,
  "data": [
    {
      "id": 123,
      "task_log_id": 123,
      "start": "2023-11-07T05:31:56Z",
      "stop": "2023-11-07T05:31:56Z",
      "status": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
default:1

Page number (default: 1). Set to false to disable pagination.

perPage
integer
default:20

Number of items per page (default: 20).

filters
string

URL-encoded JSON object with filter criteria. Available fields: dateStart (YYYY-MM-DD), dateDeadline (YYYY-MM-DD), clients (array), projects (array), users (array), labels (array), teams (array).

orderBy
string

URL-encoded JSON object for sorting. Example: {"by":"start","order":"ASC"}.

Response

200 - application/json

Paginated list of time entries

Paginated response for time entries list

total

Total number of time entries

perPage
integer

Number of items per page

page
integer

Current page number

lastPage
integer

Last available page number

data
object[]

Array of time entries for the current page