time-entries #156
- userId
-
Simeon Robel @simeon_robel12
- taskId
- tasks/547
- projectId
- —
- description
- API integration
- startedAt
- endedAt
- durationMinutes
- 162
- createdAt
Overview
time-entries / #156
#156
#156
API integration
Request
curl example
curl -sS \ "https://example-data.com/api/v1/time-entries/156" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/time-entries/156" ); const timeEntry = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/time-entries.d.ts https://example-data.com/types/time-entries.d.ts
import type { TimeEntry } from "./types/time-entries";
const res = await fetch(
"https://example-data.com/api/v1/time-entries/156"
);
const timeEntry = (await res.json()) as TimeEntry; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/time-entries/156"
)
time_entrie = res.json() Response
{
"id": 156,
"userId": 55,
"taskId": 547,
"projectId": null,
"description": "API integration",
"startedAt": "2025-12-17T23:58:21.769Z",
"endedAt": "2025-12-18T02:40:21.769Z",
"durationMinutes": 162,
"createdAt": "2025-12-18T02:40:21.769Z"
}