Public Blog

Create Or Update Post

Create or update a public blog post (upsert by slug).

If a post with the given slug exists, it will be updated. Otherwise, a new post will be created.

Requires API key with blogs:publish scope.

post/api/v1/public-blog/posts

Request

  • Base URL: https://api.seoproai.co
  • URL: https://api.seoproai.co/api/v1/public-blog/posts
  • Auth: none required

Headers

authorizationstring nullable

Request body

titlestring required

Post title

slugstring nullable

URL slug (auto-generated from title if not provided)

contentstring required

Full HTML content of the post

excerptstring nullable

Short excerpt for previews

featured_image_urlstring nullable

URL of the featured image

featured_image_altstring nullable

Alt text for featured image

meta_titlestring nullable

SEO meta title

meta_descriptionstring nullable

SEO meta description

canonical_urlstring nullable

Canonical URL if different from default

focus_keywordstring nullable

Primary SEO keyword

category_slugstring nullable

Category slug to assign

tagsstring[] nullable

List of tags

statusstring

Post status: draft, published, or archived

author_namestring

Author name to display

published_atstring date-time nullable

Publication date (auto-set on first publish)

Response

Successful Response

idstring required
titlestring required
slugstring required
statusstring required
published_atstring nullable required
created_atstring required
updated_atstring required
urlstring required

Full URL to the published post

Changes

No recorded changes to this operation across all 1 revision of this API.