Completion statistics as CSV
The same from/to-filtered document rows as GET /v1/documents/completion-stats, streamed as CSV instead of paginated JSON (capped, with a trailing "truncated" row if the cap is hit — the same convention the links service's exports use). Recorded in the platform audit log before streaming.
View as MarkdownAuthorization
bearer In: header
Query Parameters
Response Body
text/csv
application/json
application/json
application/json
curl -X GET "https://example.com/v1/documents/completion-stats.csv""string"Completion rate and time over a date range
Every sent document the caller can see, optionally narrowed to a sent_at date range (from/to — RFC3339 or YYYY-MM-DD), with a summary (sentCount, completedCount, completionRate, avgCompletionSeconds) computed over the FULL filtered cohort plus the underlying documents for drill-down. completionRate is null (not 0) when sentCount is 0 — an empty period must never render as "0% completion". The cohort is always "documents sent in this window" for both the numerator and denominator; it is never silently swapped to "documents completed in this window" under a different sent_at filter.
Render customized content into a ready draft
Template Studio's create step: takes the template's content (or the caller's edited version), substitutes {{placeholder}} values (unfilled ones render as visible blanks), renders a fresh PDF, and creates a draft with the file attached, recipients from the template's slots (optionally addressed), and signature/date fields placed from the rendered layout and bound per slot. Public templates render with the SAMPLE banner.