Back to GuidesPublishing

Custom API Publishing

Publish articles to Next.js, Nuxt, or any custom app via API.

6 min readUpdated February 20, 2026

Custom API Publishing

AEOBot's Custom API integration lets you publish articles to any web application — Next.js, Nuxt, Remix, Express, Django, or anything else.

How It Works

Add API endpoint
Set secret key
Deploy
Connect in AEOBot
Publish articles

Setup for Next.js (App Router)

1

Create the API Route

Create a file at app/api/aeobotai/route.ts in your project with GET (health check) and POST (receive articles) handlers. Authenticate using a Bearer token from environment variables.

2

Set Your Secret Key

Add AEOBOTAI_SECRET=your_random_secret_key_here to your environment variables. Generate a secure key with openssl rand -hex 32.

3

Deploy

Push your changes. Vercel or Netlify will auto-deploy.

4

Connect in AEOBot

Go to Connected Sites → Connect, select Custom API, enter your endpoint URL and secret key, test the connection, and save.

What AEOBot Sends

FieldTypeDescription
titlestringArticle title
contentstringFull article in HTML
slugstringURL-friendly slug
meta_titlestringSEO title tag
meta_descriptionstringSEO meta description
schema_markupobjectJSON-LD structured data

Database Approach

For database-backed blogs, replace file-writing with a database insert. For example, with Supabase you would insert into a posts table and return the post URL.

Troubleshooting

"Endpoint not found" — Make sure the API route is deployed and the URL includes the full path.

"Authentication failed" — The secret key in AEOBot must exactly match your environment variable.

"Articles not appearing" — For file-based blogs, you may need to redeploy. For database blogs, check your rendering logic.

Frequently Asked Questions

Which frameworks does Custom API support?

Any framework with a REST API endpoint — Next.js, Nuxt, Remix, Express, Django, Rails, and more.

What data does AEOBot send?

Title, HTML content, slug, meta title, meta description, and Schema.org markup as JSON.

Do I need to redeploy after publishing?

For file-based blogs, yes. For database-based blogs, articles appear immediately.

Was this guide helpful?

Ready to Try It Yourself?

Create SEO + AEO optimized content in minutes. No credit card required.

Get Started Free