---
title: "Retrieve a timeentry"
method: GET
path: "/legal/{connection_id}/timeentry/{id}"
tags: ["legal", "timeentry"]
---

# Retrieve a timeentry

`GET /legal/{connection_id}/timeentry/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/legal/{connection_id}/timeentry/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Response `200`

Successful

- LegalTimeentry
  - `id` string: unique identifier for the time entry
  - `created_at` string, date-time: when the time entry was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: when the time entry was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `matter_id` string: pointer to the Legal Matter this time is recorded against
  - `user_id` string: HR Employee who is the timekeeper (reference to HrisEmployee)
  - `description` string: description of the work performed
  - `worked_at` string, date-time: date the work was performed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `minutes` number: duration worked, in minutes
  - `billable_minutes` number: billable duration after rounding, in minutes
  - `rate_amount` number: hourly rate, or the flat amount for flat-rate entries
  - `total_amount` number: total amount of the time entry
  - `currency` string: ISO 4217 currency code
  - `is_billable` boolean: whether the time entry is billable
  - `is_billed` boolean: whether the time entry has been billed
  - `invoice_id` string: pointer to the Accounting Invoice this time was billed on (reference to AccountingInvoice)
  - `activity_code` string: UTBMS/LEDES activity code
  - `task_code` string: UTBMS/LEDES task code
  - `metadata` LegalMetadata[]: custom field values
    - `id` string: the custom field identifier
    - `slug` string: the custom field key
    - `value` unknown
    - `namespace` string: the scope or origin of the custom field
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL': the data type of the value
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
