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

# Quickstart

> Get started with Klyra in under 5 minutes

## Create an account

Sign up for a Klyra account to get your API keys and start moderating content.

<Steps>
  <Step title="Sign up">
    Visit [dashboard.klyra.io](https://dashboard.klyra.io) to create your account.
  </Step>

  <Step title="Create a project">
    Create a new project in the Klyra dashboard to organize your moderation activities.
  </Step>

  <Step title="Get your API key">
    Generate an API key from the project settings page. Keep this key secure.
  </Step>
</Steps>

## Make your first request

Once you have your API key, you can start making moderation requests.

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://api.klyra.io/v1/moderate/text" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "content": "This is a test message to moderate.",
      "settings": {
        "categories": ["toxic", "spam", "adult"]
      }
    }'
  ```

  ```js JavaScript theme={null}
  import { KlyraClient } from '@klyra/sdk';

  const klyra = new KlyraClient('YOUR_API_KEY');

  async function moderateText() {
    const result = await klyra.moderateText({
      content: "This is a test message to moderate.",
      settings: {
        categories: ["toxic", "spam", "adult"]
      }
    });
    
    console.log(result);
  }

  moderateText();
  ```

  ```python Python theme={null}
  from klyra import KlyraClient

  # Initialize the client
  klyra = KlyraClient("YOUR_API_KEY")

  # Moderate text content
  result = klyra.moderate_text(
      content="This is a test message to moderate.",
      settings={
          "categories": ["toxic", "spam", "adult"]
      }
  )

  print(result)
  ```

  ```go Go theme={null}
  package main

  import (
  	"fmt"
  	"github.com/klyra/klyra-go"
  )

  func main() {
  	client := klyra.NewClient("YOUR_API_KEY")
  	
  	result, err := client.ModerateText(klyra.TextModerationRequest{
  		Content: "This is a test message to moderate.",
  		Settings: klyra.ModerationSettings{
  			Categories: []string{"toxic", "spam", "adult"},
  		},
  	})
  	
  	if err != nil {
  		fmt.Printf("Error: %v\n", err)
  		return
  	}
  	
  	fmt.Printf("Result: %+v\n", result)
  }
  ```
</CodeGroup>

## Example response

```json theme={null}
{
  "id": "mod_1a2b3c4d5e6f7g8h9i0j",
  "status": "success",
  "timestamp": "2023-07-15T14:30:45Z",
  "results": {
    "flagged": false,
    "categories": {
      "toxic": {
        "score": 0.01,
        "flagged": false
      },
      "spam": {
        "score": 0.02,
        "flagged": false
      },
      "adult": {
        "score": 0.00,
        "flagged": false
      }
    }
  },
  "metadata": {
    "processing_time_ms": 132
  }
}
```

## Next steps

<CardGroup>
  <Card title="API Authentication" icon="key" href="/essentials/authentication">
    Learn more about API keys and authentication options
  </Card>

  <Card title="Moderation Models" icon="robot" href="/essentials/moderation-models">
    Explore the different moderation models and capabilities
  </Card>

  <Card title="Webhooks" icon="bell" href="/essentials/webhooks">
    Set up webhooks for real-time moderation events
  </Card>

  <Card title="SDKs" icon="code" href="/api-reference/sdks">
    Explore our client libraries for different programming languages
  </Card>
</CardGroup>
