> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Contractbook

> Contractbook is a contract lifecycle management platform for creating, organizing, sharing, sending, and signing contracts.

![Contractbook logo](https://mintcdn.com/composio-preview/NPf8agM6UrvZD-Iu/images/toolkits/contractbook.svg?fit=max\&auto=format\&n=NPf8agM6UrvZD-Iu\&q=85\&s=38bfe204fd243a17fc114b2ffe929a5c)

* **Category:** documents
* **Auth:** API\_KEY
* **Composio-managed OAuth available?** N/A
* **Tools:** 9
* **Triggers:** 0
* **Slug:** `CONTRACTBOOK`
* **Version:** 20261101\_00

## Tools

> [accordion] Create Document From Template
>
> **Slug:** `CONTRACTBOOK_CREATE_DOCUMENT_FROM_TEMPLATE`
>
> Create a draft document from a Contractbook template, optionally overriding its document fields; this does not send the draft for signature.
>
> #### Input Parameters
>
> **tags** `array`
>
> Tags assigned to the draft; each tag must be a non-empty string.
>
> **title** `string`
>
> Draft title override.
>
> **message** `string`
>
> Draft message content override.
>
> **parties** `array`
>
> Party and signee overrides for the draft.
>
> **language** `string`
>
> Draft language code override.
>
> **attachments** `array`
>
> Attachments to put on the draft using already-hosted Contractbook-compatible URLs.
>
> **data\_fields** `array`
>
> Template data-field values and definitions to apply; omitted conditional fields resolve as false in template conditions.
>
> **template\_id** `string` *required*
>
> Template ID used to create the draft.
>
> **dynamic\_tables** `array`
>
> Values used to fill dynamic-table placeholders in the template.
>
> **to\_be\_signed\_by** `string ("owner_and_others" | "others_only" | "owner_only")`
>
> Who must sign the draft.
>
> **company\_logo\_url** `string`
>
> Company logo URL override; pass null to remove the logo.
>
> **signing\_order\_mode** `string ("random" | "strict" | "grouped")`
>
> Draft signing order mode override.
>
> **attachments\_signed\_separately** `boolean`
>
> Whether draft attachments are signed and sealed separately.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Permanently Delete Document
>
> **Slug:** `CONTRACTBOOK_DELETE_DOCUMENT`
>
> Permanently destroy a Contractbook document with no restore option. Signed documents cannot be deleted through this API; Contractbook rejects signed or otherwise undeletable documents rather than reporting success.
>
> #### Input Parameters
>
> **document\_id** `string` *required*
>
> ID of the Contractbook document to permanently destroy. This cannot be undone, and signed documents cannot be deleted through this API. Retrieve the document first if its identity or state is uncertain.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Document
>
> **Slug:** `CONTRACTBOOK_GET_DOCUMENT`
>
> Get the current Contractbook document, including its version when available for a safe update.
>
> #### Input Parameters
>
> **document\_id** `string` *required*
>
> Contractbook document ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Document PDF Link
>
> **Slug:** `CONTRACTBOOK_GET_DOCUMENT_PDF_LINK`
>
> Get a short-lived PDF download URL for a document, or a not-ready message when Contractbook is still generating it.
>
> #### Input Parameters
>
> **document\_id** `string` *required*
>
> Contractbook document ID whose PDF link to request.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Template
>
> **Slug:** `CONTRACTBOOK_GET_TEMPLATE`
>
> Get a template's full fields, parties, attachments, and signing configuration before creating a draft from it.
>
> #### Input Parameters
>
> **template\_id** `string` *required*
>
> Contractbook template ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Automations
>
> **Slug:** `CONTRACTBOOK_LIST_AUTOMATIONS`
>
> List Contractbook automations for one trigger type; this only discovers automations and does not run them.
>
> #### Input Parameters
>
> **trigger\_type** `string ("webhook_trigger" | "hubspot_contractbook_automation_triggered" | "hubspot_deal_stage_changed" | "contract_signed" | "contract_verified_ai" | "contract_viewed" | "data_field_date_reached" | "data_field_updated" | "draft_created" | "draft_updated" | "drafter_questionnaire_completed" | "sent_for_signature" | "task_due_date_reached" | "task_is_done" | "pipedrive_deal_stage_changed" | "salesforce_flow_executed" | "salesforce_opportunity_stage_changed")` *required*
>
> Trigger type whose published automations to return.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Documents
>
> **Slug:** `CONTRACTBOOK_LIST_DOCUMENTS`
>
> Search and filter documents visible to the connected Contractbook account, returning one page and a cursor for continuation. By default, searches are limited to my documents; team and workspace contexts can also be selected.
>
> #### Input Parameters
>
> **full** `boolean`
>
> Include data fields and full party details in each result.
>
> **tags** `array`
>
> Tags used to filter documents.
>
> **owned** `boolean`
>
> When set, filter by whether the connected account owns the document.
>
> **title** `string`
>
> Case-insensitive partial title to match.
>
> **cursor** `string`
>
> Opaque next\_cursor returned by a previous call; omit for the first page.
>
> **states** `array`
>
> Document states to include.
>
> **contexts** `array`
>
> Document areas to search; include all three values to search every available area.
>
> **page\_size** `integer`
>
> Maximum documents in this page (0-100).
>
> **sort\_column** `string ("created_at" | "updated_at" | "title")`
>
> Field used to sort results.
>
> **workspace\_id** `string`
>
> Workspace ID to filter when contexts includes workspace.
>
> **signed\_before** `string`
>
> Return documents signed before this timestamp, excluding the boundary.
>
> **document\_types** `array`
>
> Document types to include.
>
> **sort\_direction** `string ("asc" | "desc")`
>
> Sort direction.
>
> **updated\_before** `string`
>
> Return documents updated before this timestamp, excluding the boundary.
>
> **signed\_at\_or\_after** `string`
>
> Return documents signed at or after this timestamp.
>
> **updated\_at\_or\_after** `string`
>
> Return documents updated at or after this timestamp.
>
> **integration\_object\_id** `string`
>
> External integration object ID associated with documents.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Templates
>
> **Slug:** `CONTRACTBOOK_LIST_TEMPLATES`
>
> List Contractbook templates visible to the connected account for choosing a template ID, optionally excluding templates in spaces.
>
> #### Input Parameters
>
> **exclude\_spaces** `boolean`
>
> Exclude templates located in spaces when true.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Document
>
> **Slug:** `CONTRACTBOOK_UPDATE_DOCUMENT`
>
> Update selected fields of a draft or stored contract using its current version; supplied collection fields replace their complete existing collections.
>
> #### Input Parameters
>
> **tags** `array`
>
> Complete replacement tag list; fetch and merge first to preserve existing tags.
>
> **title** `string`
>
> Replacement document title.
>
> **message** `string`
>
> Replacement document message content.
>
> **parties** `array`
>
> Complete replacement party and signee list; fetch and merge first to preserve parties.
>
> **version** `string` *required*
>
> Current document version from GET\_DOCUMENT or a recent document response; stale values fail with version\_mismatch.
>
> **language** `string`
>
> Replacement document language code; pass null only when intentionally clearing it.
>
> **attachments** `array`
>
> Complete replacement attachment list using Contractbook attachment objects; fetch and merge first to preserve existing attachments. Pass null only when intentionally clearing it.
>
> **data\_fields** `array`
>
> Complete replacement data-field list; fetch and merge first to preserve fields.
>
> **document\_id** `string` *required*
>
> Draft or stored-contract document ID.
>
> **dynamic\_tables** `array`
>
> Complete replacement dynamic-table definitions with attrs containing id, columns, and rows.
>
> **to\_be\_signed\_by** `string ("owner_and_others" | "others_only" | "owner_only")`
>
> Who must sign the document.
>
> **company\_logo\_url** `string`
>
> Replacement company logo URL; pass null only when intentionally clearing it.
>
> **signing\_order\_mode** `string ("random" | "strict" | "grouped")`
>
> Replacement signing order mode.
>
> **attachments\_signed\_separately** `boolean`
>
> Whether attachments are signed separately from the document.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
