eSign.AIeSign.AI
Developer Center

Get the link to the edit file template page

POST /esignglobal/v1/templates/edit

API Description

Developers can use this API to obtain the edit page link for a specified document template docTemplateEditUrl, and open the link to allow operators to edit existing document templates on the page.

Notes

  • docTemplateId is the document template ID, which must be a valid template accessible by the current integrator account.
  • Upon successful API invocation, it returns docTemplateEditUrl, the link is time-sensitive. It is recommended to use it immediately after retrieval, and long-term caching is not recommended.
  • Developers can use redirectUrl to specify the redirect page after template editing is completed.

Request Parameters

Parameter Name

Type

Required

Description

docTemplateId

string

true

Document template ID, must be a valid template under the current integrator account.

redirectUrl

string

false

Redirect URL after template editing is completed, must be a valid URL.

Request Example

{
  "docTemplateId": "template_123456789",
  "redirectUrl": "https://example.com/template/edit/callback"
}

Response Parameters

Parameter Name

Type

Description

code

int

Status Code.

message

string

Response Message.

data

object

Response Data.

data.docTemplateEditUrl

string

Link to the file template editing page, which is time-sensitive.

Response Example

{
  "code": 0,
  "message": "success",
  "data": {
    "docTemplateEditUrl": "https://app.esignglobal.com/template/edit?token=example"
  }
}