Fetch templates available for the authenticated workspace.
Use filter[query] to search templates by title with a partial, case-insensitive match. Example: GET /api/templates?filter[query]=employment
Use filter[collection] to only return templates that belong to a specific collection ID. Example: GET /api/templates?filter[collection]=01965c7e-dc1e-7292-8199-8184041c1204
You can combine both filters in one request. Example: GET /api/templates?filter[query]=employment&filter[collection]=01965c7e-dc1e-7292-8199-8184041c1204
To include template collections in each template item, request include=collections.
Filter templates to those belonging to the specified template collection. Use GET /api/template-collections to discover available collection IDs. Please note that a template may belong to multiple collections.
Sort order for the template 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, created_at, and updated_at.
Multiple sorts can be combined in one parameter as a comma-separated list (for example, sort=title,-created_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/templates
curl -i -X GET \
'https://api.builder.docue.com/api/templates?per_page=20&page=1&filter%5Bquery%5D=employment&filter%5Bcollection%5D=01965c7e-dc1e-7292-8199-8184041c1204&sort=title&sort_locale=en-GB&include=collections%2Clanguages%2Cjurisdictions' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API Key_HERE>'{ "data": [ { … } ], "meta": { "status": { … }, "pagination": { … } } }