Skip to main content
GET
/
blogs
List blogs
curl --request GET \
  --url https://store.salesive.com/api/v1/blogs \
  --header 'Authorization: Bearer <token>' \
  --header 'x-shop-id: <api-key>'
{
  "blogs": [
    {
      "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>"
      }
    }
  ],
  "total": 1,
  "page": 2,
  "limit": 2
}

Request

GET /blogs?page=1&limit=10&q={search-term}

Query parameters

ParameterTypeDescription
pageintegerPage number to return (default 1).
limitintegerMaximum number of blog posts per page (default 10).
qstringOptional search string applied to blog titles or excerpts.

200 response

{
  "blogs": [
    {
      "id": "68c4f1cab50803b7b1310c60",
      "title": "Store launch recap",
      "slug": "store-launch-recap",
      "excerpt": "Highlights from your latest launch.",
      "thumbnail": "https://cdn.salesive.com/blogs/store-launch.png",
      "publishedAt": "2024-08-12T09:30:00Z"
    }
  ],
  "total": 24,
  "page": 1,
  "limit": 10
}

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.

Query Parameters

page
integer
default:1

Page number to return (defaults to 1).

Required range: x >= 1
limit
integer
default:10

Maximum number of blog posts per page (defaults to 10).

Required range: x >= 1
q
string

Optional search phrase applied to blog titles or excerpts.

Response

Paginated blogs response.

blogs
object[]
required
total
integer
required
Required range: x >= 0
page
integer
required
Required range: x >= 1
limit
integer
required
Required range: x >= 1