Returns the list of all files attached to the specified template, including each file's ID, macro key, MD5 checksum, file size in bytes, original filename, and MIME content type.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/template/template-file/list.do
Returns the list of all files attached to the specified template, including each file's ID, macro key, MD5 checksum, file size in bytes, original filename, and MIME content type. The response is a SearchResult wrapper containing a 'data' array of file objects and a 'total' count. Returns an empty list if the template does not exist or if the caller lacks VIEW permission. Requires VIEW permission on the template through ownership or sharing.
Query Params
templateIdintegerrequired
Unique numeric identifier of the template whose files should be listed
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/template/template-file/list.do?templateId=300");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());