Skip to main content
POST
/
v1
/
platform
/
blog
/
posts
/
{id}
/
publish
Publish blog post
curl --request POST \
  --url https://api.truthlocks.com/v1/platform/blog/posts/{id}/publish \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "reason": "<string>"
}
'
{
  "id": "<string>",
  "status": "<string>",
  "published_at": "<string>"
}
Publishes a draft blog post, making it live on the public blog at www.truthlocks.com/blog. The published_at timestamp is set automatically. Published posts include Open Graph tags, Twitter Cards, and JSON-LD structured data for search engine visibility.
Requires the content admin or super admin platform role.

Parameters

id
string
required
The blog post ID. Must be a post in draft status.

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

id
string
required

Body

application/json
reason
string

Optional reason or note for this action

Response

Post published

id
string
status
string
published_at
string