Documentation

Everything you need to know about using BlogFlux.ai to automate your content creation.

Getting Started

1. Create Your Account

Sign up for a free 14-day trial. You'll get instant access to all features.

Sign Up Now →

2. Configure Your Settings

Choose your preferred AI model (GPT-5 or Claude), set your content tone, and configure SEO preferences.

Go to Dashboard →

3. Connect Your Blog

Link your WordPress site or connect any custom CMS via webhooks. BlogFlux.ai supports seamless integration with WordPress and any HTTP-enabled platform.

4. Generate Your First Post

Enter a topic, choose keywords, and watch BlogFlux.ai create a complete, SEO-optimized blog post in seconds.

Start Creating →

WordPress Integration

Connect BlogFlux.ai to your WordPress site using the native WordPress REST API. Our integration automatically handles authentication, post creation, and metadata optimization.

Setup Steps:

  1. Navigate to "Blog Connections" in your dashboard
  2. Click "Connect WordPress Site"
  3. Enter your WordPress site URL (e.g., https://yourblog.com)
  4. Provide your WordPress username and application password
  5. Test the connection and save

Note: You'll need to create an Application Password in WordPress (Users → Profile → Application Passwords) for secure authentication.

Webhook Integration

Connect BlogFlux.ai to any custom CMS, headless platform, or HTTP-enabled system using webhooks. When a post is generated, BlogFlux.ai will send a POST request to your webhook URL with the complete post data.

Setup Steps:

  1. Navigate to "Blog Connections" in your dashboard
  2. Click "Connect via Webhook"
  3. Enter your webhook URL (must be HTTPS)
  4. Optionally add custom headers for authentication (e.g., API keys)
  5. Test the webhook and save

Webhook Payload:

{
  "id": 456,
  "title": "Your Post Title",
  "content": "<p>Full HTML content with embedded images...</p>",
  "content_markdown": "## Full Markdown source of the same post...",
  "meta_description": "SEO meta description (max 160 chars)",
  "slug": "your-post-title",
  "keywords": ["keyword1", "keyword2", "keyword3"],
  "status": "published",
  "featured_image_url": "https://storage.example.com/featured-image.jpg",
  "images": [
    {
      "url": "https://storage.example.com/image-1.jpg",
      "alt_text": "Description of first image",
      "position": 0,
      "caption": "Optional caption for image"
    },
    {
      "url": "https://storage.example.com/image-2.jpg",
      "alt_text": "Description of second image",
      "position": 1,
      "caption": null
    }
  ],
  "images_count": 2,
  "scheduled_for": "2025-11-10T14:00:00Z",
  "ai_model_used": "gpt5_mini",
  "created_at": "2025-11-06T10:30:00Z",
  "updated_at": "2025-11-06T10:30:00Z"
}
Understanding the Images Array:
  • images - Array of all images generated for this post (may be empty)
  • images_count - Total number of images (0 if no images generated)
  • featured_image_url - Main featured image (same as first image in array)
  • Each image object contains: url, alt_text, position, caption
  • Images are already embedded in the content HTML with proper markup

Expected Response:

Your webhook endpoint should return a 200-299 HTTP status code to confirm successful receipt. Example:

{
  "success": true,
  "post_id": "12345",
  "url": "https://yourblog.com/posts/post-slug"
}

Tip: Use custom headers to pass authentication tokens, API keys, or any metadata your platform requires. Headers are sent with every webhook request.

Use Cases:

  • Headless CMS: Receive posts in any headless CMS through an endpoint you build and host
  • Custom CMS: Integrate with your proprietary content management system
  • Static Site Generators: Have your webhook receiver commit the post or trigger your own site build
  • Custom Workflows: Point your own automation tools at the webhook; you build and run the receiving side

API Reference

BlogFlux.ai provides a comprehensive REST API for developers who want to integrate AI content generation into their applications. Our API supports all core features available in the web interface.

Interactive Documentation:

Access our complete, interactive API documentation built with Swagger/OpenAPI:

View API Documentation

Getting Your API Key:

All API requests require authentication using an API key. Follow these steps to generate your API key:

  1. Log in to your account - You must be signed in to generate API keys
  2. Navigate to API Keys - Click on your profile menu (top right) and select "API Keys", or click here to go directly
  3. Generate a new key - Click the "Generate New API Key" button
  4. Copy your key immediately - The full API key is only shown once. Copy it and store it securely
  5. Use in your requests - Include the key in the Authorization header of all API requests

Authentication:

Include your API key in the Authorization header of every request using the Bearer token format:

Authorization: Bearer YOUR_API_KEY
Security Best Practices:
  • Never commit API keys to public repositories or version control
  • Store keys in environment variables or secure secret management systems
  • Rotate keys regularly and revoke unused keys immediately
  • Use different keys for development, staging, and production environments
  • Monitor your API usage in the dashboard for suspicious activity
Managing API Keys:

You can manage your API keys at any time from the API Keys page:

  • View all active API keys
  • Generate new keys (up to 5 active keys per account)
  • Revoke compromised or unused keys instantly
  • See when each key was created and last used

Core Endpoints:

POST /api/v1/posts

Generate a new blog post with AI

GET /api/v1/posts

List all generated posts

GET /api/v1/posts/:id

Get a specific post by ID

POST /api/v1/posts/:id/publish

Publish a post to connected WordPress site or webhook

GET /api/v1/blog_connections

List all blog connections (WordPress & webhooks)

GET /api/v1/user

Get current user information and limits

Example Request:

curl -X POST https://blogflux.ai/api/v1/posts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "AI Content Generation Best Practices",
    "keywords": ["AI writing", "SEO", "content marketing"],
    "tone": "professional",
    "word_count": 1500,
    "blog_connection_id": 123
  }'

Example Response:

{
  "status": "success",
  "data": {
    "post": {
      "id": 456,
      "title": "AI Content Generation Best Practices: A Complete Guide",
      "content": "<p>Full HTML content...</p>",
      "meta_description": "Learn the best practices...",
      "keywords": ["AI writing", "SEO", "content marketing"],
      "status": "draft",
      "word_count": 1523,
      "created_at": "2025-11-01T22:00:00Z"
    }
  }
}

Best Practices

1. Provide Specific Topics

The more specific your topic, the better the AI can generate relevant content. Instead of "marketing", use "email marketing strategies for SaaS companies".

2. Use Targeted Keywords

Include 3-5 focused keywords that match search intent. The AI will naturally incorporate them while maintaining readability.

3. Review Before Publishing

While AI-generated content is high quality, always review for brand voice, accuracy, and add personal insights before publishing.

4. Optimize Word Count

For SEO, aim for 1,500-2,500 words for pillar content and 800-1,200 words for supporting articles.

5. Use Scheduled Publishing

Plan your content calendar in advance and use scheduled publishing to maintain consistency without manual intervention.

Troubleshooting

WordPress Connection Failed

Issue: "Authentication failed" when connecting WordPress.

Solution:

  • Ensure you're using an Application Password (not your regular password)
  • Verify the WordPress REST API is enabled (it's on by default)
  • Check that your WordPress site URL is correct (include https://)
  • Disable any security plugins that might block REST API access

Webhook Not Receiving Posts

Issue: Webhook endpoint not receiving post data.

Solution:

  • Ensure your webhook URL is HTTPS (HTTP is not supported for security)
  • Verify your endpoint returns a 200-299 status code
  • Check firewall rules aren't blocking BlogFlux.ai's IP addresses
  • Use the "Test Connection" button to debug the webhook

Monthly Limit Reached

Issue: "Monthly post limit reached" error.

Solution:

  • Upgrade to a higher tier plan for more posts per month
  • Wait until your billing cycle resets (shown in Account Settings)
  • Contact support for Enterprise custom limits

API Rate Limiting

Issue: Receiving 429 "Too Many Requests" errors.

Solution:

  • Implement exponential backoff in your API calls
  • Respect rate limits: 60 requests/minute for Pro, 120/minute for Enterprise
  • Use webhooks instead of polling for status updates

Can't Find What You're Looking For?

Our support team is here to help. Browse the help center or contact us directly.

Cookie Preferences

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Learn more