Skip to content
Hoursmith Docs
APIReferenceTime entries

List time-entries

GET
/time-entries

Authorization

BearerAuth
AuthorizationBearer <token>

Personal Access Token. Mint at Settings → API. Token shape: hsk_<env>_<prefix12>_<secret32>.

In: header

Query Parameters

cursor?string

Opaque pagination cursor — nextCursor from a previous response.

limit?integer

Page size (1–200, default 50).

sort?string

Sort field, optionally prefixed with - for descending (Stripe-style). Defaults to -createdAt (newest first). The allowed fields differ per resource — see each list* operation. Common examples: ?sort=-paidAt (latest paid invoice), ?sort=dueDate (earliest due first), ?sort=name (alphabetical). Cursors are sort-aware: keep the same sort= when paginating. Allowed sort fields for time-entries: createdAt, durationSeconds, entryDate, id, updatedAt.

search?string

Case-insensitive partial match across: note. Max 200 chars.

projectId?string

Owning project UUID.

taskId?string

Owning task UUID.

userId?string

Owner/Admin only — filter by user. Member tokens pinned to self regardless.

billable?string

Boolean — true/false/1/0/yes/no.

entryDateFrom?string

Inclusive lower bound on entryDate. Accepts YYYY-MM-DD (treated as UTC midnight) or full ISO timestamp.

entryDateTo?string

Inclusive upper bound on entryDate. YYYY-MM-DD is treated as end-of-day so the date is fully included.

createdAtFrom?string

Inclusive lower bound on createdAt. Accepts YYYY-MM-DD (treated as UTC midnight) or full ISO timestamp.

createdAtTo?string

Inclusive upper bound on createdAt. YYYY-MM-DD is treated as end-of-day so the date is fully included.

durationSecondsMin?string

Inclusive lower bound on durationSeconds. Accepts decimal-string values like "150.00" to preserve precision.

durationSecondsMax?string

Inclusive upper bound on durationSeconds.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/time-entries"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",      "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",      "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",      "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",      "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec",      "durationSeconds": 0,      "billable": true,      "note": "string",      "entryDate": "2019-08-24",      "startedAt": "2019-08-24T14:15:22Z",      "stoppedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "deletedAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "limit": 1,    "nextCursor": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string"  }}
Was this page helpful?