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

# Yeni Kullanıcı Kaydı

> Yeni Kullanıcı Kaydı Yapılır



## OpenAPI

````yaml /open-api/tr/auth-version-1.json post /v1/auth/register
openapi: 3.1.0
info:
  title: OpenAPI definition
  version: v0
servers:
  - url: https://api.iklim.co
    description: Production server
  - url: https://api-test.iklim.co
    description: Test server
security: []
tags:
  - name: Kullanıcı Servisi
    description: Kullanıcı ile İlgili İşlemleri Yönetir
  - name: Yetklilendirme Servisi
    description: Yetkilendirme İşlemlerini Yönetir
paths:
  /v1/auth/register:
    post:
      tags:
        - Yetklilendirme Servisi
      summary: Yeni Kullanıcı Kaydı
      description: Yeni Kullanıcı Kaydı Yapılır
      operationId: register
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterUserRequest'
        required: true
      responses:
        '200':
          description: Başarılı Kullanıcı Kaydı
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegisterUserRequest'
        '400':
          description: >-
            İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi
            Hatalı
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
              examples:
                Bad Request Example:
                  summary: Example response
                  description: Bad Request Example
                  value:
                    timestamp: '2025-04-14T16:26:54.203118461'
                    status: 400
                    error: Bad Request
                    message: Missing X-Idempotency-Key header
                    path: /endpoint/uri/here
        '401':
          description: Yetkisiz veya Hatalı İmza ile İstek
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
              examples:
                Unauthorized Example 1:
                  summary: Example response 1
                  description: Unauthorized Example 1
                  value:
                    timestamp: '2025-04-14T16:57:50.083970026'
                    status: 401
                    error: Unauthorized
                    message: Bad Credentials
                    path: /endpoint/uri/here
                Unauthorized Example 2:
                  summary: Example response 2
                  description: Unauthorized Example 2
                  value:
                    timestamp: '2025-04-14T16:57:50.083970026'
                    status: 401
                    error: Unauthorized
                    message: Invalid request signature
                    path: /auth/login
        '403':
          description: Yasak
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
        '409':
          description: Mükerrer İstek Yapıldı
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
              examples:
                Conflict Example 1:
                  summary: Example response 1
                  description: Conflict Example 1
                  value:
                    timestamp: '2025-04-14T16:57:21.168927321'
                    status: 409
                    error: Conflict
                    message: Replay attack detected (nonce reused)
                    path: /endpoint/uri/here
                Conflict Example 2:
                  summary: Example response 2
                  description: Conflict Example 2
                  value:
                    timestamp: '2025-04-14T16:56:28.671809875'
                    status: 409
                    error: Conflict
                    message: Duplicate request detected (X-Idempotency-Key)
                    path: /endpoint/uri/here
        '500':
          description: İstek Sırasında Dahili Sunucu Hatası
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorResponse'
              examples:
                Internal Server Error Example:
                  summary: Example response
                  description: Internal Server Error Example
                  value:
                    timestamp: '2025-04-14T16:58:10.414972912'
                    status: 500
                    error: Internal Server Error
                    message: An Error Occurred During Login
                    path: /endpoint/uri/here
components:
  schemas:
    RegisterUserRequest:
      type: object
      properties:
        username:
          type: string
          description: Kayıt İçin E-Posta Biçiminde Kullanıcı Adı
          example: name@domain.com
          minLength: 1
        password:
          type: string
          description: Kayıt İçin Şifre
          example: password
        firstName:
          type: string
          description: Kayıt İçin Kullanıcının İlk Adı
          example: John
          minLength: 1
        midName:
          type: string
          description: Kayıt İçin Kullanıcının Göbek Adı
          example: Bob
        lastName:
          type: string
          description: Kayıt İçin Kullanıcının Soy Adı
          example: Doe
          minLength: 1
        locale:
          type: string
          description: Kayıt İçin Kullanıcının Yerel Ayarı
          example: tr_TR
          minLength: 1
        timezone:
          type: string
          description: >-
            Kullanıcı Zaman Dilimi Id'si.

            https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
            adresinde 'TZ Tanımlayıcısının' Bir Listesini Bulabilirsiniz
          example: Europe/Istanbul
          minLength: 1
      required:
        - firstName
        - lastName
        - locale
        - timezone
        - username
    StandardErrorResponse:
      type: object
      description: Standart API hata cevabı yapısı
      properties:
        timestamp:
          type: string
          format: date-time
          description: Hatanın oluştuğu zaman damgası
          example: YYYY-mm-DDTHH:MM:SS.nnnnnnnnn
        status:
          type: integer
          format: int32
          description: HTTP durum kodu
          example: XXX
        error:
          type: string
          description: Hata adı veya tipi
          example: Error Name
          minLength: 1
        message:
          type: string
          description: Ana hata mesajı
          example: Error Message
          minLength: 1
        messages:
          type: array
          description: Ek detaylı hata mesajları
          items:
            type: string
        path:
          type: string
          description: Hatanın oluştuğu istek yolu
          example: /endpoint/uri/here
          minLength: 1
      required:
        - error
        - message
        - path
        - status
        - timestamp

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.