GET
/api/public/v1/blog-posts/{postId}

Get a blog post

One post, draft or published, with its full content.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

blog:read

Path Parameters

NameTypeRequiredDescription
postIdstringRequiredPost ID.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/blog-posts/{postId}" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Blog post retrieved successfully!",
  "content": {
    "post": {
      "id": "bpt_7001",
      "locationId": "loc_abc123",
      "title": "Why we changed our opening hours",
      "slug": "why-we-changed-our-opening-hours",
      "excerpt": "Shorter mornings, longer evenings.",
      "content": "From September we open at ten…",
      "coverImagePath": null,
      "author": "Sam Okafor",
      "isPublished": true,
      "publishedAt": "2026-08-20T09:00:00.000Z",
      "createdAt": "2026-08-19T14:00:00.000Z",
      "updatedAt": "2026-08-20T09:00:00.000Z"
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Website → Blog
/website/blog