GET /v1/blocks to retrieve your study blocks. You can filter by a specific date, a date range, a subject ID, or completion status. Without any filters, the endpoint returns all blocks.
Endpoint
Query Parameters
string
Filter blocks by an exact date. Must be in
YYYY-MM-DD format. Cannot be combined with date_from or date_to.string
Start of a date range filter. Must be in
YYYY-MM-DD format. Use together with date_to to define a range.string
End of a date range filter. Must be in
YYYY-MM-DD format. Use together with date_from to define a range.string
Filter blocks by a specific subject. Only blocks belonging to the given subject ID are returned.
boolean
Filter by completion status. Pass
true to return only completed blocks, or false to return only incomplete blocks.Response
Returns an array of block objects inside thedata field.
string
Unique identifier for the study block.
string
The ID of the subject this block belongs to.
string
The display name of the subject.
string
The date of the block in
YYYY-MM-DD format.string
The block’s start time in
HH:MM format.string
The block’s end time in
HH:MM format.string
An optional topic or syllabus item label attached to this block. May be
null.boolean
Whether the block has been marked as complete.
Examples
To fetch blocks for a single day, use the
date parameter rather than setting date_from and date_to to the same value.