Skip to main content
Each event DocInject dispatches includes a standard envelope with event_type, organization_id, org_slug, and occurred_at at the top level. The fields documented here describe the data object inside that envelope. For the full envelope shape, see the webhooks overview.

Document events

Fires when a new document is created in your organization (as a draft, before any publishing).Data payload
document_id
string
UUID of the newly created document.
title
string
Title of the document at creation time.
created_by_email
string
Email address of the team member who created the document.
Fires the first time a document transitions from draft to published status.Data payload
document_id
string
UUID of the published document.
title
string
Document title.
version
string
Version label at the time of publication (for example, "1.0" or "v2").
department
string | null
Department the document belongs to, or null if unassigned.
published_at
string
ISO 8601 timestamp when the document was published.
published_by_email
string
Email address of the team member who published the document.
sections
array
Structured content of the document. Each section contains steps, and each step may contain sub-steps.
Fires when a document that has already been published is revised and republished. Contains the same structured payload as document.published plus a reference to the previous version.Data payloadAll fields from document.published are present, plus:
previous_version_id
string
UUID of the document record representing the prior published version.
Fires when a document is archived and removed from the active library.Data payload
document_id
string
UUID of the archived document.
title
string
Title of the document at the time it was archived.
archived_by_email
string
Email address of the team member who archived the document.
Fires when an editor is assigned to a document.Data payload
document_id
string
UUID of the document.
title
string
Title of the document.
editor_id
string
UUID of the user who was assigned as editor.

Member events

Fires when an admin sends an invitation to a new team member.Data payload
email
string
Email address the invitation was sent to.
invited_by
string
UUID of the admin who sent the invitation.
Fires when an invited user accepts their invitation and joins the organization.Data payload
user_id
string
UUID of the user who joined.
email
string
Email address of the new member.
Fires when an admin promotes a member to admin or demotes an admin to member.Data payload
user_id
string
UUID of the member whose role changed.
new_role
string
The role the member now holds. Either "admin" or "member".
changed_by
string
UUID of the admin who made the change.