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

# Anahtarı doğrula

> Anahtarın geçerli olduğunu doğrular; anahtarın ait olduğu organizasyonu ve kredi bakiyesini döner.



## OpenAPI

````yaml /api-reference/openapi.json get /me
openapi: 3.1.0
info:
  title: AI Agent TR Public API
  version: 1.0.0
  description: >-
    Organizasyonunuzun Private API Anahtarı ile çağrılan uçlar. Organizasyon
    anahtardan belirlenir.
servers:
  - url: https://api.aiagenttr.com/api/public/v1
    description: Canlı
security:
  - bearerAuth: []
paths:
  /me:
    get:
      summary: Anahtarı doğrula
      description: >-
        Anahtarın geçerli olduğunu doğrular; anahtarın ait olduğu organizasyonu
        ve kredi bakiyesini döner.
      operationId: getMe
      responses:
        '200':
          description: Anahtar geçerli
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
        '401':
          $ref: '#/components/responses/Unauthenticated'
components:
  schemas:
    Me:
      type: object
      properties:
        organization_id:
          type: string
          format: uuid
        organization_name:
          type: string
          example: Örnek A.Ş.
        credit_balance:
          type: number
          example: 1250.5
        reserved_credits:
          type: number
          example: 12
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details: {}
  responses:
    Unauthenticated:
      description: Anahtar yok, geçersiz ya da yenilenmiş
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: unauthenticated
            message: invalid api key
            details: null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organizasyonun Private API Anahtarı (Organizasyon Ayarları → Private API
        Anahtarı).

````

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