Skip to main content
POST
/
v1
/
platform
/
blog
/
posts
/
{id}
/
publish
curl -X POST https://api.truthlocks.com/v1/platform/blog/posts/bp_660e8400-e29b-41d4-a716-446655440000/publish \
  -H "X-API-Key: tl_live_your_api_key"
{
  "id": "bp_660e8400-e29b-41d4-a716-446655440000",
  "title": "Introducing attestation batching",
  "slug": "introducing-attestation-batching",
  "category": "product",
  "status": "published",
  "tags": ["attestations", "batch"],
  "excerpt": "Mint up to 100 attestations in a single API call.",
  "published_at": "2027-01-20T12:00:00Z",
  "created_at": "2027-01-19T10:00:00Z",
  "updated_at": "2027-01-20T12:00:00Z"
}
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

{
  "id": "bp_660e8400-e29b-41d4-a716-446655440000",
  "title": "Introducing attestation batching",
  "slug": "introducing-attestation-batching",
  "category": "product",
  "status": "published",
  "tags": ["attestations", "batch"],
  "excerpt": "Mint up to 100 attestations in a single API call.",
  "published_at": "2027-01-20T12:00:00Z",
  "created_at": "2027-01-19T10:00:00Z",
  "updated_at": "2027-01-20T12:00:00Z"
}
curl -X POST https://api.truthlocks.com/v1/platform/blog/posts/bp_660e8400-e29b-41d4-a716-446655440000/publish \
  -H "X-API-Key: tl_live_your_api_key"