History
Complete reference for history-related methods and models.
Methods
get_history
get_history(request: GetHistoryRequest) -> GetHistoryResponse
Get change history for an entity.
Parameters:
request- History request (kind, kindId, optional filters)
Returns: GetHistoryResponse with list of history events
Models
HistoryItem
Main history event model.
class HistoryItem:
_id: str # History event ID
taskId: str # Task ID
creatorId: str # User who made the change
createdAt: str # Timestamp of change
data: HistoryData # Changed data
key: str # Change type key
type: int # Event type
updatedAt: str # Last update timestamp
boardId: Optional[str] # Board ID (if applicable)
HistoryData
class HistoryData:
_id: str # Entity ID
hrid: Optional[str] # Human-readable ID
name: Optional[str] # Entity name
taskPriority: Optional[int] # Task priority (if changed)
board: Optional[str] # Board ID (if changed)
members: Optional[List[str]] # Members (if changed)
project: Optional[str] # Project ID (if changed)
dueStart: Optional[str] # Due start (if changed)
dueEnd: Optional[str] # Due end (if changed)
# ... additional fields depending on what changed
Dynamic Fields
HistoryData accepts arbitrary additional fields using extra="allow" configuration, as different change types include different data fields.
Request Models
GetHistoryRequest
class GetHistoryRequest:
kind: Kind # Required - Entity type (Task, Project, Board, etc.)
kindId: str # Required - Entity ID
createdBy: Optional[List[str]] # Filter by creator member IDs
dateRangeStart: Optional[datetime] # Start of date range filter
dateRangeEnd: Optional[datetime] # End of date range filter
limit: Optional[int] # Max number of history events to return
lastLoadedDate: Optional[int] # Timestamp for pagination (default: 0)
keys: Optional[List[str]] # Only include these event keys
excludeKeys: Optional[List[str]] # Exclude these event keys
tasksIds: Optional[List[str]] # Filter by specific task IDs
groupsIds: Optional[List[str]] # Filter by specific group IDs
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | Kind | Yes | Entity type — Kind.Task, Kind.Project, Kind.Board, etc. |
kindId | str | Yes | ID of the entity to get history for |
createdBy | List[str] | No | Filter events by member IDs who made the changes |
dateRangeStart | datetime | No | Return events after this date |
dateRangeEnd | datetime | No | Return events before this date |
limit | int | No | Maximum number of events to return |
lastLoadedDate | int | No | Timestamp for pagination (default: 0) |
keys | List[str] | No | Only include events matching these keys (e.g. ["TASK_CREATED"]) |
excludeKeys | List[str] | No | Exclude events matching these keys |
tasksIds | List[str] | No | Filter events related to specific task IDs |
groupsIds | List[str] | No | Filter events related to specific group IDs |
Filtering
Use keys to include only specific event types, or excludeKeys to exclude them. These are mutually exclusive — use one or the other.
Response Models
GetHistoryResponse
class GetHistoryResponse:
type: str # Response type ("GetHistory")
payload: GetHistoryPayload # Response payload
GetHistoryPayload
class GetHistoryPayload:
histories: List[HistoryItem] # List of history events
See Also
- History Guide - Usage examples and patterns
- Enums - Kind enum for entity types