- List template collections
Fetch the available template collections.
To fetch templates that belong to a collection, refer to the GET /api/templates endpoint and use filter[collection].
Sort order for the template collection list. Use the field name for ascending order, or prefix with - for descending order (for example, title sorts by localized title ascending; -title sorts descending).
Allowed sort fields: title, id, and updated_at.
When sorting by title, set sort_locale to control which translation is preferred for the comparison. If sort_locale is omitted, the API compares titles using a fallback across all supported languages.
Locale code used when sorting by title: that language’s string is preferred when comparing titles (other languages are still used as fallback). Must be one of the supported Builder language codes. Ignored when the active sort does not use localized title.
- Production (Legal Engine)https://api.builder.docue.com/api/template-collections
curl -i -X GET \
'https://api.builder.docue.com/api/template-collections?per_page=20&page=1&filter%5Bquery%5D=HR&sort=title&sort_locale=en-GB' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API Key_HERE>'{ "data": [ { … }, { … } ], "meta": { "status": { … }, "pagination": { … } } }