> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get blog by ID or slug

> Retrieve the full content of a specific blog post by its ID or slug.

## Request

```http theme={null}
GET /blogs/the-art-of-acquisition
x-shop-id: {{shopId}}
```

## Headers

| Header      | Type   | Description                |
| ----------- | ------ | -------------------------- |
| `x-shop-id` | string | Identify the shop context. |

## Path parameters

| Parameter | Type   | Description           |
| --------- | ------ | --------------------- |
| `id`      | string | Blog post ID or slug. |

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Blog found",
    "data": {
        "_id": "6a17abd9c12ba5b55a03afa8",
        "title": "The Art of Acquisition",
        "image": "https://cdn.dribbble.com/userupload/43590559/file/original.png",
        "description": "",
        "content": "<p>Full blog post content here...</p>",
        "tags": ["art", "new"],
        "shop": "68b8f52575da81b332af29f1",
        "author": {
            "_id": "68b8f4aecafb9a1167c25b8e",
            "name": "Jane Smith",
            "avatar": "https://cdn.salesive.com/avatars/jane.jpg"
        },
        "published": true,
        "publishedAt": "2026-05-28T02:43:37.081Z",
        "views": 3,
        "createdAt": "2026-05-28T02:43:37.083Z",
        "updatedAt": "2026-06-09T08:49:17.600Z",
        "slug": "the-art-of-acquisition",
        "__v": 0,
        "id": "6a17abd9c12ba5b55a03afa8"
    }
}
```

## Error response

```json theme={null}
{
    "status": 404,
    "success": false,
    "message": "Blog not found",
    "data": {}
}
```


## OpenAPI

````yaml GET /blogs/{id}
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /blogs/{id}:
    get:
      summary: Get blog
      description: Retrieve the full content for a specific blog post by identifier.
      parameters:
        - $ref: '#/components/parameters/XShopIdHeader'
        - name: id
          in: path
          required: true
          description: Unique blog post identifier.
          schema:
            type: string
      responses:
        '200':
          description: Blog detail response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Blog'
        '404':
          description: Blog not found.
components:
  parameters:
    XShopIdHeader:
      name: x-shop-id
      in: header
      description: >-
        Optional identifier that scopes responses to a specific storefront when
        the referer cannot be inferred.
      required: false
      schema:
        type: string
  schemas:
    Blog:
      type: object
      required:
        - id
        - title
        - slug
        - excerpt
        - thumbnail
        - publishedAt
        - status
      properties:
        id:
          type: string
          description: Unique blog post identifier.
        title:
          type: string
          description: Human-readable title for the blog post.
        slug:
          type: string
          description: URL-friendly slug for the blog post.
        excerpt:
          type: string
          description: Short teaser text shown on listing pages.
        thumbnail:
          type: string
          format: uri
          description: Featured image URL for the blog post.
        publishedAt:
          type: string
          format: date-time
          description: Publication timestamp in ISO 8601 format.
        updatedAt:
          type: string
          format: date-time
          description: Timestamp of the most recent update.
        status:
          type: string
          description: Workflow status such as draft, scheduled, or published.
        content:
          type: string
          description: Full HTML content of the blog post.
        author:
          type: object
          description: Author metadata for the blog post.
          properties:
            name:
              type: string
              description: Display name of the author.
            avatar:
              type: string
              format: uri
              description: URL of the author's avatar image.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````