---
title: "Retrieve Task"
method: GET
path: "/tasks/{id}"
tags: ["Tasks"]
---

# Retrieve Task

`GET /tasks/{id}`

## Request

- Base URL: `https://timelodge.com/api/v1`
- URL: `https://timelodge.com/api/v1/tasks/{id}`
- Auth: HTTP bearer

Returns the current representation and an ETag for optimistic concurrency. Requires `tasks:read`.

## Path parameters

- `id` integer, required

## Response `200`

The resource.

- TaskResponse
  - `data` Task, required
    - `id` integer, nullable
    - `name` string, nullable
    - `code` string, nullable
    - `billable_by_default` boolean, nullable
    - `is_active` boolean, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `version` string: Opaque representation version used for optimistic concurrency.

## Other responses

- `401`: Missing or invalid token.
- `403`: The token lacks the required scope.
- `404`: Resource not found.
- `429`: Rate limit exceeded.

---

[API](https://skmtc.dev/timelodge/apis/timelodge-api.md) · [All operations](https://skmtc.dev/timelodge/apis/timelodge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/timelodge/apis/timelodge-api/revisions/9072baafaa20?raw)
