GET templates
Templates are used to describe the structure and available fields for each task. You’ll need to understand each template if you plan to use the API to create tasks.
This endpoint returns all templates available team
GET thgflow.com/api/rest/v1/teams/task_templates
Response
{
"templates": Template[]
}
interface Field {
id: string;
name: string;
type: string;
required: boolean;
options: string[];
value: string[];
is_visible_by_users: boolean;
description: string;
}
interface Template {
id: string;
name: string;
fields: Field[];
is_visible_by_users: boolean;
}