Skip to main content
Docktix

Writer: documents and templates

Create and manage documents and document templates.

Host: editor_api_domain (from the token response) · Path prefix: /docktix/api/v1/ · Method: POST (parameter-less reads are GET) · every POST body also carries Firm_Id and Email · see Authentication for headers and errors. Use the same access token as for all other routes.

RouteScopePurpose
writer/documents/listDocktixWriter.documents.READList documents (paged)
writer/documents/detailsDocktixWriter.documents.READGet document details
writer/documents/contents/detailsDocktixWriter.documents.READGet the document content
writer/documents/createDocktixWriter.documents.CREATECreate a document
writer/documents/updateDocktixWriter.documents.UPDATEChange name and description
writer/documents/contents/updateDocktixWriter.documents.UPDATESave new content
writer/documents/deleteDocktixWriter.documents.DELETEDelete a document
writer/templates/listDocktixWriter.templates.READList templates (paged)
writer/templates/detailsDocktixWriter.templates.READGet a template with its content
writer/templates/createDocktixWriter.templates.CREATECreate a template
writer/templates/updateDocktixWriter.templates.UPDATEChange a template and/or its content
writer/templates/deleteDocktixWriter.templates.DELETEDelete a template

Document and template content is exchanged as an SFDT JSON string (the editor's document format). An unknown or foreign Document_Id answers 404 Document not found.; an unknown or foreign Template_Id answers 404 Template not found.

Documents

List documents

POST{editor_api_domain}/docktix/api/v1/writer/documents/list
Scope DocktixWriter.documents.READHost editor_api_domainContent-Type application/json

all parameters optional

Parameters
ParameterTypeRequiredDescription
PageintegerOptionalDefault 1
Per_PageintegerOptionalDefault 25, maximum 100
Sort_Key, Sort_TypestringOptionalSorting

Get document details / content

POST{editor_api_domain}/docktix/api/v1/writer/documents/details
Scope DocktixWriter.documents.READHost editor_api_domainContent-Type application/json
POST{editor_api_domain}/docktix/api/v1/writer/documents/contents/details
Scope DocktixWriter.documents.READHost editor_api_domainContent-Type application/json
Parameters
ParameterTypeRequiredDescription
Document_IdstringRequiredThe document

The content response can be large.

Create a document

POST{editor_api_domain}/docktix/api/v1/writer/documents/create
Scope DocktixWriter.documents.CREATEHost editor_api_domainContent-Type application/json
Parameters
ParameterTypeRequiredDescription
Document_NamestringRequired
Document_TypestringRequired
Document_DescriptionstringOptional
Content_DescriptionstringOptionalNote for the first version
Content_DetailstringOptionalInitial content (SFDT)

Update document details

POST{editor_api_domain}/docktix/api/v1/writer/documents/update
Scope DocktixWriter.documents.UPDATEHost editor_api_domainContent-Type application/json
Parameters
ParameterTypeRequiredDescription
Document_IdstringRequired
Document_NamestringRequiredSend the current value to keep it
Document_DescriptionstringRequiredSend the current value to keep it

Update document content

POST{editor_api_domain}/docktix/api/v1/writer/documents/contents/update
Scope DocktixWriter.documents.UPDATEHost editor_api_domainContent-Type application/json
Parameters
ParameterTypeRequiredDescription
Document_IdstringRequired
Content_DetailstringRequiredThe new content (SFDT)
Content_DescriptionstringRequiredA note describing the change

Delete a document

POST{editor_api_domain}/docktix/api/v1/writer/documents/delete
Scope DocktixWriter.documents.DELETEHost editor_api_domainContent-Type application/json
Destructive. One document per call.
Parameters
ParameterTypeRequiredDescription
Document_IdstringRequired
ConfirmbooleanRequiredMust be true; otherwise 400 and nothing is changed

Templates

List templates

POST{editor_api_domain}/docktix/api/v1/writer/templates/list
Scope DocktixWriter.templates.READHost editor_api_domainContent-Type application/json

all parameters optional

Parameters
ParameterTypeRequiredDescription
Page, Per_PageintegerOptionalDefault 1 / 25, maximum 100
Sort_Key, Sort_TypestringOptionalSorting
Template_TypestringOptionalFilter by type
Module_IdstringOptionalOnly Mail Merge templates bound to this module

Get a template

POST{editor_api_domain}/docktix/api/v1/writer/templates/details
Scope DocktixWriter.templates.READHost editor_api_domainContent-Type application/json
Parameters
ParameterTypeRequiredDescription
Template_IdstringRequiredThe template

Details contains the template's details plus its content under content (null when the template has no content yet).

Create a template

POST{editor_api_domain}/docktix/api/v1/writer/templates/create
Scope DocktixWriter.templates.CREATEHost editor_api_domainContent-Type application/json

Creates the template and its first content version in one call.

Parameters
ParameterTypeRequiredDescription
Template_NamestringRequired
Template_TypestringRequiredFor example Mail Merge or an e-mail type
Template_DescriptionstringOptional
Email_BodystringOptionalFor e-mail templates
Content_DetailstringOptionalContent (SFDT)
Content_Description, Content_TooltipstringOptionalNotes for this version
Module_IdstringConditionalwhen Template_Type is Mail MergeA module of your firm

Update a template

POST{editor_api_domain}/docktix/api/v1/writer/templates/update
Scope DocktixWriter.templates.UPDATEHost editor_api_domainContent-Type application/json
Parameters
ParameterTypeRequiredDescription
Template_IdstringRequired
Template_Name, Template_Description, Email_Body, Module_IdstringOptionalDetails; omitted = unchanged
Content_DetailstringOptionalNew content (SFDT); saves a new version
Content_Description, Content_TooltipstringOptionalOnly together with Content_Detail; if omitted with it they are saved empty for that version

Send at least one field. Details and content are saved in two steps. Details answers { "Metadata_Updated": true|false, "Content_Updated": true|false }; if the details were saved but the content failed, the response says so and Metadata_Updated is true.

Delete a template

POST{editor_api_domain}/docktix/api/v1/writer/templates/delete
Scope DocktixWriter.templates.DELETEHost editor_api_domainContent-Type application/json
Destructive. One template per call.
Parameters
ParameterTypeRequiredDescription
Template_IdstringRequired
ConfirmbooleanRequiredMust be true; otherwise 400 and nothing is changed