Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a single Task

This API creates a signature task using a file that was previously uploaded via the Upload File API. The TaskGuid and PdfGuid returned from the upload step must be passed here.

A task is a document sent to one or more recipients for signing. Before creating a task, decide on two things: where the document comes from, and who receives it.

For defining fields and signature positions on the document, see Defining Signature Fields.


Choose Your Approach

*
From Template
From File Upload

Use when

You have a fixed document set up in the 2Sign system

You have a different document each time

Requires upload?

No

Yes - upload first, then create

signature positions

You can use template signature positions or define them in the request

You must define them in the request if its not view only task.

Key parameter

TemplateId

TaskGuid + PdfGuid


Option A - From Template

POST /api/V2/Tasks/CreateTask

json

{
  "ClientId": "235183",
  "TemplateId": "4522",
  "TaskSubject": "document to sign",
  "EmailText": null,
  "IsSendOnCreation": "false",
  "IsSendEmailOnCreation": "true",
  "IsSendSmsOnCreation": "false"
}

TemplateIdsList (Merge Multiple Templates)

Use TemplateIdsList when you want to create a single signing task from multiple templates.

Pass a comma-separated string containing the Template IDs you would like to combine. The system will retrieve all templates in the specified order, merge them into a single PDF document, and create one signature task containing the combined document.

This is useful when a signer needs to review and sign several documents as part of the same workflow, while receiving only one task.

Example

In this example, templates 4522, 4523, and 4524 are merged into a single document and sent as one signing task.


Option B - From File Upload

Upload the file first, then use the taskGuid and pdfGuid from the response to create the task.

Step 1 — Upload the file

For more info you can find it here.

Save taskGuid and pdfGuid from the response.

Step 2 - Create the task

json

TaskGuid and PdfGuid must come from the Upload File response.

💡 Tip - TaskGuid and PdfGuid must both come from the same upload response. Don't reuse GUIDs from previous uploads.


Specifying the Recipient

All three options below can be used with either Option A or Option B above.

Existing client - by ClientId

json

Use when the recipient already exists in your account. To look up a client's ID, see Get clients and groups info.


New or one-time recipient - by phone or email

json

No need to create a client record first. At least one of phone or email is required.


Group - by GroupId

json

Use when sending to a predefined group of recipients. To set up a group, see Create a Group.


Request Parameters

Parameter
Type
Description

TaskSubject

string

Document subject line shown to the recipient

EmailText

string

Custom message body in the email

Language

int

1 = Hebrew

IsSendOnCreation

bool

Send immediately when task is created

IsSendEmailOnCreation

bool

Send via email

IsSendSmsOnCreation

bool

Send via SMS

ForceIdUpload

bool

Require ID photo from signer

ForceIdIssueDateUpload

bool

Require ID issue date from signer

ForceVideoUpload

bool

Require video verification

ForceSecretCode

bool

Require secret code

SecretCode

string

The secret code value if ForceSecretCode is true

ApplyStamp

bool

Apply account stamp to document

FreeTextInput

string

Free text attached to the task

CreateTask

post
Body
TokenstringOptionalExample: sample_token
EmailstringOptionalExample: client@example.com
ClientsForRoutinestringOptional
ClientIdintegerOptionalExample: 1
TemplateIdintegerRequiredExample: 1
TemplateIdsListstringOptionalExample: id_072f8560
ClientNamestringOptionalExample: John Doe
ClientPhonesstringOptionalExample: sample_clientphones
ClientEmailsstringOptionalExample: client@example.com
TaskSubjectstringOptionalExample: sample_tasksubject
EmailTextstringOptionalExample: client@example.com
EmailSubjectstringOptionalExample: client@example.com
LanguageintegerRequiredExample: 1
LanguageMarkedstringOptionalExample: sample_languagemarked
IsSendOnCreationbooleanOptionalExample: true
IsSendSmsOnCreationbooleanOptionalExample: true
IsSendEmailOnCreationbooleanOptionalExample: true
IsSendWhatsAppOnCreationbooleanOptionalExample: true
ApplyStampbooleanRequiredExample: true
IsTaxAuthorityProcTaskbooleanRequiredExample: true
SecretCodestringOptionalExample: sample_secretcode
ForceSecretCodebooleanOptionalExample: true
ForceVideoUploadbooleanOptionalExample: true
VideoUploadTextstringOptionalExample: id_ad091834
ForceIdIssueDateUploadbooleanOptionalExample: true
ForceIdUploadbooleanOptionalExample: true
TaskStatusbooleanRequiredExample: true
TaskStatusNumericintegerOptionalExample: 1
DeclineReasonstringOptionalExample: sample_declinereason
DeclineOnstringOptionalExample: 2026-06-25T13:24:18Z
TaskGuidstringOptionalExample: id_7546e95d
PdfGuidstringOptionalExample: id_3dc616a4
ImageGuidstringOptionalExample: id_8b8c8d54
RoutinePrimaryTaskGuidstringOptionalExample: id_96dcc165
IsPreviousSignedTaskGuidbooleanRequiredExample: true
FreeTextInputstringOptionalExample: sample_freetextinput
SendConfirmEmailAfterSignbooleanRequiredExample: true
IsSignedbooleanRequiredExample: true
CreatedOnstringOptionalExample: 2026-06-25T13:24:18Z
ViewedOnstringOptionalExample: 2026-06-25T13:24:18Z
SignedOnstringOptionalExample: 2026-06-25T13:24:18Z
IpSenderstringOptionalExample: sample_ipsender
IpSignerstringOptionalExample: sample_ipsigner
TaskStatusPriorityintegerOptionalExample: 1
RoutineLastTaskGuidSignedstringOptionalExample: id_fd80ca24
RoutineStatusintegerOptionalExample: 1
DeleteSucceededbooleanRequiredExample: true
SignaturePositionsstringOptional
SignaturePositionsSlimModelstringOptional
SignaturesConstValuesstringOptionalExample: sample_signaturesconstvalues
SignaturePositionsStrstringOptionalExample: sample_signaturepositionsstr
SignaturePositionsSignedDocJSONstringOptionalExample: sample_signaturepositionssigneddocjson
FileUploadBase64stringOptionalExample: sample_fileuploadbase64
SignatureBase64stringOptionalExample: sample_signaturebase64
TaskThankYouUrlstringOptionalExample: sample_taskthankyouurl
DigitalSignbooleanRequiredExample: true
ApplyExtraFilesUploadbooleanRequiredExample: true
ExtraFilesUploadTextstringOptionalExample: sample_extrafilesuploadtext
ApplyExtraFilesUploadNumberOfFilesintegerOptionalExample: 1
TaxYearintegerOptionalExample: 1
APIResponsestringOptional
DeletionPrivateOuterKeystringOptionalExample: sample_deletionprivateouterkey
DeletionUserIdstringOptionalExample: id_41661051
DeletionDateFromstringOptionalExample: 2026-06-25T13:24:18Z
DeletionDateTostringOptionalExample: 2026-06-25T13:24:18Z
TaskBundleGuidstringOptionalExample: id_f6ef9741
AllowStampAddByClientbooleanRequiredExample: true
TaskClientVideoFilestringOptional
SearchWordForMarkingSignaturestringOptionalExample: sample_searchwordformarkingsignature
SearchWordForMarkingFieldsJsonstringOptionalExample: sample_searchwordformarkingfieldsjson
NotifySecondaryMailsbooleanRequiredExample: true
SecondaryMailsstringOptionalExample: sample_secondarymails
Invoice4uDocIdstringOptionalExample: id_2bb69c62
TasksCountintegerOptionalExample: 1
TasksQuotaLeftintegerOptionalExample: 1
SmsQuotaLeftintegerOptionalExample: 1
SmsCountintegerOptionalExample: 1
SmsLogAfterSignDatestringOptionalExample: 2026-06-25T13:24:18Z
IsAutoFlatDocumentbooleanRequiredExample: true
ObligateClientStampUploadbooleanOptionalExample: true
SignatureRoutinebooleanRequiredExample: true
GroupIdintegerOptionalExample: 1
SignatureRoutineAsyncbooleanRequiredExample: true
SignatureRoutineMaxSignersintegerOptionalExample: 1
SelectedGroupTotalPhonesCountintegerOptionalExample: 1
ClientIdsstringOptional
TaskClientsstringOptional
OriginalTaskLinkBlobstringOptionalExample: sample_originaltasklinkblob
SignedTaskLinkBlobstringOptionalExample: sample_signedtasklinkblob
IdCardAttachmentLinkBlobstringOptionalExample: id_b87e0e11
GeneralAttachmentsLinkBlobstringOptionalExample: sample_generalattachmentslinkblob
ExcelAttachmentsLinkBlobstringOptionalExample: sample_excelattachmentslinkblob
SmsTemplatestringOptionalExample: sample_smstemplate
ViewOnlyTaskbooleanRequiredExample: true
FilterDateFromstringOptionalExample: 2026-06-25T13:24:18Z
FilterDateTostringOptionalExample: 2026-06-25T13:24:18Z
FilterTaskStatusintegerOptionalExample: 1
SignedTaskFilestringOptional
SignedTaskBase64FilestringOptionalExample: sample_signedtaskbase64file
SearchWordForSignatureRoutinestringOptional
OriginalBlobFilestringOptional
OriginalBase64FilestringOptionalExample: sample_originalbase64file
IdCardAttachmentBlobFilestringOptional
IdCardAttachmentBase64FilestringOptionalExample: id_d5965400
GeneralAttachmentsBlobFilestringOptional
GeneralAttachmentsBase64FilestringOptionalExample: sample_generalattachmentsbase64file
ExcelAttachmentsBlobFilestringOptional
ExcelAttachmentsBase64FilestringOptionalExample: sample_excelattachmentsbase64file
AdditionalUserParamsstringOptionalExample: sample_additionaluserparams
AdditionalUserParamsObjectstringOptional
FileAttachmentLocationsstringOptional
FilesDataForRoutineCheckstringOptional
FilesPartialAmountForRoutineCheckintegerRequiredExample: 1
FilesPartialAmountLocationForRoutineCheckintegerRequiredExample: 1
ShowSigBeforePlacingbooleanOptionalExample: true
DeletedFilesCounterintegerRequiredExample: 1
DeletedFileFullNamestringOptionalExample: John Doe
ApplyOTPbooleanOptionalExample: true
SkipFlatOrRotatebooleanRequiredExample: true
TaskClientStatusintegerOptionalExample: 1
ClickToRedirectToSignatureButtonTextstringOptionalExample: sample_clicktoredirecttosignaturebuttontext
DocumentSignedSuccessfullyTextstringOptionalExample: sample_documentsignedsuccessfullytext
EmailButtonstringOptionalExample: client@example.com
EmailUserGuidestringOptionalExample: id_b3217e20
Responses
200

Success (No content returned)

No content

post/api/Tasks/CreateTask
POST /api/Tasks/CreateTask HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 4203

{
  "Token": "sample_token",
  "Email": "client@example.com",
  "ClientsForRoutine": null,
  "ClientId": 1,
  "TemplateId": 1,
  "TemplateIdsList": "id_072f8560",
  "ClientName": "John Doe",
  "ClientPhones": "sample_clientphones",
  "ClientEmails": "client@example.com",
  "TaskSubject": "sample_tasksubject",
  "EmailText": "client@example.com",
  "EmailSubject": "client@example.com",
  "Language": 1,
  "LanguageMarked": "sample_languagemarked",
  "IsSendOnCreation": true,
  "IsSendSmsOnCreation": true,
  "IsSendEmailOnCreation": true,
  "IsSendWhatsAppOnCreation": true,
  "ApplyStamp": true,
  "IsTaxAuthorityProcTask": true,
  "SecretCode": "sample_secretcode",
  "ForceSecretCode": true,
  "ForceVideoUpload": true,
  "VideoUploadText": "id_ad091834",
  "ForceIdIssueDateUpload": true,
  "ForceIdUpload": true,
  "TaskStatus": true,
  "TaskStatusNumeric": 1,
  "DeclineReason": "sample_declinereason",
  "DeclineOn": "2026-06-25T13:24:18Z",
  "TaskGuid": "id_7546e95d",
  "PdfGuid": "id_3dc616a4",
  "ImageGuid": "id_8b8c8d54",
  "RoutinePrimaryTaskGuid": "id_96dcc165",
  "IsPreviousSignedTaskGuid": true,
  "FreeTextInput": "sample_freetextinput",
  "SendConfirmEmailAfterSign": true,
  "IsSigned": true,
  "CreatedOn": "2026-06-25T13:24:18Z",
  "ViewedOn": "2026-06-25T13:24:18Z",
  "SignedOn": "2026-06-25T13:24:18Z",
  "IpSender": "sample_ipsender",
  "IpSigner": "sample_ipsigner",
  "TaskStatusPriority": 1,
  "RoutineLastTaskGuidSigned": "id_fd80ca24",
  "RoutineStatus": 1,
  "DeleteSucceeded": true,
  "SignaturePositions": null,
  "SignaturePositionsSlimModel": null,
  "SignaturesConstValues": "sample_signaturesconstvalues",
  "SignaturePositionsStr": "sample_signaturepositionsstr",
  "SignaturePositionsSignedDocJSON": "sample_signaturepositionssigneddocjson",
  "FileUploadBase64": "sample_fileuploadbase64",
  "SignatureBase64": "sample_signaturebase64",
  "TaskThankYouUrl": "sample_taskthankyouurl",
  "DigitalSign": true,
  "ApplyExtraFilesUpload": true,
  "ExtraFilesUploadText": "sample_extrafilesuploadtext",
  "ApplyExtraFilesUploadNumberOfFiles": 1,
  "TaxYear": 1,
  "APIResponse": null,
  "DeletionPrivateOuterKey": "sample_deletionprivateouterkey",
  "DeletionUserId": "id_41661051",
  "DeletionDateFrom": "2026-06-25T13:24:18Z",
  "DeletionDateTo": "2026-06-25T13:24:18Z",
  "TaskBundleGuid": "id_f6ef9741",
  "AllowStampAddByClient": true,
  "TaskClientVideoFile": null,
  "SearchWordForMarkingSignature": "sample_searchwordformarkingsignature",
  "SearchWordForMarkingFieldsJson": "sample_searchwordformarkingfieldsjson",
  "NotifySecondaryMails": true,
  "SecondaryMails": "sample_secondarymails",
  "Invoice4uDocId": "id_2bb69c62",
  "TasksCount": 1,
  "TasksQuotaLeft": 1,
  "SmsQuotaLeft": 1,
  "SmsCount": 1,
  "SmsLogAfterSignDate": "2026-06-25T13:24:18Z",
  "IsAutoFlatDocument": true,
  "ObligateClientStampUpload": true,
  "SignatureRoutine": true,
  "GroupId": 1,
  "SignatureRoutineAsync": true,
  "SignatureRoutineMaxSigners": 1,
  "SelectedGroupTotalPhonesCount": 1,
  "ClientIds": null,
  "TaskClients": null,
  "OriginalTaskLinkBlob": "sample_originaltasklinkblob",
  "SignedTaskLinkBlob": "sample_signedtasklinkblob",
  "IdCardAttachmentLinkBlob": "id_b87e0e11",
  "GeneralAttachmentsLinkBlob": "sample_generalattachmentslinkblob",
  "ExcelAttachmentsLinkBlob": "sample_excelattachmentslinkblob",
  "SmsTemplate": "sample_smstemplate",
  "ViewOnlyTask": true,
  "FilterDateFrom": "2026-06-25T13:24:18Z",
  "FilterDateTo": "2026-06-25T13:24:18Z",
  "FilterTaskStatus": 1,
  "SignedTaskFile": null,
  "SignedTaskBase64File": "sample_signedtaskbase64file",
  "SearchWordForSignatureRoutine": null,
  "OriginalBlobFile": null,
  "OriginalBase64File": "sample_originalbase64file",
  "IdCardAttachmentBlobFile": null,
  "IdCardAttachmentBase64File": "id_d5965400",
  "GeneralAttachmentsBlobFile": null,
  "GeneralAttachmentsBase64File": "sample_generalattachmentsbase64file",
  "ExcelAttachmentsBlobFile": null,
  "ExcelAttachmentsBase64File": "sample_excelattachmentsbase64file",
  "AdditionalUserParams": "sample_additionaluserparams",
  "AdditionalUserParamsObject": null,
  "FileAttachmentLocations": null,
  "FilesDataForRoutineCheck": null,
  "FilesPartialAmountForRoutineCheck": 1,
  "FilesPartialAmountLocationForRoutineCheck": 1,
  "ShowSigBeforePlacing": true,
  "DeletedFilesCounter": 1,
  "DeletedFileFullName": "John Doe",
  "ApplyOTP": true,
  "SkipFlatOrRotate": true,
  "TaskClientStatus": 1,
  "ClickToRedirectToSignatureButtonText": "sample_clicktoredirecttosignaturebuttontext",
  "DocumentSignedSuccessfullyText": "sample_documentsignedsuccessfullytext",
  "EmailButton": "client@example.com",
  "EmailUserGuide": "id_b3217e20"
}

No content

Last updated