Skip to main content
POST
/
articles
/
create
Create article
curl --request POST \
  --url https://api.octaviatech.app/cms/articles/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "mainTitle": {
    "en": "Hello World",
    "es": "Hola Mundo"
  },
  "title2": {
    "en": "Subheadline",
    "es": "Subtítulo"
  },
  "title3": {
    "en": "Additional Section Title",
    "es": "Título de Sección Adicional"
  },
  "slug": "hello-world",
  "summary": {
    "en": "Short summary of the article for readers.",
    "es": "Breve resumen del artículo para los lectores."
  },
  "body": {
    "en": "<p>This is the main HTML body of the article.</p>",
    "es": "<p>Este es el cuerpo principal en HTML del artículo.</p>"
  },
  "thumbnail": "https://cdn.example.com/img.jpg",
  "banner": "https://cdn.example.com/banner.jpg",
  "tags": [
    "news",
    "ai"
  ],
  "category": [
    "64b1f2c9a7d4f1a2b3c4d5e6"
  ],
  "subCategory": [
    "64b1f2c9a7d4f1a2b3c4d5e7"
  ],
  "author": "64b1f2c9a7d4f1a2b3c4d5e8",
  "language": "en",
  "gallery": [
    "https://cdn.example.com/g1.jpg",
    "https://cdn.example.com/g2.jpg"
  ],
  "publishDate": "2025-10-01T12:00:00Z",
  "isPublished": true,
  "isPrivate": false,
  "autoSummarize": false
}'
{
  "success": true,
  "statusCode": 201,
  "message": "Created",
  "data": {
    "id": "{{objectId}}",
    "slug": "hello-world"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
mainTitle
object
required

Main title in multiple languages

body
object
required

Main article content (HTML allowed)

category
string[]
required

Array of category IDs

author
string
required

Author ID

title2
object

Optional secondary title in multiple languages

title3
object

Optional tertiary title in multiple languages

slug
string

URL-friendly unique identifier

summary
object

Short summary in multiple languages

thumbnail
string<uri>

Thumbnail image URL

banner
string<uri>

Banner image URL

tags
string[]

List of tags

subCategory
string[]

Array of sub-category IDs

Optional gallery image URLs

publishDate
string<date-time>

Publish date in ISO 8601

isPublished
boolean

Publish state

isPrivate
boolean

If true, restricts visibility

language
enum<string>

Preferred language for immediate rendering/preview

Available options:
en,
es
autoSummarize
boolean

If true, backend may auto-create a summary

Response

Created

The response is of type any.