Create Blog Post
Write a website article (a blog post visitors can read). Call this in the same turn they ask you to write, draft, or publish an article. Do not paste the article in chat and ask whether to publish. It is visible unless hiddenFromBrowse is true. Content may be simple HTML or plain paragraphs. Do not send markdown. Do not invent imageID. Returns id and editorPath. App connections need the booking:write or inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/blog-post" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Body
authorNamestringAuthor name shown on the article. Omit to leave it blank.
contentstringArticle body. Simple HTML the editor keeps (p, h2, h3, ul, ol, li, a, strong, em, blockquote) or plain paragraphs separated by a blank line. Do not send markdown. Do not invent an image id inside the HTML.
excerptstringShort summary for cards and search, as plain text. Aim for 140–160 characters when you write one.
hiddenFromBrowsebooleanTrue hides the post from the website. False or omitted keeps it visible.
imageIDstringExisting cover image id. Omit when you do not have one. Do not invent an id.
siteTemplatePageIDstringBlog template page id. Omit to use the company's default blog template.
slugstringPublic URL segment. Omit to generate one from the title.
tagsstring[]Topic tags. On update, this replaces the whole list.
titlestringrequiredPost title
Response
JSON result for this operation.
{}