Skip to main content
GET
/
v1
/
platform
/
blog
/
posts
curl "https://api.truthlocks.com/v1/platform/blog/posts?status=published&category=engineering&limit=10" \
  -H "X-API-Key: tl_live_your_api_key"
{
  "items": [
    {
      "id": "bp_550e8400-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.",
      "cover_image_url": "https://api.truthlocks.com/v1/assets/ast_cover123",
      "published_at": "2027-01-20T12:00:00Z",
      "created_at": "2027-01-19T10:00:00Z",
      "updated_at": "2027-01-20T12:00:00Z"
    }
  ],
  "total": 1,
  "limit": 50,
  "offset": 0
}
Returns blog posts managed through the blog CMS. Filter by publication status or category, and paginate through results with limit and offset.
Requires the content admin or super admin platform role.

Parameters

status
string
Filter by post status: draft, published, or archived.
category
string
Filter by category: engineering, product, security, company, or industry.
limit
integer
Maximum number of posts to return. Default: 50.
offset
integer
Number of posts to skip for pagination. Default: 0.

Responses

{
  "items": [
    {
      "id": "bp_550e8400-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.",
      "cover_image_url": "https://api.truthlocks.com/v1/assets/ast_cover123",
      "published_at": "2027-01-20T12:00:00Z",
      "created_at": "2027-01-19T10:00:00Z",
      "updated_at": "2027-01-20T12:00:00Z"
    }
  ],
  "total": 1,
  "limit": 50,
  "offset": 0
}
curl "https://api.truthlocks.com/v1/platform/blog/posts?status=published&category=engineering&limit=10" \
  -H "X-API-Key: tl_live_your_api_key"