The GoalTemplate interface represents a saved template that can be used to quickly create new goals with predefined structure and settings.
Properties
Unique identifier for the template
ID of the user who created this template
Name of the template for identification
The goal structure to use when creating a new goal from this template. This is a partial Goal object containing any subset of Goal properties to pre-fill.
ISO 8601 timestamp when the template was created
Example
{
"id": "template_123",
"user_id": "user_456",
"name": "Quarterly OKR Template",
"structure": {
"title": "Q1 Objectives",
"description": "Quarterly goals and key results",
"status": "not_started",
"is_recurring": true,
"recurrence_cadence": "weekly",
"priority": 5,
"color_tag": "#4A90E2"
},
"created_at": "2026-01-15T08:00:00Z"
}
Type definitions
export interface GoalTemplate {
id: string
user_id: string
name: string
structure: Partial<Goal>
created_at: string
}