Docs

Get History

GET /history?subjectType=Area&subjectId={subjectId}&organizationId={organizationId}

GET/history?subjectType=Area&subjectId={subjectId}&organizationId={organizationId}

Returns the audit history for a specific subject entity — an ordered list of domain events that occurred on it. History records are projected from the outbox event pipeline and provide a full activity log for any entity in the system.

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <token>OptionalAuthenticate via OAuth2 in Bruno.

Query Parameters

FieldTypeRequiredDescription
subjectTypestringRequiredType of the subject entity to retrieve history for (e.g. Area, Task, Crew).
subjectIdGuidRequiredID of the subject entity.
organizationIdGuidOptionalOrganization context for the subject.
eventIdGuidOptionalEvent context for the subject. Omit for org-level subjects.

Response

Returns a list of history records in chronological order.

FieldTypeDescription
idGuidUnique history record ID.
outboxEventIdGuidID of the originating outbox event.
subjectTypestringType of the subject entity.
subjectIdGuidID of the subject entity.
subjectDisplayNamestringHuman-readable name of the subject at the time of the event.
organizationIdGuidOrganization context.
eventIdGuid| nullEvent context. Null for org-level history.
eventTypestringThe domain event type that occurred (e.g. AreaUpdated, TaskAssigned).
eventVersionintVersion number of the domain event schema.
actorTypestringWho performed the action (e.g. User, System, ApiKey).
actorUserIdGuid| nullID of the user who performed the action. Null for system actions.
actorApiKeyIdGuid| nullID of the API key used. Null for user actions.
actorDisplayNamestringDisplay name of the actor at the time of the event.
occurredAtDateTimeWhen the domain event occurred.
projectedAtDateTimeWhen the event was projected into the history store.