> ## Documentation Index
> Fetch the complete documentation index at: https://docs.claboard.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates API

> Prompt şablonları için CRUD uç noktaları

## Şablonları Listele

```http theme={null}
GET /api/projects/:projectId/templates
```

Bir projeye ait tüm prompt şablonlarını döndürür.

```json theme={null}
[
  {
    "id": 1,
    "projectId": 1,
    "name": "Feature Template",
    "content": "You are working on {{project_name}}...",
    "taskType": "feature",
    "model": "sonnet",
    "thinkingEffort": "medium",
    "createdAt": "2025-01-15T10:00:00Z"
  }
]
```

## Şablon Getir

```http theme={null}
GET /api/projects/:projectId/templates/:id
```

## Şablon Oluştur

```http theme={null}
POST /api/projects/:projectId/templates
Content-Type: application/json
```

```json theme={null}
{
  "name": "Feature Template",
  "content": "You are working on {{project_name}}.\nTask: {{task_title}}\nType: {{task_type}}\n\nWrite clean, tested code.",
  "taskType": "feature",
  "model": "sonnet",
  "thinkingEffort": "medium"
}
```

| Alan             | Zorunlu | Varsayılan | Açıklama                                         |
| ---------------- | ------- | ---------- | ------------------------------------------------ |
| `name`           | Evet    | —          | Şablon görünen adı                               |
| `content`        | Evet    | —          | İsteğe bağlı `{{variables}}` içeren şablon metni |
| `taskType`       | Hayır   | —          | Bu görev türüne otomatik uygula                  |
| `model`          | Hayır   | —          | Şablon kullanıldığında varsayılan model          |
| `thinkingEffort` | Hayır   | —          | Varsayılan düşünme çabası                        |

### Şablon Değişkenleri

| Değişken           | Karşılığı                         |
| ------------------ | --------------------------------- |
| `{{project_name}}` | Proje adı                         |
| `{{task_title}}`   | Görev başlığı                     |
| `{{task_type}}`    | Görev türü (feature, bugfix, vb.) |
| `{{priority}}`     | Öncelik seviyesi                  |
| `{{model}}`        | Seçilen model                     |

## Şablon Güncelle

```http theme={null}
PUT /api/projects/:projectId/templates/:id
Content-Type: application/json
```

Oluşturma ile aynı alanları kabul eder.

## Şablon Sil

```http theme={null}
DELETE /api/projects/:projectId/templates/:id
```
