Quickstart

Get started with the Hatrio API in under 5 minutes. This guide will walk you through authenticating and triggering your first autonomous content generation.

1. Get your API Key

First, navigate to your Dashboard and create a new Platform Key. Ensure you save it securely, as it won't be shown again.

2. Trigger a Generation

Use the following curl command to trigger a new autonomous article. Replace hat_live_... with your actual key and website_id with your target platform ID from the dashboard.

curl -X POST https://api.hatrio.ai/api/v1/generate \
  -H "Authorization: Bearer hat_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "The benefits of AI automation for SMEs",
    "website_id": "your_website_id"
  }'

3. Monitor the Status

The generation process is asynchronous. You will receive a job_id in the response. You can poll the status or set up an Outbound Hook to get notified when it's done. Once completed, you can fetch the article details using:

GET https://api.hatrio.ai/api/v1/articles/{id}

What's Next?

Dive deeper into Brand DNA to see how Hatrio maintains your specific voice across all generated content.