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
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/CreateTaskjson
{
"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
💡 Tip -
TaskGuidandPdfGuidmust 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
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
sample_tokenclient@example.com11id_072f8560John Doesample_clientphonesclient@example.comsample_tasksubjectclient@example.comclient@example.com1sample_languagemarkedtruetruetruetruetruetruesample_secretcodetruetrueid_ad091834truetruetrue1sample_declinereason2026-06-25T13:24:18Zid_7546e95did_3dc616a4id_8b8c8d54id_96dcc165truesample_freetextinputtruetrue2026-06-25T13:24:18Z2026-06-25T13:24:18Z2026-06-25T13:24:18Zsample_ipsendersample_ipsigner1id_fd80ca241truesample_signaturesconstvaluessample_signaturepositionsstrsample_signaturepositionssigneddocjsonsample_fileuploadbase64sample_signaturebase64sample_taskthankyouurltruetruesample_extrafilesuploadtext11sample_deletionprivateouterkeyid_416610512026-06-25T13:24:18Z2026-06-25T13:24:18Zid_f6ef9741truesample_searchwordformarkingsignaturesample_searchwordformarkingfieldsjsontruesample_secondarymailsid_2bb69c6211112026-06-25T13:24:18Ztruetruetrue1true11sample_originaltasklinkblobsample_signedtasklinkblobid_b87e0e11sample_generalattachmentslinkblobsample_excelattachmentslinkblobsample_smstemplatetrue2026-06-25T13:24:18Z2026-06-25T13:24:18Z1sample_signedtaskbase64filesample_originalbase64fileid_d5965400sample_generalattachmentsbase64filesample_excelattachmentsbase64filesample_additionaluserparams11true1John Doetruetrue1sample_clicktoredirecttosignaturebuttontextsample_documentsignedsuccessfullytextclient@example.comid_b3217e20Success (No content returned)
No content
Bad Request
Internal Server Error
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