---
title: "Get Time Blocks"
method: GET
path: "/v1/time-blocks"
tags: ["time-blocks"]
---

# Get Time Blocks

`GET /v1/time-blocks`

## Request

- Base URL: `https://app.tokumalabs.com/api`
- URL: `https://app.tokumalabs.com/api/v1/time-blocks`
- Auth: OAuth 2
  - Password
  - Token URL: `v1/auth/token`

Get time blocks for the specified date.

This endpoint returns raw time blocks for the chronology display.
For managing time entries (create, update, delete, release), use the /time-entries endpoints.

## Query parameters

- `date` string, date, required: Date to get time blocks for (YYYY-MM-DD)
- `source_types` TimeBlockSourceType[], nullable: Optional filter restricting returned time blocks by source type. Repeat the parameter for multiple values (e.g. ?source_types=APP&source_types=MS365_CALL). Omit to return blocks from every source.

## Response `200`

Successful Response

- TimeBlockListResponse: Response model for a list of time blocks.
  - `time_blocks` TimeBlockDto[], required: List of time blocks for the specified date
    - `id` string, required: Unique identifier of the time block
    - `start_time` string, date-time, required: Start time of the block
    - `end_time` string, date-time, required: End time of the block
    - `headline` string, required: Human-readable description of the time block
    - `is_live` boolean, required: Whether the time block is live (still being updated)
    - `app_id` string, nullable: Application code
    - `app_name` string, nullable: Application display name
    - `icon_label` string, nullable: Short label (1-2 letters) for client-side icon display
    - `matter_segment` MatterSegmentSummaryDto: Summary of matter and segment for time blocks.
      - `matter_id` string, required: Matter ID
      - `matter_name` string, required: Matter name
      - `segment_id` string, required: Segment ID
      - `segment_name` string, required: Segment name
      - `segment_order` integer, required: Display order of the segment within the matter
      - `is_root` boolean, required: Whether this is the root segment
      - `root_segment_id` string, nullable: Root segment ID of the matter
    - `time_entry_id` string, nullable: ID of the associated time entry
    - `source_type` 'APP' | 'MS365_CALL' | 'MS365_EMAIL' | 'MS365_CALENDAR_EVENT': Source of a time block.

## Other responses

- `400`: Validation error or domain rule violation.
- `401`: Missing, expired, or invalid authentication.
- `403`: Authenticated but not permitted.
- `404`: Resource not found.
- `409`: Resource state conflict (duplicate, illegal transition).
- `422`: Request body failed schema validation.
- `500`: Server-side failure.

---

[API](https://skmtc.dev/tokumalabs/apis/tokuma-user-api.md) - [All operations](https://skmtc.dev/tokumalabs/apis/tokuma-user-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tokumalabs/apis/tokuma-user-api/revisions/1f8201af459b?raw)
