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

# Hızlı Başlangıç

> Detectivision API kullanımına hızlı bir başlangıç

## Başlarken

Detectivision API'yi kullanmaya başlamak için aşağıdaki adımları izleyin.

### API Anahtarı Alın

<Steps>
  <Step title="Kayıt Olun">
    [Detectivision Dashboard](https://dashboard.detectivision.com)'a kaydolun.
  </Step>

  <Step title="API Anahtarı Oluşturun">
    Dashboard üzerinden "API Anahtarları" bölümüne gidin ve yeni bir anahtar oluşturun.
  </Step>

  <Step title="API Anahtarınızı Kopyalayın">
    Oluşturulan API anahtarını güvenli bir şekilde saklayın.
  </Step>
</Steps>

## İlk API İsteğinizi Gönderin

Aşağıdaki kod örnekleri ile API'ye istek göndermeye başlayabilirsiniz:

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "http://localhost:8787/api/v1/moderation" \
    -H "API-Key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "type": "text_moderation",
      "input": "Bu metni analiz et"
    }'
  ```

  ```javascript JavaScript theme={null}
  const fetchModerationResult = async (text) => {
    const response = await fetch('http://localhost:8787/api/v1/moderation', {
      method: 'POST',
      headers: {
        'API-Key': 'YOUR_API_KEY',
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        type: 'text_moderation',
        input: text,
      }),
    });
    
    return await response.json();
  };

  fetchModerationResult('Bu metni analiz et')
    .then(result => console.log(result))
    .catch(error => console.error('Error:', error));
  ```

  ```python Python theme={null}
  import requests

  url = "http://localhost:8787/api/v1/moderation"
  headers = {
      "API-Key": "YOUR_API_KEY",
      "Content-Type": "application/json"
  }
  data = {
      "type": "text_moderation",
      "input": "Bu metni analiz et"
  }

  response = requests.post(url, headers=headers, json=data)
  result = response.json()
  print(result)
  ```
</CodeGroup>

## Yanıtı İşleme

API yanıtını aşağıdaki gibi işleyebilirsiniz:

```javascript theme={null}
// Örnek API yanıtı
{
  "id": 25,
  "jobId": 122,
  "result": {
    "language": "tr",
    "scores": {
      "NEUTRAL": 0.9886459112167358,
      "SEXUAL": 0.0022032149136066437,
      "HATE": 0.001250135712325573,
      "SELF_HARM": 0.001079669571481645,
      "BAD_HABITS": 0.00073793507181108
    },
    "flags": {
      "NEUTRAL": true,
      "SEXUAL": false,
      "HATE": false,
      "SELF_HARM": false,
      "BAD_HABITS": false
    }
  },
  "createdAt": 1742201764,
  "updatedAt": 1742201764
}
```

### Kategori Skorları Nasıl Yorumlanır

API yanıtındaki skorlara göre içeriğin güvenliğini değerlendirebilirsiniz:

* **0.0 - 0.3**: Düşük risk - İçerik büyük olasılıkla güvenlidir
* **0.3 - 0.7**: Orta risk - İncelemeye değer olabilir
* **0.7 - 1.0**: Yüksek risk - İçerik muhtemelen güvenli değildir

## Sonraki Adımlar

<CardGroup>
  <Card title="API Referansını İnceleyin" icon="book-open" href="/api-reference/introduction">
    Tüm API özelliklerini keşfedin
  </Card>

  <Card title="İçerik Moderasyonu" icon="shield-check" href="/api-reference/endpoint/moderation">
    İçerik moderasyonu API'sini daha ayrıntılı inceleyin
  </Card>
</CardGroup>
