# Obtain the signature template

The interface is used to obtain signature template list according to multiple template IDs

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/corehr/v2/signature_templates/search
HTTP Method | GET
Rate Limit | [100 per minute](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.** | 获取电子签模板信息(corehr:signature_template:read)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)

### Query parameters

Parameter | Type | Required | Description
---|---|---|---
template_ids | string | No | Electronic signature template ids, separated by English commas; if not passed, return all electronic signature template information<br>**Example value**: 1,2,3,4
select_custom_field | boolean | No | Whether template custom fields are required, if not, only the system fields of the template are returned by default.<br>**Example value**: True

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-
signature_templates | signature_template\[\] | List of returned electronic signature templates
id | string | Electronic signature template id
brief_info | signature_template_brief_info | Template basic information
id | string | Electronic signature template id
label | i18n\[\] | template name
lang | string | language
value | string | template name
category | enum | Electronic signature template classification, enumeration values can be obtained from the document [[Feishu personnel enumeration constant]] (/ssl: ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant) Electronic signature template type (signature_template_category) enumeration definition section
enum_name | string | Template category name
display | i18n\[\] | Multi-lingual display corresponding to template categories
lang | string | language
value | string | Chinese
usage | enum | Electronic signature template use, enumeration values can be obtained from the document [[Feishu personnel enumeration constant]] (/ssl: ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant) Electronic signature template use (signature_template_usage) enumeration definition section
enum_name | string | template use name
display | i18n\[\] | Multilingual presentation of template usage
lang | string | language
value | string | Personnel contracts/agreements
signatory_labels | signature_signatory_label\[\] | template signature object
template_signatory_type | enum | Electronic signature template signature object type, enumeration values can be obtained from the document [[Feishu personnel enumeration constant]] (/ssl: ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant) Electronic signature template signature object type (signature_template_signatory_type) enumeration definition section
enum_name | string | Enumeration values corresponding to the template signature object type
display | i18n\[\] | enumerated multilingual display
lang | string | language
value | string | Chinese
label | i18n\[\] | Field multilingual display
lang | string | language
value | string | text content
apiname | string | Template signature type name
active | boolean | Whether to activate
create_by | string | The employment ID of the creator, the detailed information can be obtained through [[Query Employee Information Interface]] (/ssl: ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)
modify_by | string | Modify the employment ID of the person. The detailed information can be obtained through [[Query Employee Information Interface]] (/ssl: ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)
applicability | enum | Scope of application of electronic signature template, enumeration value can be defined by the document [[Feishu personnel enumeration constant] (/ssl: ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant) Scope of application of electronic signature template (signature_template_applicability) Enumeration definition part
enum_name | string | template scope enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | language
value | string | text content
creation_method | string | Template creation method
version | string | version
update_time | string | update time
create_time | string | creation time
template_setting | signature_template_setting | template settings
page_seal_types | string\[\] | Sewing badge type
template_region_info | signature_template_region_info | template application area
is_global_scope | string | Is it globally applicable?
meta_infos | signature_meta_info\[\] | Applicable area name
api_name | string | Zone name apiName
wk_id | string | Unique ID for the region
label | i18n\[\] | multilingual description
lang | string | language
value | string | text content
template_code | string | template encoding
template_desc | i18n\[\] | Template description, multilingual support
lang | string | language
value | string | text content
content_info | signature_template_content_info | template content
contents | signature_template_content_item\[\] | [Abandoned, no need to pay attention]
content_type | enum | Types of Template Content
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | language
value | string | text content
filter_apiname | string | Show rule lvalue
content | string | template content
label | i18n\[\] | Chinese and English description
lang | string | Language coding (IETF BCP 47)
value | string | text content
content_desc | string | content description
custom_fields | signature_template_custom_field\[\] | custom field list
label | i18n\[\] | Chinese and English description
lang | string | language
value | string | text content
apiname | string | field name
custom_field_type | enum | User-defined field types
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | Language coding (IETF BCP 47)
value | string | text content
used | boolean | Is it used?
is_required | boolean | Do you need it?
custom_desc | string | custom description
common_info | signature_template_common_field_info | Electronic signature template public field information
source | enum | Template field source type; enumeration values are filled in enum_name, such as: "System" "MainData"
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | Language coding (IETF BCP 47)
value | string | text content
apiname | string | Master data apiname
filter_fields | signature_template_filter\[\] | [Abandoned, no need to pay attention]
label | i18n\[\] | bilingual description
lang | string | Language coding (IETF BCP 47)
value | string | text content
apiname | string | Master data apiname
filters | signature_template_filter_item\[\] | filter list
left | string | lvalue
rights | string\[\] | rvalue list
op | enum | operator
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | Language coding (IETF BCP 47)
value | string | text content
logic | enum | The logic of multiple effective conditions
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | Language coding (IETF BCP 47)
value | string | text content
is_checked | boolean | Is it verified?
filter_desc | string | Filter condition description
criterion_list | string | Filter list, the reason to use the string type to describe the list is to avoid circular reference problems, because the item type of the list is this data type
using_fields | signature_template_common_field_info\[\] | [Abandoned, no need to pay attention]
source | enum | Template field source type; enumeration values are filled in enum_name, such as: "System" "MainData"
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | Language coding (IETF BCP 47)
value | string | text content
apiname | string | field name
system_setting_fields | signature_template_field\[\] | System field list
field_type | enum | template field value type enumeration
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | language
value | string | text content
label | i18n\[\] | bilingual description
lang | string | language
value | string | text content
common_info | signature_template_common_field_info | [No need to pay attention] General field information
source | enum | Template field source type<br>- System<br>- MainData
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | language
value | string | text content
apiname | string | field name
combination_info | signature_template_combination_field_info | [No need to pay attention] Combination field information
total_apiname | string | [No need to pay attention] Combination field name
apiname | string | field name
title | i18n\[\] | Chinese and English description
lang | string | language
value | string | text content
contents | signature_template_combination_sub_field_info\[\]\[\] | Applicable area name
source | enum | [No need to pay attention] Electronic signature template field source type
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | Language coding (IETF BCP 47)
value | string | text content
children | string | [No need to pay attention] The string corresponding to the sub-template configuration information list to avoid circular reference problems
combination_info_v2 | signature_template_combination_field_info_v2 | Deprecated, no need to pay attention
total_apiname | string | Deprecated, no need to pay attention
apiname | string | Deprecated, no need to pay attention
source | enum | Deprecated, no need to pay attention
enum_name | string | enumeration value
display | i18n\[\] | enumerated multilingual display
lang | string | Language coding (IETF BCP 47)
value | string | text content

### Response body example
```json
{"code":0,
"msg":"success",
"data":{"signature_templates":[{"id":"12313",
"brief_info":{"id":"1",
"label":[{
    "lang": "zh-CN",
    "value": "中文示例"
}],
"category":{"enum_name":"phone_type",
"display":[{
    "lang": "zh-CN",
    "value": "中文示例"
}]},
"usage":{"enum_name":"phone_type",
"display":[{
    "lang": "zh-CN",
    "value": "中文示例"
}]},
"signatory_labels":[{
    "template_signatory_type": {
        "enum_name": "phone_type",
        "display": [
            {
                "lang": "zh-CN",
                "value": "中文示例"
            }
        ]
    },
    "label": [
        {
            "lang": "zh-CN",
            "value": "中文示例"
        }
    ],
    "apiname": "status"
}],
"active":true,
"create_by":"123123123123123123",
"modify_by":"123123123123123123",
"applicability":{"enum_name":"phone_type",
"display":[{
    "lang": "zh-CN",
    "value": "中文示例"
}]},
"creation_method":"online_edit",
"version":"v1",
"update_time":"31231232123",
"create_time":"3123123211",
"template_setting":{"page_seal_types":["这是一个骑缝章类型"]},
"template_region_info":{"is_global_scope":"global",
"meta_infos":[{
    "api_name": "status",
    "wk_id": "123124124124123",
    "label": [
        {
            "lang": "zh-CN",
            "value": "中文示例"
        }
    ]
}]},
"template_code":"1234",
"template_desc":[{
    "lang": "zh-CN",
    "value": "中文示例"
}]},
"content_info":{"contents":[{
    "content_type": {
        "enum_name": "phone_type",
        "display": [
            {
                "lang": "zh-CN",
                "value": "中文示例"
            }
        ]
    },
    "filter_apiname": "111",
    "content": "111",
    "label": [
        {
            "lang": "zh-CN",
            "value": "中文示例"
        }
    ],
    "content_desc": "111"
}],
"custom_fields":[{"label":[{
    "lang": "zh-CN",
    "value": "中文示例"
}],
"apiname":"status",
"custom_field_type":{"enum_name":"phone_type",
"display":[{
    "lang": "zh-CN",
    "value": "中文示例"
}]},
"used":True,
"is_required":True,
"custom_desc":"desc",
"common_info":{"source":{"enum_name":"phone_type",
"display":[{
    "lang": "zh-CN",
    "value": "中文示例"
}]},
"apiname":"status"}}],
"filter_fields":[{"label":[{
    "lang": "zh-CN",
    "value": "中文示例"
}],
"apiname":"status",
"filters":[{
    "left": "aa",
    "rights": [
        "1"
    ],
    "op": {
        "enum_name": "phone_type",
        "display": [
            {
                "lang": "zh-CN",
                "value": "中文示例"
            }
        ]
    }
}],
"logic":{"enum_name":"phone_type",
"display":[{
    "lang": "zh-CN",
    "value": "中文示例"
}]},
"is_checked":True,
"filter_desc":"desc",
"criterion_list":"[]"}],
"using_fields":[{
    "source": {
        "enum_name": "phone_type",
        "display": [
            {
                "lang": "zh-CN",
                "value": "中文示例"
            }
        ]
    },
    "apiname": "status"
}],
"system_setting_fields":[{
    "field_type": {
        "enum_name": "phone_type",
        "display": [
            {
                "lang": "zh-CN",
                "value": "中文示例"
            }
        ]
    },
    "label": [
        {
            "lang": "zh-CN",
            "value": "中文示例"
        }
    ],
    "common_info": {
        "source": {
            "enum_name": "phone_type",
            "display": [
                {
                    "lang": "zh-CN",
                    "value": "中文示例"
                }
            ]
        },
        "apiname": "status"
    },
    "combination_info": {
        "total_apiname": "status",
        "apiname": "status",
        "title": [
            {
                "lang": "zh-CN",
                "value": "中文示例"
            }
        ],
        "contents": [
            [
                {
                    "field_type": {
                        "enum_name": "phone_type",
                        "display": [
                            {
                                "lang": "zh-CN",
                                "value": "中文示例"
                            }
                        ]
                    },
                    "info": {
                        "source": {
                            "enum_name": "phone_type",
                            "display": [
                                {
                                    "lang": "zh-CN",
                                    "value": "中文示例"
                                }
                            ]
                        },
                        "apiname": "status"
                    },
                    "label": [
                        {
                            "lang": "zh-CN",
                            "value": "中文示例"
                        }
                    ]
                }
            ]
        ],
        "source": {
            "enum_name": "phone_type",
            "display": [
                {
                    "lang": "zh-CN",
                    "value": "中文示例"
                }
            ]
        }
    },
    "children": "[]",
    "combination_info_v2": {
        "total_apiname": "status",
        "apiname": "status",
        "source": {
            "enum_name": "phone_type",
            "display": [
                {
                    "lang": "zh-CN",
                    "value": "中文示例"
                }
            ]
        }
    }
}]}}]}}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
400 | 1160001 | param is invalid | Check request parameters

