GET The template gallery
/api/clist/v1/workspaces/{workspaceId}/template-gallery
API key scope: workspace.view
The system templates in the viewer’s language (lang, else their choice, Accept-Language or the workspace default; a template with no content in that language is shown in the other, with fallback true) and the caller’s own personal templates. Hidden system templates (admin console) are left out. Team templates come later.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
lang | query | one of: "en", "es-419", "pt-BR" | no | |
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsonlocaleone of: "en", "es-419", "pt-BR" requiredsystemarray of object requiredkeystring required The template’s stable name; the id in gallery URLs.categoryone of: "operations", "safety", "people", "regulatory" requirednamestring requireddescriptionstring requiredlanguageone of: "en", "es-419", "pt-BR" required The language of the content shown. Author content, never machine-translated.fallbackboolean required True when the template has no content in the viewer’s language and the other one is shown.tagsarray of string required Searchable topic tags (cross-language; not translated).sections_previewarray of string required First up to 3 section labels for gallery thumbnail display.
personalarray of object required The caller’s own templates. Nobody else sees them unless they are made available to the team.idstring (uuid) requirednamestring requiredupdated_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.tagsarray of object requiredidstring (uuid) requirednamestring requiredcolorstring required
team_accessboolean required Whether the whole workspace can use the template (team sharing, a paid feature).
teamarray of object required Templates other people made available to the caller, or to the whole team (a paid feature).idstring (uuid) requirednamestring requiredowner_idstring (uuid) requiredupdated_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.tagsarray of object requiredidstring (uuid) requirednamestring requiredcolorstring required
Errors come in the error format.
GET Preview a system template
/api/clist/v1/workspaces/{workspaceId}/template-gallery/{key}
API key scope: workspace.view
The template’s content in the viewer’s language, as the definition a checklist would be made from.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
lang | query | one of: "en", "es-419", "pt-BR" | no | |
workspaceId | path | string (uuid) | yes | |
key | path | string | yes |
Responses
- 200
application/jsonkeystring required The template’s stable name; the id in gallery URLs.categoryone of: "operations", "safety", "people", "regulatory" requirednamestring requireddescriptionstring requiredlanguageone of: "en", "es-419", "pt-BR" required The language of the content shown. Author content, never machine-translated.fallbackboolean required True when the template has no content in the viewer’s language and the other one is shown.tagsarray of string required Searchable topic tags (cross-language; not translated).sections_previewarray of string required First up to 3 section labels for gallery thumbnail display.definitionobject requiredschema_versioninteger (at least 1) requiredsectionsarray of object requiredidstringlabelstring (up to 500 characters) requiredcollapsedbooleanitemsarray of object requiredidstringtypeone of: "checkbox", "short_text", "long_text", "number", "date_time", "dropdown", "radio", "multi_select", "yes_no", "rating", "notes", "signature", "initials" requiredlabelstring (up to 500 characters) requiredhelp_textstring (up to 2000 characters)requiredbooleandefault_valueanyvalidationobjectminnumbermaxnumbermin_lengthinteger (0 to 20000)max_lengthinteger (0 to 20000)patternstring (up to 500 characters)min_selectionsinteger (0 to 200)max_selectionsinteger (0 to 200)
yes_labelstring (up to 100 characters)no_labelstring (up to 100 characters)optionsarray of objectidstringlabelstring (up to 500 characters) required
visible_whenanylockedbooleancaptureobjectkindone of: "analog_gauge", "digital_display", "clock", "printed_text" requiredunitstring (up to 32 characters)hintstring (up to 500 characters)
expiryobjectlead_daysinteger (1 to 365) required
visible_whenanyhandoffobjectsectionsarray of objectidstringlabelstring (up to 500 characters) requiredcollapsedbooleanitemsarray of object requiredidstringtypeone of: "checkbox", "short_text", "long_text", "number", "date_time", "dropdown", "radio", "multi_select", "yes_no", "rating", "notes", "signature", "initials" requiredlabelstring (up to 500 characters) requiredhelp_textstring (up to 2000 characters)requiredbooleandefault_valueanyvalidationobjectyes_labelstring (up to 100 characters)no_labelstring (up to 100 characters)optionsarray of objectvisible_whenanylockedbooleancaptureobjectexpiryobject
visible_whenanysectionsarray of objectidstringlabelstring (up to 500 characters) requiredcollapsedbooleanitemsarray of object requiredvisible_whenanysectionsarray of object
Errors come in the error format.