Blog Posts

Get a blog post

Changed on
get/posts/{id}

Request

  • Base URL
    https://open.shopline.io/v1
  • URL
    https://open.shopline.io/v1/posts/{id}
  • Auth
    HTTP bearer

Path parameters

idstring required

Blog post UUID/hex ID or legacy WordPress numeric ID

Response

The requested blog post.

idstring

Blog post UUID/hex ID or legacy WordPress numeric ID, usable as input to the other blog post endpoints.

status'draft' | 'publish'

Publication state. draft is hidden from the storefront; publish is publicly visible.

created_atstring date-time

ISO-8601 timestamp of when the post was created, in UTC.

updated_atstring date-time

ISO-8601 timestamp of the last update to the post, in UTC.

thumbnail_infoobject nullable

Thumbnail media of the post as stored by the media service; null when the post has no thumbnail.

linkobject nullable

SEO url settings of the post, including its url_link slug; null when none is set.

related_product_idsstring[]

IDs of products displayed as related on the post page.

title_translationsobject

Post title per locale, keyed by locale code.

content_translationsobject

Post body per locale as HTML, keyed by locale code. Can be very large.

Changes