# Obtaining the List of Code Templates

Third-party platform operators can add a code version in the draft box to the code template library by logging in to open.weixin.qq.com or calling the "Selecting a Draft from the Draft Box as a Code Template" API.

# Request Address

GET https://api.weixin.qq.com/wxa/gettemplatelist?access_token=ACCESS_TOKEN

# Request Parameters

Parameter Type Required Description
access_token String Yes Third-party platform's token component_access_token

# Response Parameters

Parameter Type Description
errcode Number Error code
errmsg String Error message
template_list Object Array A list of template information

# Template information

Parameter Type Description
create_time Number The time when the template is added
user_version String The version number of the template. This field is defined by the developer.
user_desc Stirng Template description. This field is defined by the developer.
template_id String Template ID

Example of returned result

{
  "errcode": 0,
  "errmsg": "ok",
  "template_list": [
    {
      "create_time": 1488965944,
      "user_version": "VVV",
      "user_desc": "AAS",
      "template_id": 0
    },
    {
      "create_time": 1504790906,
      "user_version": "11",
      "user_desc": "111111",
      "template_id": 4
    }
  ]
}

# Error Code

Error Code Description
-1 The system is busy.
0 Successful
85064 No template is found.