Blog

Write SEO-ready blog posts with AI for your websites, translate them through your translation memory, and review, schedule and publish them from your own system.

The Blog API writes blog posts for your websites and translates them. A post is written from a title, a brief or a suggested topic, in your brand's voice, and comes with its SEO pack: meta title, description, keywords, a summary and FAQs. Translations run through one of your translation memories, so approved wording is reused and new translations are stored back. Around that, Autopilot audits a website and suggests what to write next, the editorial calendar writes posts on a schedule, and webhooks tell your system when a post or a translation is ready.

Add your website

Call Add a website with its websiteUrl. Its defaults apply to everything you start for it: set sourceLanguage (the language posts are written in) and tmId (the translation memory its translations use) now, and a brandKitId for your tone of voice. Keep the id.

Add a website
curl -X POST {{API_BASE_URL}}/v1/galaxy/blog/site \
  -H "x-api-key: $ACCLARO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "websiteUrl": "https://example.com/blog",
    "defaults": { "sourceLanguage": "en-US", "tmId": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f" }
  }'

You can skip this step to write a first post from a title alone. The first website you add then takes in the posts written before it.

Write a post

Call Write a post with the website's siteId and a title, a brief, or a topicId from List topics. Credits are charged at this point. The post comes back straight away with status: "generating".

Write a post
curl -X POST {{API_BASE_URL}}/v1/galaxy/blog/post/generate \
  -H "x-api-key: $ACCLARO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "siteId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
    "title": "How to choose a compact tractor",
    "targetWordCount": 1500
  }'
201 Created (excerpt)
{
  "id": "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d",
  "siteId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
  "title": "How to choose a compact tractor",
  "status": "generating",
  "sourceLanguage": "en-US",
  "contentHtml": null,
  "pending": {
    "draft": true,
    "seoPack": false,
    "followups": false,
    "heroImage": false
  }
}

To know the price first, send the same fields to Price a post and pass its items to Get a quote.

Track it

Poll Get a post every 20 to 30 seconds until status is draft and no flag in pending is true: the draft lands first, then the SEO pack and the follow-up topics it set off. If status is failed, error says why. Or register a webhook for post.generated and skip the polling.

Publish it

Get a post returns the post as contentHtml and as contentMarkdown, with its seo pack and, if you asked for one, heroImage.url. Publish it in your CMS, then record where it went live:

Mark the post published
curl -X PATCH {{API_BASE_URL}}/v1/galaxy/blog/post/posts/5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d \
  -H "x-api-key: $ACCLARO_API_KEY" \
  -H "content-type: application/json" \
  -d '{ "status": "published", "publishedUrl": "https://example.com/blog/how-to-choose-a-compact-tractor" }'

The published URL feeds the post's structured data, its hreflang links and its analytics.

Translate it

Call Translate a post with a languageCode. The website's tmId is used unless you send one. Poll Get a translation until status is done, or wait for the translation.done webhook, then publish its contentHtml and save its URL with Update a translation.

Translate into French
curl -X POST {{API_BASE_URL}}/v1/galaxy/blog/translation/posts/5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d \
  -H "x-api-key: $ACCLARO_API_KEY" \
  -H "content-type: application/json" \
  -d '{ "languageCode": "fr-FR" }'

Writing a post

Write a post needs something to write from:

  • A title alone. The title is kept word for word, and the post is written to it.
  • A brief. What the post must cover: the angle, the audience, the points, a call to action. Without a title, one is written from the brief.
  • A topic. A topicId from Autopilot, a follow-up or one you added brings its title, keyword, outline and suggested length.

An organization that has websites must name one with siteId; one that has none yet may leave it out. targetWordCount sets the length (300 to 8,000 words; by default the topic's suggestion, else 1,500). The SEO pack (autoSeo) and three follow-up topics (autoFollowups, for a post on a website) are written after the draft unless you turn them off. A hero image is made only with generateHeroImage: true. sendForReview: true sends the post for review as soon as the draft, its SEO pack and any hero image are done. The AI model is the one chosen in your organization's provider preferences in the Universe app; the post's model names it.

Post statuses

statusMeaning
generatingThe draft is being written.
draftWritten, and editable.
in_reviewSent for review. It can't be edited until it is approved, sent back or withdrawn.
readyApproved.
publishedYou marked it published with Update a post.
archivedArchived.
failedThe draft could not be written; error says why. Write it again with Write a post: that is a new post, charged again.

Editing

Update a post saves a new title, content (contentHtml), SEO pack or public attribution. Each save that changes them is a new version, and any version can be restored. Send the post's versionCount as expectedVersion: if someone saved in between, you get 409 instead of overwriting their work. Saving an approved post moves it back to draft.

AI actions work on a post in the background and return a run: poll Get a run until status is DONE or FAILED.

Reviews

Send a post for review to a member, or to anyone who may review. A key whose role has the blog.post:review permission can then approve it (ready) or request changes (back to draft, with a note). List the review queue returns the posts waiting.

Translations

A post has one translation per language. Languages are BCP-47 codes such as fr-FR, de-DE or hi-IN: the code of a language in List languages. Every translation goes through a translation memory: tmId on the request, else the website's default.

Translating a language again replaces it

Translate a post into a language the post already has replaces that translation, edits included, and charges again. The API does not ask first, as the Universe app does: call List translations before you translate, and translate a language again only when you mean to.

statusMeaning
queuedAccepted and waiting to start.
translatingIn progress.
doneFinished. Read contentHtml from Get a translation.
failedStopped with an error; error says why. Translate again to retry.

When a post has an SEO pack, each translation also gets a native meta title, description, keywords and slug, written shortly after it is done. Turn this off for a website with localiseSeo: false in its defaults. Corrections a person makes to a translation can be written back to the memory with Sync to the translation memory, and newer wording pulled from it with Sync from the translation memory.

Autopilot, topics and the calendar

Start an Autopilot run on a website to audit its sitemap, group what it could rank for into keyword clusters, and write topic suggestions, each with a keyword, an outline and a length. Poll Get an Autopilot run until its status is succeeded or failed, or wait for autopilot.finished. Then pick from List topics and write each one with Write a post and its topicId.

The editorial calendar writes on a schedule. Set the cadence of a website: how many posts a week, on which days, and its mode. In plan mode the calendar fills up with topics from the backlog for you to write; in auto mode each entry is also written on its day, within a weekly credit budget. Add your own entries with Add a calendar entry, and write one now.

Analytics

Connect Google Analytics 4 and Search Console to a website in the Universe app: the connection needs a Google sign-in in a browser. The data then syncs every day. Get insights returns the top pages and queries and the searches worth a new post, and Get post performance how each published post is trending.

Webhooks

Instead of polling, register a webhook: a public https URL and the events it wants. Without siteId it receives the events of every website; with one, only that website's. The response carries the webhook's secret, shown only this once: keep it to check signatures.

Register a webhook
curl -X POST {{API_BASE_URL}}/v1/galaxy/blog/webhook \
  -H "x-api-key: $ACCLARO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "url": "https://hooks.example.com/vitra",
    "events": ["post.generated", "post.failed", "translation.done", "translation.failed"]
  }'
EventSent whendata
post.generatedA draft has been written. Its SEO pack and follow-ups may still be running.post, model, credits
post.failedA draft could not be written.post, error
post.review_requestedA post was sent for review.post, reviewerMemberId, note
post.approvedA post was approved.post, reviewerMemberId, note
post.publishedA post was marked published.post, publishedUrl, publishedAt
translation.doneA translation finished.translation, postId
translation.failedA translation failed.translation, postId, error
audio.doneA recording of a post finished.audio, postId
autopilot.finishedAn Autopilot run succeeded or failed.run
webhook.testSent by Send a test delivery only.message

Each delivery is a POST with a JSON body. post is a summary of the post without its content, and translation a translation without its contentHtml: read the text with Get a post or Get a translation.

POST to your URL
{
  "id": "0d6f0c2e-6c2a-4c4e-9d2a-3b0f2f0a1e11",
  "event": "post.generated",
  "createdAt": "2026-10-07T09:41:12.318Z",
  "orgId": "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f",
  "siteId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
  "data": {
    "post": {
      "id": "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d",
      "siteId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
      "title": "How to choose a compact tractor",
      "slug": "how-to-choose-a-compact-tractor",
      "status": "draft",
      "sourceLanguage": "en-US",
      "wordCount": 1540,
      "publishedUrl": null,
      "seo": null,
      "updatedAt": "2026-10-07T09:41:12.301Z"
    },
    "model": "gpt-5.6-terra",
    "credits": 770
  }
}

Verifying a delivery

Every delivery carries x-vitra-event, x-vitra-delivery (the payload's id) and x-vitra-signature: t=<unix seconds>,v1=<hex>. v1 is the HMAC-SHA256 of <t>.<raw request body>, keyed with the webhook's secret. Compute it over the raw bytes you received, compare in constant time, and reject a t more than five minutes away from your clock.

verify.ts
import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifyVitraSignature(
  rawBody: string,
  header: string | undefined,
  secret: string,
): boolean {
  if (!header) return false;
  const parts = header.split(',').map((part) => part.trim().split('='));
  const t = Number(parts.find(([key]) => key === 't')?.[1]);
  const signatures = parts
    .filter(([key]) => key === 'v1')
    .map(([, value]) => value);
  if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > 300)
    return false;
  const expected = createHmac('sha256', secret)
    .update(`${t}.${rawBody}`)
    .digest();
  return signatures.some((sig) => {
    const given = Buffer.from(sig ?? '', 'hex');
    return given.length === expected.length && timingSafeEqual(given, expected);
  });
}

Delivery and retries

  • Answer with any 2xx within 10 seconds. Anything else, a redirect or a timeout is a failed attempt. Acknowledge first and do the work afterwards.
  • A failed delivery is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours: six attempts in all. A retry carries the same id and body, so de-duplicate on id. Deliveries can arrive out of order.
  • After 10 failed attempts in a row, the webhook is switched off: enabled becomes false and disabledReason says why. Fix your endpoint, check it with Send a test delivery, then turn the webhook back on with Update a webhook and enabled: true.
  • List deliveries shows every attempt's status, HTTP code and error.

Permissions

Each endpoint page lists the permission it needs. The API key needs them on the role of the person who created it. Blog permissions are named blog.<resource>:<action>, for example blog.post:create.

ResourceCoversActions used
blog.siteWebsites and their defaults.create, read, update, delete
blog.postPosts, AI actions, hero images, versions, SEO, links, checks and recordings. export saves files to your assets; review approves posts or sends them back.create, read, update, delete, export, review
blog.translationTranslations and their translation memory sync.create, read, update, delete
blog.autopilotAutopilot runs and topics.create, read, update
blog.calendarThe cadence and calendar entries. Writing an entry also needs blog.post:create.create, read, update, delete
blog.analyticsInsights and post performance.read
blog.webhookWebhooks and their deliveries.create, read, update, delete

When the key's role has Personal view turned on, it sees only the posts its member wrote, was asked to review or is assigned to; any other post answers 404.

Credits

Every paid start is charged when it starts and settled when it ends:

  • Charged at start. Writing a post charges for the draft and for what it sets off, the SEO pack, the follow-up topics and the hero image you asked for, all at once. A translation is charged on the post's exact source words, with its localized SEO. An Autopilot run is charged once for the whole run. AI actions, link suggestions and brand voice checks are charged one by one, a hero image per image, and a recording per second of speech.
  • Settled when it ends. Text that the AI writes is charged at start on an estimate of its words. When the work finishes, the charge is trued up to the words actually written, never to more than twice the estimate.
  • Refunded on our failure. Work that fails on our side is refunded in full.
  • Kept when you stop it. Deleting a post while its work runs, or cancelling an Autopilot run, keeps the charge.

Without enough credits, a paid start returns 402 and nothing is created. The body says how many credits it needs, how many you have, and what your organization owes:

402 Payment Required
{
  "statusCode": 402,
  "error": "InsufficientCredits",
  "message": "You don't have enough credits to start this. It needs 1125; you have 800.",
  "required": 1125,
  "available": 800,
  "owed": 0
}

Each paid endpoint has a price route that returns what its start will charge, as items for Get a quote: Price a post, Price an AI action, Price a translation, Price an Autopilot run, Price a cadence run and Price a recording. Each endpoint's page shows the current price. See Credits.

After Autopilot imports a website’s sitemap, new drafts automatically include up to three matching internal URLs where descriptive title or URL phrases already exist in their body. Other published Blog posts on the same website are candidates too. There is no extra model call or charge, and links are saved in the first generated version.

For existing posts, Add matching internal links does the same from saved content. Send the displayed versionCount as expectedVersion; stale or locked posts return 409. All added links are saved as one new version, and an approved post returns to draft. Existing internal URLs count toward the three-link cap. The action requires blog.post:update and never changes ledger charges.

Suggest internal links remains the separately priced AI action for semantic suggestions, which you review and apply. It considers descriptive sitemap pages even when their wording differs from the post’s language. Automatic linking is limited to known destinations and existing anchor text; it does not invent URLs or rewrite prose.

On-page SEO score

The post's seoScoreValue and detailed seoScore checks use the same scoring as Get structured data, including the selected translation's own content and metadata. Content and metadata fundamentals contribute 96 of 100 points. Content length contributes 24 points at 800 words or more; deliberately commissioned shorter posts retain their existing minimum of max(250, round(targetWordCount × 0.85)). Links to other pages contribute 2 points, image alt text 1 point and at least three SEO FAQs 1 point. Passing the core checks therefore gives 96 even without those extras. Scores are recomputed on read; this does not change billing or saved content.

Structured data by language

Get structured data returns { jsonLd, html, score, hreflang, warnings }. The html is a safely escaped application/ld+json script. Put it in the page that renders the same saved title and contentHtml. Unsaved editor changes cannot be copied as current markup. Set the actual publishedUrl of each language; draft paths are never guessed from a site or slug.

For another language, pass translationId to the same endpoint. It must be a completed translation of this post in your organization. The headline, body, descriptions, keywords and FAQs are taken only from that translation. Missing translated fields are omitted rather than replaced with English. An unfinished translation returns 409. After any content/SEO edit, TM pull, restoration, retranslation or localized SEO run, fetch the markup again.

  • headline uses the saved article title, not its search metadata title.
  • articleBody is readable saved HTML text, with entities decoded and hidden/script/style text excluded.
  • image includes actual visible body images; merely generating a hero does not place it in the article.
  • wordCount is the linguistic body-word count using Unicode word segmentation in the selected locale. The product’s wordCount and credit quotes remain the separate platform billable-unit meter.
  • An FAQPage includes only complete SEO question/answer pairs still visible together in this language’s saved body. Suggested, removed or edited answers do not qualify until the pack matches again.
  • author and publisher use only this language’s saved publicAttribution. Never infer them from the generation operator or internal website label. Breadcrumbs are omitted because Blog does not store a visible breadcrumb trail.
  • warnings explains publishing prerequisites. A valid graph is not a promise of a search enhancement.

Public authors and publisher

Save publicAttribution through Update a post or Update a translation. The SEO panel exposes the same fields. Use exact public names and profile/website/logo URLs shown on that language’s page:

{
  "publicAttribution": {
    "authors": [
      {
        "type": "Person",
        "name": "Asha Sharma",
        "url": "https://example.com/authors/asha"
      }
    ],
    "publisher": {
      "type": "Organization",
      "name": "Example Editorial",
      "url": "https://example.com/",
      "logoUrl": "https://example.com/logo.png"
    }
  }
}

This is a whole-object replacement. Omit it to preserve existing details, send null to clear. Authors default to [], publisher to null, publisher type to Organization. At most ten authors in byline order; each type is Person or Organization. Publishers can also be Person, without a logo. Names must contain 1–250 characters after trimming; optional URLs must be absolute HTTP(S), at most 2000 characters and without credentials. Unknown fields and unsafe values return 400.

Each translation owns its names and URLs; there is no English fallback. Copy source details is an explicit editor action; review localized identities before saving. Source edits are versioned and invalidate review approval. Translation history also captures attribution, and restores reinstate that version’s details, including null for older versions. Identity-only edits neither change body-word billing nor cancel localized SEO.

Copy, downloads and Save to Assets include the visible saved byline and publisher. Render these same identities on the published CMS page along with the freshly fetched JSON-LD. Saving in Blog does not update an external CMS, crawl those URLs or verify publication. Publisher logos remain separate from article images.

Google retired FAQ rich results in May 2026. FAQPage remains a Schema.org description of real page content; do not expect a Google FAQ rich result. Follow Article guidance and validate the final public CMS page, including any author or breadcrumb data added there.

The returned hreflang set uses Google-compatible two-letter language codes with optional script/alpha-2 region. Catalog languages without a two-letter code are omitted; numeric/reserved regions fall back to language/script and UK is normalized to GB. It includes unique language URLs of completed translations and a source x-default when its URL is set. Install the same reciprocal set on every published language page.

Sync newly added translated text to the memory

Get the sync status returns unpairedSegments: body text that has no saved source counterpart. To include it in Sync to the translation memory, explicitly provide the matching original-language text. Use the translation's saved updatedAt as expectedUpdatedAt, and copy the segment's index and exact text into targetText.

{
  "expectedUpdatedAt": "2026-10-12T10:00:00.000Z",
  "newPairs": [
    {
      "index": 3,
      "sourceText": "A new sentence.",
      "targetText": "एक नया वाक्य।"
    }
  ]
}

Save the translation first. A stale revision returns 409 before writing to the memory; an invalid index, changed target text or empty source returns 400. Supply at most 100 new pairs per request. Omitted new segments stay unpaired, while existing corrected pairs still sync. Only successful writes update the baseline, so failed segments can be retried and later corrections reuse their explicit source. Sync does not charge credits or duplicate proofreading work.

On this page