Skip to navigation

Generate Post Title (AI)

Generate a short, engaging title for a draft post using the app’s AI assistant.

Authentication: Required — Bearer token (no visitor fallback).

Feature gate: Requires posts feature enabled.

Request body:

  • content (required) — The post body; HTML tags are stripped and the text is truncated to 500 characters before being sent to the AI.

Response:

  • data.title — The generated title (empty string when content is blank).

Errors:

  • 403 — ai_sdk_unavailable when no LoyalStream/AI connector is configured for the app.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
contentstringOptional

Response

OK