Skip to the page

API reference

Templates

The template gallery a workspace can use.

/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

NameInTypeRequiredDescription
langqueryone of: "en", "es-419", "pt-BR"no
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • locale one of: "en", "es-419", "pt-BR" required
    • system array of object required
      • key string required The template’s stable name; the id in gallery URLs.
      • category one of: "operations", "safety", "people", "regulatory" required
      • name string required
      • description string required
      • language one of: "en", "es-419", "pt-BR" required The language of the content shown. Author content, never machine-translated.
      • fallback boolean required True when the template has no content in the viewer’s language and the other one is shown.
      • tags array of string required Searchable topic tags (cross-language; not translated).
      • sections_preview array of string required First up to 3 section labels for gallery thumbnail display.
    • personal array of object required The caller’s own templates. Nobody else sees them unless they are made available to the team.
      • id string (uuid) required
      • name string required
      • updated_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • tags array of object required
        • id string (uuid) required
        • name string required
        • color string required
      • team_access boolean required Whether the whole workspace can use the template (team sharing, a paid feature).
    • team array of object required Templates other people made available to the caller, or to the whole team (a paid feature).
      • id string (uuid) required
      • name string required
      • owner_id string (uuid) required
      • updated_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • tags array of object required
        • id string (uuid) required
        • name string required
        • color string required

Errors come in the error format.

/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

NameInTypeRequiredDescription
langqueryone of: "en", "es-419", "pt-BR"no
workspaceIdpathstring (uuid)yes
keypathstringyes

Responses

  • 200 application/json
    • key string required The template’s stable name; the id in gallery URLs.
    • category one of: "operations", "safety", "people", "regulatory" required
    • name string required
    • description string required
    • language one of: "en", "es-419", "pt-BR" required The language of the content shown. Author content, never machine-translated.
    • fallback boolean required True when the template has no content in the viewer’s language and the other one is shown.
    • tags array of string required Searchable topic tags (cross-language; not translated).
    • sections_preview array of string required First up to 3 section labels for gallery thumbnail display.
    • definition object required
      • schema_version integer (at least 1) required
      • sections array of object required
        • id string
        • label string (up to 500 characters) required
        • collapsed boolean
        • items array of object required
          • id string
          • type one of: "checkbox", "short_text", "long_text", "number", "date_time", "dropdown", "radio", "multi_select", "yes_no", "rating", "notes", "signature", "initials" required
          • label string (up to 500 characters) required
          • help_text string (up to 2000 characters)
          • required boolean
          • default_value any
          • validation object
            • min number
            • max number
            • min_length integer (0 to 20000)
            • max_length integer (0 to 20000)
            • pattern string (up to 500 characters)
            • min_selections integer (0 to 200)
            • max_selections integer (0 to 200)
          • yes_label string (up to 100 characters)
          • no_label string (up to 100 characters)
          • options array of object
            • id string
            • label string (up to 500 characters) required
          • visible_when any
          • locked boolean
          • capture object
            • kind one of: "analog_gauge", "digital_display", "clock", "printed_text" required
            • unit string (up to 32 characters)
            • hint string (up to 500 characters)
          • expiry object
            • lead_days integer (1 to 365) required
        • visible_when any
        • handoff object
        • sections array of object
          • id string
          • label string (up to 500 characters) required
          • collapsed boolean
          • items array of object required
            • id string
            • type one of: "checkbox", "short_text", "long_text", "number", "date_time", "dropdown", "radio", "multi_select", "yes_no", "rating", "notes", "signature", "initials" required
            • label string (up to 500 characters) required
            • help_text string (up to 2000 characters)
            • required boolean
            • default_value any
            • validation object
            • yes_label string (up to 100 characters)
            • no_label string (up to 100 characters)
            • options array of object
            • visible_when any
            • locked boolean
            • capture object
            • expiry object
          • visible_when any
          • sections array of object
            • id string
            • label string (up to 500 characters) required
            • collapsed boolean
            • items array of object required
            • visible_when any
            • sections array of object

Errors come in the error format.