Skip to main content
Finally, build a . Here is an example of what the body of the API call looks like:
This API call will return any file ID that meets the following criteria: 
  • Has the Contact Role template applied
  • Has a value of departments is legal
  • Is located anywhere under the root folder, since “0” is the ancestor_folder_id
As you can see below, this results in a successful call showing information about the file we added the template to in step 2.
Search Query Result
Last modified on January 19, 2026