time-entries
Get the current timer
Return the current running time entry, or item=null when no timer is running.
Request example
Replace path and request parameters with actual values. For requests with a body, save it as request.json using the schema above.
Responses
200
Successful response; status depends on the operation result.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| item | object | null | Yes | Single resource, or null |
| item (anyOf 1) | object | No | {"additionalProperties":false} |
| item (anyOf 1).id | string | Yes | Resource, job or operation identifier |
| item (anyOf 1).version | string | Yes | Version as a decimal string; do not convert to a floating-point number {"pattern":"^(0|[1-9][0-9]*)$"} |
| item (anyOf 1).etag | string | Yes | Concurrency tag; preserve quotes when sending If-Match |
| item (anyOf 1).updatedAt | string | Yes | Last server update timestamp |
| item (anyOf 1).operationId | string | No | Request receipt identifier; no status polling is needed |
| item (anyOf 1).deletedAt | string | No | Deletion timestamp |
| item (anyOf 1).startTime | string | null | No | Start timestamp in ISO 8601 with a time zone |
| item (anyOf 1).startTime (anyOf 1) | string | No | |
| item (anyOf 1).startTime (anyOf 2) | null | No | |
| item (anyOf 1).stopTime | string | null | No | Stop timestamp; null means running |
| item (anyOf 1).stopTime (anyOf 1) | string | No | |
| item (anyOf 1).stopTime (anyOf 2) | null | No | |
| item (anyOf 1).detail | string | null | No | Entry description |
| item (anyOf 1).detail (anyOf 1) | string | No | |
| item (anyOf 1).detail (anyOf 2) | null | No | |
| item (anyOf 1).note | string | null | No | Note |
| item (anyOf 1).note (anyOf 1) | string | No | |
| item (anyOf 1).note (anyOf 2) | null | No | |
| item (anyOf 1).projectId | string | null | No | Project ID, or null |
| item (anyOf 1).projectId (anyOf 1) | string | No | |
| item (anyOf 1).projectId (anyOf 2) | null | No | |
| item (anyOf 1).tagIds | array<string> | No | Tag IDs; comma-separated GET filter, array in bodies |
| item (anyOf 1).tagIds[] | string | No | |
| item (anyOf 1).source | string | null | No | Source label |
| item (anyOf 1).source (anyOf 1) | string | No | |
| item (anyOf 1).source (anyOf 2) | null | No | |
| item (anyOf 1).state | string | No | Entry, job or operation state; meaning depends on the endpoint |
| item (anyOf 1).durationSeconds | number | null | No | Duration in seconds; may be fractional |
| item (anyOf 1).durationSeconds (anyOf 1) | number | No | |
| item (anyOf 1).durationSeconds (anyOf 2) | null | No | |
| item (anyOf 2) | null | No | |
| meta | object | Yes | Evaluation metadata |
| meta.evaluatedAt | string | Yes | Server evaluation timestamp |
| meta.elapsedSeconds | number | null | Yes | Elapsed seconds at evaluation time |
| meta.elapsedSeconds (anyOf 1) | number | No | |
| meta.elapsedSeconds (anyOf 2) | null | No |
Complete JSON Schema
400, 401, 403, 404, 429, 500, 503
Error response; branch on code.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| code | string | Yes | Machine-readable error code |
| message | string | No | Error message; use code for program logic |
| requestId | string | No | Request trace identifier |
| operationId | string | No | Request receipt identifier; no status polling is needed |