> 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/api-referansi.md).

# API Referansı

Taban URL: `https://{{api.konukcrm.com}}/api/v1`

Ortak kurallar (zarf, sayfalama, hata biçimi) **Rehberler → API Temelleri** sayfasındadır ve burada tekrar edilmez.

## OpenAPI

Makine tarafından okunabilir şema:

```
https://{{api.konukcrm.com}}/swagger/v1/swagger.json
```

İstemci üretmek için:

```bash
npx orval --input https://{{api.konukcrm.com}}/swagger/v1/swagger.json --output ./src/api
```

## Kimlik ve hesap

| Kaynak      | Uçlar                                                                                         | İzin           |
| ----------- | --------------------------------------------------------------------------------------------- | -------------- |
| Auth        | `POST /auth/login` · `refresh` · `logout` · `register` · `forgot-password` · `reset-password` | —              |
| Profile     | `GET/PUT /profile` · avatar yükleme                                                           | Kendi hesabı   |
| Users       | `GET/POST/PUT/DELETE /users`                                                                  | `users.manage` |
| Roles       | `GET/POST/PUT/DELETE /roles`                                                                  | `roles.manage` |
| Permissions | `GET /permissions`                                                                            | `roles.manage` |

## Otel ve fiyatlandırma

| Kaynak              | Uçlar                                             | İzin                |
| ------------------- | ------------------------------------------------- | ------------------- |
| Hotels              | `GET/POST/PUT/DELETE /hotels`                     | `hotels.manage`     |
| Room Types          | `GET/POST/PUT/DELETE /{{hotels/{id}/room-types}}` | `hotels.manage`     |
| Discounts           | `GET/POST/PUT/DELETE /discounts`                  | `pricing.manage`    |
| Currencies          | `GET/POST/PUT/DELETE /currencies`                 | `settings.manage`   |
| Additional Services | `GET/POST/PUT/DELETE /additionalservices`         | `settings.manage`   |
| Availability        | `GET /{{availability}}`                           | `reservations.read` |

> Oda fiyatı **sezon dönemlerinden** hesaplanır. Sezon tanımı yoksa müsaitlik `0` döner — bu bir hata değil, yapılandırma eksikliğidir.

## Misafir CRM

| Kaynak         | Uçlar                                | İzin                            |
| -------------- | ------------------------------------ | ------------------------------- |
| Guests         | `GET/POST/PUT/DELETE /guests`        | `guests.read` / `guests.manage` |
| Guest Groups   | `GET/POST/PUT/DELETE /guestgroups`   | `guests.manage`                 |
| Guest Segments | `GET/POST/PUT/DELETE /guestsegments` | `guests.manage`                 |
| Guest Types    | `GET/POST/PUT/DELETE /guesttypes`    | `settings.manage`               |

## Çağrı ve rezervasyon

| Kaynak              | Uçlar                                                  | İzin                  |
| ------------------- | ------------------------------------------------------ | --------------------- |
| Calls               | `GET /calls` · `GET /calls/{id}`                       | `calls.read`          |
| Scheduled Callbacks | `GET/POST/PUT/DELETE /scheduledcallbacks`              | `calls.manage`        |
| Reservations        | `GET/POST/PUT/DELETE /reservations`                    | `reservations.manage` |
| Recordings          | `GET /recordings` · imzalı indirme bağlantısı          | `recordings.read`     |
| Voice Queue         | `GET /voicequeue` · `POST /{{voicequeue/{id}/assign}}` | `calls.manage`        |
| Voice DIDs          | `GET/POST/PUT/DELETE /voicedids`                       | `integrations.manage` |
| SIP Credentials     | `GET /sip/credentials`                                 | Oturumlu kullanıcı    |

## Raporlama

| Kaynak    | Uçlar                  | İzin               |
| --------- | ---------------------- | ------------------ |
| Dashboard | `GET /dashboard`       | `dashboard.read`   |
| Reports   | `GET /reports/{{...}}` | `reports.read`     |
| Search    | `GET /search?q=`       | Oturumlu kullanıcı |
| Audit     | `GET /audit`           | `audit.read`       |

## Kanallar

| Kaynak        | Uçlar                                                            | İzin                      |
| ------------- | ---------------------------------------------------------------- | ------------------------- |
| Integrations  | `GET/POST/PUT /integrations`                                     | `integrations.manage`     |
| WhatsApp      | `/whatsapp/...` mesaj, şablon, numara                            | `integrations.manage`     |
| Instagram     | `/instagram/...`                                                 | `integrations.manage`     |
| Netgsm (SMS)  | `/netgsm/...`                                                    | `integrations.manage`     |
| Chat Widgets  | `/chatwidgets/...` (yönetim) · `/publicchatwidgets/...` (anonim) | `integrations.manage` / — |
| Notifications | `GET /notifications` · okundu işaretle                           | Oturumlu kullanıcı        |

## İzin hataları

Uç mevcut ama rolünüzde izin yoksa `403` alırsınız:

```json
{ "success": false, "message": "Access denied", "statusCode": 403, "traceId": "..." }
```

Kullanıcının etkin izinlerini `GET /permissions` ile listeleyebilirsiniz.


---

# 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/api-referansi.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.
