Other types

Learn about the other types supported by the items history and aggregate history queries

🚧

Only available in API versions 2026-10 and later

The monday.com board history API lets you read the state of a board's items and aggregated board data as they were at specific points in time.

The types below are used by the items_history and aggregate_history queries and are not independently queryable.

Items history types

ItemsHistoryQueryInput

Input for querying historical item data from a board at a specific date.

FieldTypeDescription
fromItemsHistoryFromInput!The data source for the query (board with TABLE type).
at_timestamps[String!]!Array of ISO timestamp/date strings to retrieve historical snapshots for.
select[ItemsHistorySelectElementInput!]Columns and functions to include in the results. If omitted, all tracked columns are returned.
queryItemsHistoryItemsQueryInputFilters for items. Without filters, all items are included.
order_by[ItemsHistoryOrderByInput!]Sort configuration. Defaults to ordering by item ID.
limitIntMaximum number of items to return. Default: 50, max: 500.
afterStringCursor for forward pagination. Returns items after this cursor position.

ItemsHistoryResultSet

The complete result set from an items_history query.

FieldTypeDescription
results[ItemsHistoryItem!]Array of item snapshots at the requested timestamp.
afterStringCursor for the next page. Null if there are no more results.
earliest_availableStringWhen partial results are returned (some requested timestamps preceded the queryable range), the ISO 8601 date of the earliest available data. Null when the full requested range was served.
range_limit_reasonHistoricalRangeLimitReasonWhy the range was limited. Set alongside earliest_available; null when nothing was dropped.

ItemsHistoryColumnResult

The raw value of a column for a historical item.

FieldTypeDescription
valueJSONThe raw column value at the given timestamp.

ItemsHistoryFilterGroupInput

A group of filter rules that can be combined with AND/OR logic. Supports nesting.

FieldTypeDescription
operatorItemsHistoryQueryOperatorThe logical operator to combine rules within this group.
rules[ItemsHistoryFilterRuleInput!]Filter rules in this group.
groups[ItemsHistoryFilterGroupInput!]Nested filter groups for complex logic.

ItemsHistoryFilterOperator

Comparison operators for filtering items in items history queries.

ValueDescription
ANY_OFMatch any of the specified values (OR).
NOT_ANY_OFMatch none of the specified values.
GREATER_THANValue is greater than the specified value.
GREATER_THAN_OR_EQUALSValue is greater than or equal to the specified value.
LOWER_THANValue is less than the specified value.
LOWER_THAN_OR_EQUALValue is less than or equal to the specified value.
STARTS_WITHText starts with the specified substring.
ENDS_WITHText ends with the specified substring.
IS_EMPTYValue is empty or null.
IS_NOT_EMPTYValue is not empty or null.

ItemsHistoryFilterRuleInput

A single filter rule for matching items based on column values.

FieldTypeDescription
column_idID!The unique identifier of the column to filter by.
operatorItemsHistoryFilterOperator!The comparison operator to use.
compare_valueJSONThe value(s) to compare against. Can be a string, number, boolean, or array.
compare_attributeStringFor columns whose value has multiple comparable parts (such as timeline columns with a start and end date), indicates which part to compare. For example, set "date" to compare against the timeline date. Leave unset for columns with a single comparable value.

ItemsHistoryFromElement

The source type for the items history query.

ValueDescription
TABLEQuery historical snapshots of board/table data at a specific date.

ItemsHistoryFromInput

The source table and its ID for the items history query.

FieldTypeDescription
typeItemsHistoryFromElement!The source type. Must be TABLE for historical queries.
idID!The unique identifier of the source board.

ItemsHistoryFunction

The function to apply to a column value.

ValueDescription
AVERAGECalculate the average of numeric values.
COLORGet the hex color value.
COUNTCount all values.
COUNT_DISTINCTCount distinct values.
COUNT_ITEMSCount items.
FIRSTGet the first value.
IDGet the ID/index value.
IS_DONECheck if the status is a done state.
LABELGet the label text.
LENGTHGet the length of a value.
LOWERConvert text to lowercase.
MAXGet the maximum value.
MEDIANCalculate the median.
MINGet the minimum value.
SUMCalculate the sum of numeric values.
TRIMTrim whitespace from a text value.
UPPERConvert text to uppercase.

ItemsHistoryFunctionResult

The result of a function applied to a column value (e.g. SUM, LABEL, COLOR).

FieldTypeDescription
valueJSONThe computed result from the function.

ItemsHistoryItem

A historical snapshot of an item at a specific timestamp.

FieldTypeDescription
item_idIDThe unique identifier of the item.
nameStringThe item's name at the given timestamp.
timestampStringThe timestamp this snapshot corresponds to (from the provided at_timestamps).
entries[ItemsHistoryResultEntry!]The selected field values for this item at the given timestamp.

ItemsHistoryItemsQueryInput

Filter configuration for selecting which items to include in the items history results.

FieldTypeDescription
operatorItemsHistoryQueryOperatorThe logical operator to combine top-level rules and groups.
rules[ItemsHistoryFilterRuleInput!]Filter rules to apply.
groups[ItemsHistoryFilterGroupInput!]Nested filter groups for complex logic.
ids[ID!]Specific item IDs to include. If provided, only these items are considered.

ItemsHistoryOrderByInput

Configuration for sorting items history results by a column.

FieldTypeDescription
column_idID!The unique identifier of the column to sort by.
directionItemsHistorySortDirectionThe sort direction. Default: ASC.

ItemsHistoryQueryOperator

Logical operators for combining filter rules.

ValueDescription
ANDAll rules must match (AND logic).
ORAny rule can match (OR logic).

ItemsHistoryResultEntry

A single selected field for a historical item, identified by its alias.

FieldTypeDescription
aliasStringThe alias for this field, as defined by the as field in the select input.
valueItemsHistoryResultValueThe value for this field.

ItemsHistoryResultValue

The value of a result entry. Either a raw column value or a function result.

Possible types: ItemsHistoryFunctionResult, ItemsHistoryColumnResult

ItemsHistorySelectColumnInput

Specifies a column to include in the items history results.

FieldTypeDescription
column_idID!The unique identifier of the column to include.

ItemsHistorySelectElementInput

A select element: either a raw column (COLUMN) or a function applied to column(s) (FUNCTION). Use the as alias as the column_id in the response.

FieldTypeDescription
typeItemsHistorySelectKind!The type of selection.
asString!The alias for this element. Used as the column_id in the response.
columnItemsHistorySelectColumnInputThe column to select. Required when type is COLUMN.
functionItemsHistorySelectFunctionInputThe function to apply. Required when type is FUNCTION.

ItemsHistorySelectFunctionInput

Specifies a function to apply to column value(s).

FieldTypeDescription
functionItemsHistoryFunction!The function to apply.
params[ItemsHistorySelectElementInput!]Parameters passed to the function (columns or nested functions).

ItemsHistorySelectKind

Whether this select element is a raw column or a function.

ValueDescription
COLUMNSelect a raw column value.
FUNCTIONApply a function to column value(s).

ItemsHistorySortDirection

Sort direction for ordering items history results.

ValueDescription
ASCSort in ascending order (A-Z, 0-9).
DESCSort in descending order (Z-A, 9-0).

Aggregate history types

AggregateHistoryQueryInput

Input for querying historical aggregated data from a board at specific dates.

FieldTypeDescription
fromAggregateHistoryFromInput!The data source for the aggregation (board with TABLE type).
at_timestamps[String!]!Array of ISO timestamp/date strings to retrieve historical snapshots for.
group_by[AggregateHistoryGroupByInput!]Columns to group results by.
queryAggregateHistoryItemsQueryInputFilters for the items being aggregated. Without filters, all items are included.
select[AggregateHistorySelectInput!]!The fields or functions to include in the results.
limitIntMaximum number of results to return. Default: 1000.

AggregateHistoryResultSet

The complete result set from an aggregate_history query.

FieldTypeDescription
results[AggregateHistoryDateResult!]Array of results, one for each date specified in at_timestamps.
source_boards[SourceBoardInfo!]Boards that contributed to the merged results. Populated for union queries; empty for single-board TABLE queries.
earliest_availableStringWhen partial results are returned (some requested timestamps preceded the queryable range), the ISO 8601 date of the earliest available data. Null when the full requested range was served.
range_limit_reasonHistoricalRangeLimitReasonWhy the range was limited. Set alongside earliest_available; null when nothing was dropped.

AggregateHistoryBasicAggregationResult

The result of an aggregation function.

FieldTypeDescription
resultFloatThe numeric result from the aggregation function.

AggregateHistoryDateResult

Aggregation results for a specific historical date.

FieldTypeDescription
timestampStringThe historical snapshot timestamp, echoing the value supplied in at_timestamps.
entries[AggregateHistoryResultEntry!]The aggregation result entries for this date.

AggregateHistoryFilterGroupInput

A group of filter rules that can be combined with AND/OR logic. Supports nesting.

FieldTypeDescription
operatorAggregateHistoryQueryOperatorThe logical operator to combine rules within this group.
rules[AggregateHistoryFilterRuleInput!]Filter rules in this group.
groups[AggregateHistoryFilterGroupInput!]Nested filter groups for complex logic.

AggregateHistoryFilterOperator

Comparison operators for filtering items in aggregate queries.

ValueDescription
ANY_OFMatch any of the specified values (OR).
NOT_ANY_OFMatch none of the specified values.
GREATER_THANValue is greater than the specified value.
GREATER_THAN_OR_EQUALSValue is greater than or equal to the specified value.
LOWER_THANValue is less than the specified value.
LOWER_THAN_OR_EQUALValue is less than or equal to the specified value.
STARTS_WITHText starts with the specified substring.
ENDS_WITHText ends with the specified substring.
IS_EMPTYValue is empty or null.
IS_NOT_EMPTYValue is not empty or null.

AggregateHistoryFilterRuleInput

A single filter rule for matching items based on column values.

FieldTypeDescription
column_idString!The unique identifier of the column to filter by.
operatorAggregateHistoryFilterOperator!The comparison operator to use.
compare_valueJSONThe value(s) to compare against. Can be a string, number, boolean, or array.
compare_attributeStringFor columns whose value has multiple comparable parts (such as timeline columns with a start and end date), indicates which part to compare. For example, set "date" to compare against the timeline date. Leave unset for columns with a single comparable value.

AggregateHistoryFromElement

The source type for the aggregate history query.

ValueDescription
TABLEQuery historical snapshots of board/table data at specific dates.
UNIONQuery historical snapshots across multiple boards via unified sub-queries.

AggregateHistoryFromInput

The source for the aggregate history query (single board or union of boards).

FieldTypeDescription
typeAggregateHistoryFromElement!The source type: TABLE for a single board, UNION for cross-board queries.
idIDThe board ID. Required when type is TABLE.
unionAggregateHistoryUnionInputUnion sub-queries. Required when type is UNION.

AggregateHistoryFunction

The aggregation function to apply.

ValueDescription
AVERAGECalculate the average of numeric values.
COLORGet the color value.
COUNTCount all values.
COUNT_DISTINCTCount distinct values.
COUNT_ITEMSCount items.
FIRSTGet the first value.
IDGet the ID.
IS_DONECheck if done/completed.
LABELGet the label value.
LENGTHGet the length of a value.
LOWERConvert to lowercase.
MAXGet the maximum value.
MEDIANCalculate the median.
MINGet the minimum value.
SUMCalculate the sum of numeric values.
TRIMTrim whitespace from value.
UPPERConvert to uppercase.
DATE_TRUNC_DAYTruncate a date or datetime value to the day.
DATE_TRUNC_WEEKTruncate a date or datetime value to the week.
DATE_TRUNC_MONTHTruncate a date or datetime value to the month.
DATE_TRUNC_QUARTERTruncate a date or datetime value to the quarter.
DATE_TRUNC_YEARTruncate a date or datetime value to the year.

AggregateHistoryGroupByInput

Configuration for grouping aggregate results by a column.

FieldTypeDescription
column_idString!The unique identifier of the column to group results by.
limitIntThe maximum number of groups to return. Default: 1000.

AggregateHistoryGroupByResult

The group-by key value from the aggregation.

FieldTypeDescription
value_stringStringThe string representation of the group-by value.
value_intIntThe group-by value for whole numbers.
value_floatFloatThe group-by value for decimal numbers.
value_booleanBooleanThe group-by value for booleans.

AggregateHistoryItemsQueryInput

Filter configuration for selecting which items to include in the aggregation.

FieldTypeDescription
operatorAggregateHistoryQueryOperatorThe logical operator to combine top-level rules and groups.
rules[AggregateHistoryFilterRuleInput!]Filter rules to apply.
groups[AggregateHistoryFilterGroupInput!]Nested filter groups for complex logic.
ids[ID!]Specific item IDs to include. If provided, only these items are considered.
order_by[AggregateHistoryOrderByInput!]Configuration for ordering results before aggregation.

AggregateHistoryOrderByInput

Configuration for sorting query results by a column.

FieldTypeDescription
column_idString!The unique identifier of the column to sort by.
directionAggregateHistorySortDirectionThe sort direction. Default: ASC.

AggregateHistoryQueryOperator

Logical operators for combining filter rules.

ValueDescription
ANDAll rules must match (AND logic).
ORAny rule can match (OR logic).

AggregateHistoryResultEntry

A single field result from the aggregation, containing the alias and value.

FieldTypeDescription
aliasStringThe name of the field, as defined using the as field in the select input.
valueAggregateHistoryResultValueThe value for this field. Can be an aggregation result or a group-by key.

AggregateHistoryResultValue

The value of an aggregate result entry. Can be an aggregation result or a group-by key.

Possible types: AggregateHistoryBasicAggregationResult, AggregateHistoryGroupByResult

AggregateHistorySelectColumnInput

Specifies a column to select in the aggregation.

FieldTypeDescription
column_idString!The unique identifier of the column.

AggregateHistorySelectFunctionInput

Specifies an aggregation function and its parameters.

FieldTypeDescription
functionAggregateHistoryFunction!The aggregation function to apply.
params[AggregateHistorySelectInput!]Parameters to pass to the function (can include columns or nested functions).

AggregateHistorySelectInput

Specifies a field or function to include in the aggregation results. For union queries, sub-queries may use any function; top-level select is restricted to mergeable functions at validation time.

FieldTypeDescription
typeAggregateHistorySelectKind!The type of selection: COLUMN for direct column values, FUNCTION for aggregations.
asString!The alias for this field in the result set.
columnAggregateHistorySelectColumnInputThe column to select. Required when type is COLUMN.
functionAggregateHistorySelectFunctionInputThe function to apply. Required when type is FUNCTION.

AggregateHistorySelectKind

The type of element to select in the aggregation.

ValueDescription
COLUMNSelect a column value directly.
FUNCTIONApply an aggregation function to column(s).

AggregateHistorySortDirection

Sort direction for ordering results.

ValueDescription
ASCSort in ascending order (A-Z, 0-9).
DESCSort in descending order (Z-A, 9-0).

AggregateHistoryTableFromElement

Table source type for union sub-queries.

ValueDescription
TABLESingle board table source.

AggregateHistoryTableFromInput

A single-board table source for union sub-queries.

FieldTypeDescription
typeAggregateHistoryTableFromElement!Must be TABLE.
idID!The unique identifier of the source board.

AggregateHistoryUnionInput

Union of per-board sub-queries for cross-board aggregate history.

FieldTypeDescription
queries[AggregateHistoryUnionQueryInput!]!One sub-query per board. All sub-queries must produce matching select aliases.

AggregateHistoryUnionQueryInput

A per-board sub-query within a union aggregate history query.

FieldTypeDescription
fromAggregateHistoryTableFromInput!The board source. Must be type TABLE.
select[AggregateHistorySelectInput!]!Per-board select elements with unified aliases across sub-queries. Supports the full aggregate function set.
queryAggregateHistoryItemsQueryInputOptional per-board filter. ANDed with the top-level query filter when both are present.
limitIntMaximum results per board before cross-board merge.

Shared types

HistoricalRangeLimitReason

The reason the queryable historical range starts later than the earliest requested timestamp.

ValueDescription
DATA_LIMITData capture for this board began after the earliest requested timestamp.
PLAN_LIMITThe earliest requested timestamp exceeds the account plan's maximum history window.

SourceBoardInfo

Metadata for a board that contributed results to a union aggregate query.

FieldTypeDescription
board_idIDThe board ID that contributed to the merged result.