# Obtaining the List of Code Drafts

This API allows you to obtain all drafts (that is, temporary code templates) from a draft box. The drafts are uploaded via Weixin DevTools by development Mini Programs on third-party platforms. For more information, see Third-Party Platform.

# Request Address

GET https://api.weixin.qq.com/wxa/gettemplatedraftlist?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
draft_list Object Array A list of draft information

# Draft information

Parameter Type Description
create_time Number The timestamp when the developer uploads the draft.
user_version String Version number. This field is defined by the developer.
user_desc String Version description. This field is defined by the developer.
draft_id Number Draft ID

Example of returned result

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

# Error Code

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