Retrieve the business timeline
The business timeline is a chronological record of changes to a business’s Secretary of State (SOS) registration data. Use it to review how a business has changed over time, like when it changed status, moved its address, or added and removed officers. Because these changes often carry risk signals, the timeline is useful when investigating a business, reviewing it before a decision, or building an audit trail of its registration history.
How the timeline works
Each entry in the timeline is an event describing a single change to the business’s registration data. Each event has one of the following types:
A change to an existing value is represented as a pair of events. For example, a name change arrives as a name.deleted event for the old name alongside a name.created event for the new one.
Every event carries two timestamps. occurred_at is when the change happened in the real world, falling back to when Middesk recorded the event if the source did not report a timestamp. created_at is when Middesk recorded the event. The timeline is ordered by occurred_at, newest first.
How the timeline is updated
The timeline always includes the full history of changes to the business’s registration data. How recent that history is depends on whether the business is enrolled in monitoring:
- With monitoring enabled. Middesk detects and appends new changes as they happen, so the timeline stays current automatically and always reflects every change recorded on the business.
- Without monitoring. The timeline is current as of the most recent Verify order placed on the Business. To pick up changes that occurred since then, add a new Verify order to the Business.
How to retrieve the timeline
Request the timeline
Call the timeline endpoint with the business ID. The response is a paginated list of events ordered newest first.
Understanding the event payloads
Each event’s data.object is the resource the change was observed on, matching the event type. The payload follows the canonical shape of the corresponding object:
address.*events use the Address object.name.*events use the Name object.person.*events use the Person object.registration.*events use the Registration object.
A payload carries only the fields relevant to the change; fields the source did not supply return null or an empty default. Address and name payloads can have a null id when the event describes a past change rather than a currently retrievable record. registration.updated events also include a previous_attributes object holding the prior values of the fields that changed.
Once you have the events, store them for an audit or history view, read previous_attributes on a registration.updated event to see a field’s prior value, or treat a change as a trigger to retrieve the full business and re-run the relevant review task.