---
title: "Generate an article with AI"
method: POST
path: "/api/articles/generate"
tags: ["Articles"]
---

# Generate an article with AI

`POST /api/articles/generate`

## Request

- Base URL: `https://www.polyblog.io`
- URL: `https://www.polyblog.io/api/articles/generate`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Generates (and by default publishes) an SEO article for a blog. Requires the `articles:write` scope. Fires the `article.created` webhook when the generated article is persisted.

## Response `200`

The generated article and metadata

## Other responses

- `403`: API key is missing the `articles:write` scope

---

[API](https://skmtc.dev/polyblog/apis/polyblog-api.md) · [All operations](https://skmtc.dev/polyblog/apis/polyblog-api/llms.txt) · [OpenAPI document](https://skmtc.dev/polyblog/apis/polyblog-api/revisions/b0d2db9337ab?raw)
