# AppliFlo developer docs > Fill, detect and send forms for signature from your code or your coding agent, with the AppliFlo REST API (https://appliflo.com/api/v1) and the AppliFlo MCP server (https://appliflo.com/api/mcp). Both need a workspace API key on the Business plan. Every page below is Markdown. All pages in one file: https://dev.appliflo.com/llms-full.txt. The AppliFlo Docs MCP (search_docs, get_doc; read-only, no key) is at https://dev.appliflo.com/docs-mcp. It is separate from the product's MCP server. ## Get started - [Overview](https://dev.appliflo.com/guides.md): What you can build with the AppliFlo API and MCP server today, and where to start. - [Quickstart](https://dev.appliflo.com/guides/quickstart.md): Make an API key, fill your first PDF with one call and read the result for each field. - [API keys and scopes](https://dev.appliflo.com/guides/api-keys.md): Where to make a key, what each scope allows, and when a key stops working. - [Errors](https://dev.appliflo.com/guides/errors.md): The error shape, every status code the API returns, and the codes to branch on. - [Rate limits](https://dev.appliflo.com/guides/rate-limits.md): 120 calls a minute per key, and a shared 20 a minute for the calls that read, fill and send. - [Idempotency](https://dev.appliflo.com/guides/idempotency.md): Retry a call safely with the Idempotency-Key header, so nothing is uploaded, filled or sent twice. - [Plans and AI pages](https://dev.appliflo.com/guides/plans.md): API keys need the Business plan. What an AI page is, how many each plan has, and the prices in USD and AUD. ## Guides - [Fill a PDF in one call](https://dev.appliflo.com/guides/fill-one-call.md): Send a PDF and values keyed by the printed labels, get back the filled PDF and a result for every field. - [Upload, detect and fill step by step](https://dev.appliflo.com/guides/upload-detect-fill.md): Keep the document in AppliFlo, see every field with its id, fill by id and download the filled PDF. - [Send a document for signature](https://dev.appliflo.com/guides/send-for-signature.md): Pick recipients, give each one their fields, prefill what you know and send. Includes the rules for official agency forms. - [Send a saved template](https://dev.appliflo.com/guides/send-template.md): Find a Ready saved template, put a person in each role, prefill the sender's boxes and send it in one call. - [Send to many](https://dev.appliflo.com/guides/send-to-many.md): Send one Ready template to up to 500 people in one call, watch the batch, and fix the rows that fail. - [Track and download envelopes](https://dev.appliflo.com/guides/track-envelopes.md): List envelopes, see who has signed, send a reminder, void one, and download the signed PDF and its certificate. - [Correct fields and read each box](https://dev.appliflo.com/guides/correct-fields.md): What AppliFlo tells you about every box on a form, how to spot the unsure ones, correct a field and add help for the person filling it. - [Use AppliFlo from a coding agent](https://dev.appliflo.com/guides/coding-agent.md): Connect Claude Code, Cursor or VS Code to the AppliFlo MCP server with a key, choose its scopes, and understand the confirm step before anything is sent. ## API reference - [API reference](https://dev.appliflo.com/api.md): Every endpoint of the AppliFlo REST API, made from the OpenAPI file the server serves. - [Get a document with its fields and choice groups](https://dev.appliflo.com/api/documents/get-document.md): GET /api/v1/documents/{id}: Get a document with its fields and choice groups. - [Delete a draft document (move it to the Trash)](https://dev.appliflo.com/api/documents/delete-document.md): DELETE /api/v1/documents/{id}: Delete a draft document (move it to the Trash). - [Upload a document](https://dev.appliflo.com/api/documents/create-document.md): POST /api/v1/documents: Upload a document. - [Run field detection on a document](https://dev.appliflo.com/api/documents/detect-fields.md): POST /api/v1/documents/{id}/detect: Run field detection on a document. - [List a document's fields](https://dev.appliflo.com/api/documents/list-fields.md): GET /api/v1/documents/{id}/fields: List a document's fields. - [Correct a detected field (flywheel input)](https://dev.appliflo.com/api/documents/correct-field.md): PATCH /api/v1/documents/{id}/fields/{fieldId}: Correct a detected field (flywheel input). - [Fill a document's fields with values](https://dev.appliflo.com/api/documents/fill-document.md): POST /api/v1/documents/{id}/fill: Fill a document's fields with values. - [Download a document artifact](https://dev.appliflo.com/api/documents/download-document-artifact.md): GET /api/v1/documents/{id}/download: Download a document artifact. - [Send a document for signature](https://dev.appliflo.com/api/documents/send-document.md): POST /api/v1/documents/{id}/send: Send a document for signature. - [One-shot fill (multipart: file + values in, filled PDF + results out)](https://dev.appliflo.com/api/fill/fill-one-shot.md): POST /api/v1/fill: One-shot fill (multipart: file + values in, filled PDF + results out). - [List envelopes in the workspace](https://dev.appliflo.com/api/envelopes/list-envelopes.md): GET /api/v1/envelopes: List envelopes in the workspace. - [Get envelope detail](https://dev.appliflo.com/api/envelopes/get-envelope.md): GET /api/v1/envelopes/{id}: Get envelope detail. - [Void an envelope](https://dev.appliflo.com/api/envelopes/void-envelope.md): POST /api/v1/envelopes/{id}/void: Void an envelope. - [Send a reminder to recipients blocking signature](https://dev.appliflo.com/api/envelopes/remind-envelope.md): POST /api/v1/envelopes/{id}/remind: Send a reminder to recipients blocking signature. - [Download the sealed (completed) document or its completion certificate](https://dev.appliflo.com/api/envelopes/download-envelope.md): GET /api/v1/envelopes/{id}/download: Download the sealed (completed) document or its completion certificate. - [List the template library available to this workspace](https://dev.appliflo.com/api/templates/list-templates.md): GET /api/v1/templates: List the template library available to this workspace. - [Draft a document from a template](https://dev.appliflo.com/api/templates/create-document-from-template.md): POST /api/v1/templates/{id}/create-document: Draft a document from a template. - [Get one template](https://dev.appliflo.com/api/saved-templates/get-template.md): GET /api/v1/templates/{id}: Get one template. - [Send a Ready saved template](https://dev.appliflo.com/api/saved-templates/send-from-template.md): POST /api/v1/templates/{id}/send: Send a Ready saved template. - [List a saved template's versions](https://dev.appliflo.com/api/saved-templates/list-template-versions.md): GET /api/v1/templates/{id}/versions: List a saved template's versions. - [Get one version of a saved template](https://dev.appliflo.com/api/saved-templates/get-template-version.md): GET /api/v1/templates/{id}/versions/{n}: Get one version of a saved template. - [Send a Ready saved template to many](https://dev.appliflo.com/api/saved-templates/send-template-bulk.md): POST /api/v1/templates/{id}/bulk: Send a Ready saved template to many. - [Get a send-to-many batch](https://dev.appliflo.com/api/saved-templates/get-bulk-batch.md): GET /api/v1/bulk-batches/{id}: Get a send-to-many batch. - [Retry a batch's failed rows](https://dev.appliflo.com/api/saved-templates/retry-bulk-batch-failed.md): POST /api/v1/bulk-batches/{id}/retry-failed: Retry a batch's failed rows. - [Cancel a batch](https://dev.appliflo.com/api/saved-templates/cancel-bulk-batch.md): POST /api/v1/bulk-batches/{id}/cancel: Cancel a batch. - [Fix a failed row and send it again](https://dev.appliflo.com/api/saved-templates/fix-bulk-batch-row.md): PATCH /api/v1/bulk-batches/{id}/rows/{row}: Fix a failed row and send it again. - [List the workspace's saved templates](https://dev.appliflo.com/api/saved-templates/list-saved-templates.md): GET /api/v1/saved-templates: List the workspace's saved templates. - [Save a draft document as a template](https://dev.appliflo.com/api/saved-templates/create-saved-template-from-document.md): POST /api/v1/saved-templates: Save a draft document as a template. - [Create a document from a saved template](https://dev.appliflo.com/api/saved-templates/create-document-from-saved-template.md): POST /api/v1/saved-templates/{id}/create-document: Create a document from a saved template. - [Make a single-use session link to sign inside your app](https://dev.appliflo.com/api/embed/create-signing-session.md): POST /api/v1/embed/signing-sessions: Make a single-use session link to sign inside your app. - [Make a single-use session link to fill a document inside your app](https://dev.appliflo.com/api/embed/create-fill-session.md): POST /api/v1/embed/fill-sessions: Make a single-use session link to fill a document inside your app. - [Make a single-use session link for a member to prepare and send inside your app](https://dev.appliflo.com/api/embed/create-prepare-session.md): POST /api/v1/embed/prepare-sessions: Make a single-use session link for a member to prepare and send inside your app. - [Make a single-use session link for a member to pick a form or template inside your app](https://dev.appliflo.com/api/embed/create-library-session.md): POST /api/v1/embed/library-sessions: Make a single-use session link for a member to pick a form or template inside your app. - [Make a single-use session link for a member to build a template inside your app](https://dev.appliflo.com/api/embed/create-builder-session.md): POST /api/v1/embed/builder-sessions: Make a single-use session link for a member to build a template inside your app. - [Get what an embed session produced](https://dev.appliflo.com/api/embed/get-embed-session.md): GET /api/v1/embed/sessions/{id}: Get what an embed session produced. ## MCP server - [MCP server](https://dev.appliflo.com/mcp.md): Let a coding agent fill and send forms with the AppliFlo MCP server. - [Connect a client](https://dev.appliflo.com/mcp/connect.md): Add the AppliFlo MCP server to Claude Code, Cursor, VS Code or any MCP client. - [All tools](https://dev.appliflo.com/mcp/tools.md): Every tool the AppliFlo MCP server lists, with what it does and whether your client asks first. ## MCP tools - [upload_document](https://dev.appliflo.com/mcp/tools/upload_document.md): Upload a PDF or Word (.docx) file into the workspace as a persisted document, returning its document_id for use by detect_fields/fill_document/send_envelope. - [request_upload](https://dev.appliflo.com/mcp/tools/request_upload.md): When you can't pass the user's file to upload_document (no file content or link available in this chat), get a one-time upload link for them instead. - [detect_fields](https://dev.appliflo.com/mcp/tools/detect_fields.md): Run field detection on a previously uploaded document and persist the detected fields, exactly as the AppliFlo app does: the form's sections and skip rules are saved, block-letter forms are noted, and corrections the workspace made to this same form before come back (remembered = how many). - [list_fields](https://dev.appliflo.com/mcp/tools/list_fields.md): List a document's current fields (post-detection, including any corrections already applied via correct_field). - [correct_field](https://dev.appliflo.com/mcp/tools/correct_field.md): Apply a correction to one detected field (label, semantic_type, bbox, and/or field type — every patch key is optional, only the keys you send are changed). - [fill_document](https://dev.appliflo.com/mcp/tools/fill_document.md): Stamp caller-supplied values into a document's detected fields (keyed by field_id from list_fields/detect_fields) and store the filled PDF. - [fill_form_oneshot](https://dev.appliflo.com/mcp/tools/fill_form_oneshot.md): One-shot demo/quick-fill: upload a PDF (or a Word DOCX, converted to PDF; as content_base64 OR file_url, exactly one; at most 20 MB) and a values map keyed by each field's detected label text (the only thing knowable before detection runs), and get back a filled PDF in one call — no persisted document_id, no separate detect_fields/fill_document round trip. - [send_envelope](https://dev.appliflo.com/mcp/tools/send_envelope.md): Create an envelope for document_id, set recipients + field assignments, and send the initial signing invitations. - [list_envelopes](https://dev.appliflo.com/mcp/tools/list_envelopes.md): List envelopes in the workspace, optionally filtered by status, paginated with limit/offset (default limit 20, max 100). - [get_envelope](https://dev.appliflo.com/mcp/tools/get_envelope.md): Get full envelope detail: document, recipients (with per-recipient view/consent/sign timestamps and delivery: "email", or "embedded" for one your app signs and nobody emails), status, and the audit timeline. - [remind_envelope](https://dev.appliflo.com/mcp/tools/remind_envelope.md): Send a reminder email to every recipient still blocking signature on an envelope. - [void_envelope](https://dev.appliflo.com/mcp/tools/void_envelope.md): Permanently cancel an envelope (a reason is required and is stored on the audit trail). - [download_document](https://dev.appliflo.com/mcp/tools/download_document.md): Get a short-lived signed download URL for a PDF artifact. - [list_templates](https://dev.appliflo.com/mcp/tools/list_templates.md): List everything this workspace can start a document from, in one list (the app's Templates page): the workspace's saved templates first, then AppliFlo's contract templates, then the official government forms (e.g. - [get_template](https://dev.appliflo.com/mcp/tools/get_template.md): Read ONE template from list_templates by its template_id (a saved template, an AppliFlo contract or an official form, "lib_...") with its full detail: everything list_templates shows, plus the boxes (sender_fields[], fixed_fields[], a contract's required_values[] and party_fields[]) and the e-sign notice. - [create_from_template](https://dev.appliflo.com/mcp/tools/create_from_template.md): Start a document from a template in list_templates (any kind) and persist it, returning document_id. - [send_template](https://dev.appliflo.com/mcp/tools/send_template.md): Send a Ready saved template to its recipients in one call: creates the document from the template's current version and emails the first recipients. - [send_template_bulk](https://dev.appliflo.com/mcp/tools/send_template_bulk.md): Send a Ready saved template to many people: one envelope per row (up to 500 rows). - [get_bulk_batch](https://dev.appliflo.com/mcp/tools/get_bulk_batch.md): Progress of a send started with send_template_bulk: the batch status (queued | sending | paused | cancelled | done; paused has a pause_reason, quota or suspended, and resumes on its own), counts, and each row's status (queued | sent | failed | excluded | cancelled) with its envelope_id (use get_envelope for signing progress), last error and needs_fix (fix it with fix_bulk_row). - [cancel_bulk_batch](https://dev.appliflo.com/mcp/tools/cancel_bulk_batch.md): Stop a send started with send_template_bulk: every row not sent yet is cancelled; envelopes already sent are untouched (void_envelope them one by one if needed). - [fix_bulk_row](https://dev.appliflo.com/mcp/tools/fix_bulk_row.md): Fix one failed row of a send_template_bulk batch and send it again. get_bulk_batch shows each row's `needs_fix` (the email provider refused it or it bounced: retrying as is can't help). - [list_documents](https://dev.appliflo.com/mcp/tools/list_documents.md): The Documents list exactly as the web app shows it: PDFs and Docs in one list, newest first, only the ones the caller may see. scope 'mine' (created by or sent to the caller; the default for a person) or 'workspace' (the default for an API key, which owns no documents); filter by status group (needs_you, drafts, waiting, completed, declined, expired, voided, expiring), sent_as (single, bulk, unsent), type, owner (a user id), client (a client id) and q (name or recipient). - [get_document](https://dev.appliflo.com/mcp/tools/get_document.md): One PDF document as the web app shows it: name, status, page count, its client, a summary of its boxes (how many, flagged for review, by type, by page, assigned to a recipient, choice questions) and, once sent, its signing: the latest round (envelope_id, status, recipients and where each is, with delivery: "embedded" for one your app signs, never emailed), every round (a resend starts a new one), reminders and what the caller may do next (remind, void, resend, download). signing is null for a draft. - [rename_document](https://dev.appliflo.com/mcp/tools/rename_document.md): Rename a PDF document everywhere it shows (the Documents list, its pages, later emails). 1-200 characters, no slashes; extra spaces are trimmed. - [trash_document](https://dev.appliflo.com/mcp/tools/trash_document.md): Move a draft PDF to the Trash, as Delete does in the web app. - [restore_document](https://dev.appliflo.com/mcp/tools/restore_document.md): Bring a document back from the Trash (within its 30 days), as Restore does on the web. - [delete_document_forever](https://dev.appliflo.com/mcp/tools/delete_document_forever.md): Permanently delete a document that is already in the Trash, with its fields and stored files. - [resend_document](https://dev.appliflo.com/mcp/tools/resend_document.md): Resend a sent document, as Resend on its web page does: the latest round is voided with your reason and a new round goes out on the same document to the same people (or with some of them changed: recipients[] by index into the latest round's recipients, as get_document lists them), with the same boxes, the sender's values, routing, expiry length and reminders. - [add_field](https://dev.appliflo.com/mcp/tools/add_field.md): Draw a new box on a document page, as a person does with the app's box editor: use it for a box detection missed (e.g. a signature line or a date with no field). type: text, date (typed date), checkbox, signature, or date_signed (stamped with the signing date of the nearest signature on the page). page is 0-based and bbox is [x0, y0, x1, y1] in PDF points, the same coordinates list_fields shows for the boxes around it; the box is kept at least 6 pt each way and inside the page. - [delete_field](https://dev.appliflo.com/mcp/tools/delete_field.md): Delete one box from a document, as the app's box editor does (e.g. a box detection found that isn't a real field). - [list_groups](https://dev.appliflo.com/mcp/tools/list_groups.md): List a document's choice questions: groups of tick boxes answered as one question (e.g. - [update_group](https://dev.appliflo.com/mcp/tools/update_group.md): Edit one choice question (from list_groups), as the app's question editor does: rename it (label), switch kind (single = pick one, multi = pick several), set max (multi only: answer up to N; null = no limit), replace its options (2-200 tick boxes on this document, each { field_id, label, value }: value is what the box stamps; a box moves out of any other question, and a question left with one box is dropped), set other_field_id (a plain text box filled when the client picks Other; null detaches it), or confirmed: true to settle a flagged question as checked. - [get_form_rules](https://dev.appliflo.com/mcp/tools/get_form_rules.md): Read a document's form rules: its sections and skip logic, as the app's Detect step shows them on each question. sections[] are the form's parts and numbered questions ({ id, kind: part|question, label, number, parent_id }); rules[] are its skip logic, in order: when the choice question group_id is answered with one of option_values, the sections in skip[] are not needed and goto (a section id, or null) is where the form sends the reader next. source is page_text (read from the form's printed words), llm, or manual (a person's). - [set_form_rules](https://dev.appliflo.com/mcp/tools/set_form_rules.md): Replace a document's whole skip-rule list, in order, as the app's Detect step saves it when a person edits, removes or adds a rule on a question. - [suggest_roles](https://dev.appliflo.com/mcp/tools/suggest_roles.md): Read who a document's form asks for (e.g. - [set_envelope_recipients](https://dev.appliflo.com/mcp/tools/set_envelope_recipients.md): Set who a document goes to, in signing order: each recipient's role label (as the form names it, see suggest_roles), name, email and kind (signer fills and signs, filler fills only, cc gets a copy). - [ai_assign](https://dev.appliflo.com/mcp/tools/ai_assign.md): Let AI decide who fills each box that has no owner yet: one of the document's recipients, Skip, or a Fixed value, from the workspace's form memory, the team's habits, rules and then AI. - [set_box_owner](https://dev.appliflo.com/mcp/tools/set_box_owner.md): Give boxes to one of the document's recipients (role_key from set_envelope_recipients), who fills them when they sign; or clear: true to take the owner off. - [skip_box](https://dev.appliflo.com/mcp/tools/skip_box.md): Skip boxes: they are left blank and no recipient sees them (e.g. an office-use-only box, or a question that doesn't apply). - [set_fixed_value](https://dev.appliflo.com/mcp/tools/set_fixed_value.md): Put a value in boxes on every send, filled in by you before it goes (Fixed). - [search_clients](https://dev.appliflo.com/mcp/tools/search_clients.md): Find clients by name, email or phone. - [get_client](https://dev.appliflo.com/mcp/tools/get_client.md): One client's full record: name, email, phone, company, owner, notes, every custom field with this client's value (null when unset), document counts, and its CRM links (which GlobalyOS or Agentcis record it is linked to). - [create_client](https://dev.appliflo.com/mcp/tools/create_client.md): Add a client to the workspace. - [update_client](https://dev.appliflo.com/mcp/tools/update_client.md): Change a client's own details: only the keys you pass change (null clears email, phone, company or owner). - [trash_client](https://dev.appliflo.com/mcp/tools/trash_client.md): Move a client to the Trash: hidden from lists and pickers, and its email is free for a new client. - [list_client_fields](https://dev.appliflo.com/mcp/tools/list_client_fields.md): The workspace's custom client fields, in order: id, label, type (short_text, paragraph, number, currency, phone, email, website, date, dropdown, multi_dropdown, yes_no), options (dropdowns) and currency. - [set_client_field](https://dev.appliflo.com/mcp/tools/set_client_field.md): Set one custom field on a client ("" or null clears it). - [list_client_documents](https://dev.appliflo.com/mcp/tools/list_client_documents.md): The documents (PDFs and Docs) that belong to a client, newest first, as on the client's page: id, name, kind, status and status group (needs_you, drafts, waiting, completed, declined, expired, voided), owner, envelope id and a url to open it, plus counts per group. - [link_client_crm](https://dev.appliflo.com/mcp/tools/link_client_crm.md): Link a client to a record in a connected CRM (GlobalyOS or Agentcis), so forms can be prefilled from it and signed PDFs go back to it. - [save_library_as_template](https://dev.appliflo.com/mcp/tools/save_library_as_template.md): Keep an AppliFlo library contract or official government form (a "lib_..." template_id from list_templates) as one of the workspace's OWN saved templates, as the app's Templates page does, so the workspace can edit its roles, settings and boxes. - [save_as_template](https://dev.appliflo.com/mcp/tools/save_as_template.md): Keep a DRAFT document (one not sent yet, with its fields detected or placed) as one of the workspace's saved templates, like the app's "Save as template": its PDF, fields, choice questions and form rules are copied; the document itself is untouched. - [list_template_versions](https://dev.appliflo.com/mcp/tools/list_template_versions.md): A saved template's finalised versions, newest first: version, current, note, field_count, envelope_count (how many envelopes each sent) and created_at. - [get_template_version](https://dev.appliflo.com/mcp/tools/get_template_version.md): One finalised version of a saved template (default: the current one): its roles in signing order, the boxes the sender fills (sender_fields, the prefill keys), the boxes it fills itself (fixed_fields) and the send settings every envelope from it gets (routing, subject, message, cc, expiry_days). - [update_template_settings](https://dev.appliflo.com/mcp/tools/update_template_settings.md): Change a saved template's send settings, as the builder's Settings step: only the settings you pass change. routing (sequential = one role after another, parallel = everyone at once), subject and message (may use {{placeholders}} such as {{Recipient 1 name}}, {{Template name}}, {{Workspace}}), reminder_cadence, expiry_days (null = links never expire), warn_before_expiry, cc (replaces the fixed copies), sender_role ("Who sends this?": a role key from the template's roles, always the person sending; null = none of them; only the person's own choice, never guess it). - [set_template_roles](https://dev.appliflo.com/mcp/tools/set_template_roles.md): Replace a saved template's roles (the people who fill and sign it), in signing order, as the builder's Recipients step: 1 to 10. - [finalise_template](https://dev.appliflo.com/mcp/tools/finalise_template.md): Finalise a saved template's draft as its next version, as the builder's Finalise: the draft's boxes, roles and settings become an unchangeable version with its own PDF copy, the template is Ready, and every send from now on uses it (envelopes already sent keep their version). - [retry_failed_rows](https://dev.appliflo.com/mcp/tools/retry_failed_rows.md): Send the failed rows of a send_template_bulk batch again, as the app's "Retry failed": each goes back in the queue with fresh attempts and is sent in the background (poll get_bulk_batch). - [list_activity](https://dev.appliflo.com/mcp/tools/list_activity.md): The Activities feed, as the web app's Activities page shows it: what happened to documents, Docs, templates and clients, newest first, each with a plain label ("Signed", "Moved to Trash"…), who did it and a link. scope 'mine' (default: things the caller created, sent or was sent, and their own actions; for an API key, what the key itself did) or 'workspace' (owners and admins only, so not an API key, which acts as a member). - [list_audit_log](https://dev.appliflo.com/mcp/tools/list_audit_log.md): The workspace audit log (Settings → Activity on the web): every colleague's actions and every envelope event in the workspace, newest first. - [get_usage](https://dev.appliflo.com/mcp/tools/get_usage.md): This period's plan usage, as Settings → Usage shows it: the plan, seats, when the period started and resets, and AI pages (the pages AI reads to find a form's boxes): used, limit (with granted and purchased extras), remaining, whether they ran out, and the caller's own use (an API key's is its creator's). - [list_docs](https://dev.appliflo.com/mcp/tools/list_docs.md): The Docs the caller can see (AppliFlo's own documents written in the editor: contracts, letters; not uploaded PDFs), newest edit first, as the app's Docs list shows them: doc_id, title, status (draft, ready, sent, archived), revision, visibility, mine, created_by_name, editing_by (someone else has it open), can_edit, and for a sent Doc envelope_id and pdf_document_id (the rendered PDF the PDF and envelope tools take). - [get_doc](https://dev.appliflo.com/mcp/tools/get_doc.md): One Doc in full: title, status, revision (pass it to update_doc and send_doc), visibility, page_size, roles (the people it is for, in signing order; their keys are send_doc's people keys), signing_order, can_edit, can_share, editing_by, where it came from (contract_template_id, ai_drafted), and for a sent Doc envelope_id and pdf_document_id. - [create_doc](https://dev.appliflo.com/mcp/tools/create_doc.md): Start a new Doc (a contract or letter written in AppliFlo), private to the caller, as a draft. - [update_doc](https://dev.appliflo.com/mcp/tools/update_doc.md): Change a draft or ready Doc, as the editor saves it: the title and/or the whole content (as `markdown`, or the TipTap JSON `content` from get_doc format json), at the `revision` you last read (get_doc). - [list_doc_versions](https://dev.appliflo.com/mcp/tools/list_doc_versions.md): A Doc's saved versions, newest first, without content: number, reason (manual: someone saved a version; auto: kept after 30 minutes of editing; send: what went out for signing; restore), note, title, created_at and created_by_name. - [duplicate_doc](https://dev.appliflo.com/mcp/tools/duplicate_doc.md): Copy a Doc the caller can see into a new private draft they own ("