Create an account

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

1

Sign up

Visit dashboard.klyra.io to create your account.

2

Create a project

Create a new project in the Klyra dashboard to organize your moderation activities.

3

Get your API key

Generate an API key from the project settings page. Keep this key secure.

Make your first request

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

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"]
    }
  }'

Example response

{
  "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