API Reference
Create a task.

For this action, you can create a task either from a base64 encoded file, a template, or a file mission.

When creating a task from a template, only the files will be inherited. All other parameters must be provided in the request body.

📘

Reminder

This action represents a complete task creation process, including all available configurations, which is highly complex. For a simpler and faster way to create a task, please refer Quick create a task.

🚧

Read-Only Template

Please be aware that when using a read-only template, some attributes cannot be overridden, which include:

  • cc_infos, message, completed_message, references, and completed_references in task_setting
  • the signer count and sequence in stages
  • attachment_settings in stages
  • field_settings in stages (only the default option can be overridden)
  • review_settings in stages

📑

Uploading Multiple Files

To create a task from multiple PDF files, please note the following points:

  • Create a file mission first to merge multiple PDF files into one PDF file and get the file_mission_id.
  • Use the file_mission_id to create a task with the merged PDF file.
  • If you choose to start the task after creation, the task will automatically start once the merged PDF file is ready.

scope: sign_tasks.general.write
available user plans: all (template and certain verify_type and field_type restrictions apply)

Log in to see full request history
Body Params
integer

Template ID. Required if task is created from template.

string

Base64 string of PDF file. Required if task is created from file.

integer

File mission ID returned from the Create a file mission API. Required if task is created from multiple files.

string
required
length ≤ 255

File name.
File name should match the pattern ^(?!.*[\"*:<>\?\/\\|~#%&{}])[^.].*$.

boolean
Defaults to true

Signers should sign sequentially or not.

integer

Watermark ID.
Currently, this only supports the use of watermark_id that have been used in a template.

metadata
object

Metadata. Maximum 10 key-value pairs, where each key length must be less than or equal to 40 characters and each value length must be less than or equal to 100 characters.

boolean
Defaults to false

Start the task after creation or not.

stages
array of objects
required
stages*
task_setting
object

Task setting request body.

Headers
string
required

OAuth2 Bearer token.

Responses

Response body
object
data
object
integer

Task ID.

Headers
object
string
integer

Language