> For the complete documentation index, see [llms.txt](https://developer.konukcrm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.konukcrm.com/katki/endpoint-sablonu.md).

# Endpoint Şablonu

> **Kullanım:** Bu sayfayı **API Referansı** altına kopyalayın, adını kaynak adıyla değiştirin. Doldurulmayan bölümleri **silin** — boş başlık bırakmayın.

## {{Kaynak Adı}}

{{Bir paragraf: bu kaynak neyi temsil eder, hangi iş akışında kullanılır, hangi kaynaklarla ilişkilidir.}}

**Temel yol:** `/api/v1/{{kaynak}}` **Gereken izin:** `{{kaynak.read}}` / `{{kaynak.manage}}`

## Nesne

| Alan        | Tip          | Yazılabilir | Açıklama               |
| ----------- | ------------ | ----------- | ---------------------- |
| `id`        | `uuid`       | hayır       | Benzersiz kimlik       |
| `{{alan}}`  | `{{string}}` | evet        | {{Açıklama}}           |
| `createdAt` | `datetime`   | hayır       | UTC oluşturulma zamanı |
| `updatedAt` | `datetime`   | hayır       | UTC son güncelleme     |

```json
{
  "id": "{{uuid}}",
  "{{alan}}": "{{değer}}",
  "createdAt": "2026-09-04T09:12:33Z",
  "updatedAt": "2026-09-04T09:12:33Z"
}
```

## Listele

`GET /api/v1/{{kaynak}}`

| Parametre    | Tip          | Zorunlu | Açıklama                                 |
| ------------ | ------------ | ------- | ---------------------------------------- |
| `page`       | `int`        | hayır   | Varsayılan `1`                           |
| `pageSize`   | `int`        | hayır   | Varsayılan `{{20}}`, üst sınır `{{100}}` |
| `{{filtre}}` | `{{string}}` | hayır   | {{Açıklama}}                             |

```bash
curl -G https://{{api.konukcrm.com}}/api/v1/{{kaynak}} \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  --data-urlencode "page=1"
```

## Tek kayıt getir

`GET /api/v1/{{kaynak}}/{id}`

| Durum | Anlamı                               |
| ----- | ------------------------------------ |
| `200` | Bulundu                              |
| `404` | Kayıt yok veya bu tenant'a ait değil |

## Oluştur

`POST /api/v1/{{kaynak}}`

```json
{
  "{{alan}}": "{{değer}}"
}
```

**Doğrulama kuralları**

* `{{alan}}` — {{zorunlu, en fazla N karakter}}

| Durum | Anlamı                  |
| ----- | ----------------------- |
| `201` | Oluşturuldu             |
| `409` | {{Benzersizlik ihlali}} |
| `422` | Doğrulama hatası        |

## Güncelle

`PUT /api/v1/{{kaynak}}/{id}`

{{Kısmi güncelleme destekleniyor mu, yoksa tam nesne mi gönderilmeli? Açıkça yazın.}}

## Sil

`DELETE /api/v1/{{kaynak}}/{id}`

{{Yumuşak silme mi (soft delete) kalıcı silme mi? Bağlı kayıtlara ne olur?}}

| Durum | Anlamı                                 |
| ----- | -------------------------------------- |
| `204` | Silindi                                |
| `409` | {{Bağlı kayıtlar nedeniyle silinemez}} |

## Notlar ve tuzaklar

* {{Bu kaynakla çalışırken sık yapılan hata.}}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.konukcrm.com/katki/endpoint-sablonu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
