document_viewed, document_signed). Redlining events are listed below for the optional negotiation workflow.
Every payload shares the same top-level shape — an event metadata object plus a category-specific object:
Unique identifier for this delivery. Use it for idempotency.
Either
signing or redlining.The specific event type, listed below.
When the event occurred, in milliseconds since the Unix epoch.
Signing events
Signing events carry asigning object and reference a signature request.
The ID of the signature request the event relates to.
document_viewed
The signer opened the document for the first time.
document_signed
The signer completed and signed the document. Once signed, you can fetch the signed envelope.
Redlining events
Redlining events carry aredlining object and reference a redline request. Every redlining payload includes these base fields, plus any event-specific fields listed below.
The ID of the redline request the event relates to.
The role of the member who triggered the event. One of
disclosing_party, receiving_party, disclosing_counsel, or receiving_counsel.redline_edit_inserted
A member inserted new text into the document.
The inserted text.
redline_edit_deleted
A member deleted text from the document.
The deleted text.
redline_edit_accepted
A member accepted a tracked change proposed by the other party.
The content of the change that was accepted.
The kind of change. One of
inserted, deleted, replaced, or formatted.redline_edit_rejected
A member rejected a tracked change proposed by the other party.
The content of the change that was rejected.
The kind of change. One of
inserted, deleted, replaced, or formatted.redline_comment_added
A member added a comment to the document.
The comment text.
redline_message_added
A member posted a message in the negotiation thread.
The message text.
The email address of the message author.
redline_turn_ended
A member finished their turn and passed the document to the other party. Only the base redlining fields are included.
document_ready_for_signing
All tracked changes have been resolved and the document is ready to be sent for signature. Only the base redlining fields are included.
redline_shared
A redline request was shared with a member. Only the base redlining fields are included.
Handling events
Switch onevent.event_type to route each event. Unknown types should be ignored gracefully so new event types don’t break your handler.