Skip to main content
GET
/
blogs
/
{id}
Get blog
curl --request GET \
  --url https://store.salesive.com/api/v1/blogs/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-shop-id: <api-key>'
{
  "id": "<string>",
  "title": "<string>",
  "slug": "<string>",
  "excerpt": "<string>",
  "thumbnail": "<string>",
  "publishedAt": "2023-11-07T05:31:56Z",
  "status": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "content": "<string>",
  "author": {
    "name": "<string>",
    "avatar": "<string>"
  }
}

Request

GET /blogs/{id}

Path parameters

ParameterTypeDescription
idstringUnique blog post identifier

Successful response

{
  "id": "68c4f1cab50803b7b1310c60",
  "title": "Store launch recap",
  "slug": "store-launch-recap",
  "content": "<p>Detailed article content…</p>",
  "excerpt": "Highlights from your latest launch.",
  "thumbnail": "https://cdn.salesive.com/blogs/store-launch.png",
  "author": {
    "name": "Jordan Lee",
    "avatar": "https://cdn.salesive.com/authors/jordan-lee.png"
  },
  "publishedAt": "2024-08-12T09:30:00Z",
  "updatedAt": "2024-08-13T11:05:00Z",
  "status": "published"
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Path Parameters

id
string
required

Unique blog post identifier.

Response

Blog detail response.

id
string
required

Unique blog post identifier.

title
string
required

Human-readable title for the blog post.

slug
string
required

URL-friendly slug for the blog post.

excerpt
string
required

Short teaser text shown on listing pages.

thumbnail
string<uri>
required

Featured image URL for the blog post.

publishedAt
string<date-time>
required

Publication timestamp in ISO 8601 format.

status
string
required

Workflow status such as draft, scheduled, or published.

updatedAt
string<date-time>

Timestamp of the most recent update.

content
string

Full HTML content of the blog post.

author
object

Author metadata for the blog post.