SellAuth

Blog Posts

Get Blog Posts

Retrieves the blog posts.

GET
/v1/shops/{shopId}/blog-posts

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonOptional
pageinteger
perPageinteger

Must be at least 1. Must not be greater than 100.

orderColumnstring
Value in: "id" | "title" | "created_at" | "updated_at"
orderDirectionstring
Value in: "asc" | "desc"
titlestring

Must not be greater than 255 characters.

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/blog-posts" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "page": 12,
    "perPage": 1,
    "orderColumn": "id",
    "orderDirection": "asc",
    "title": "zwszwtxpeqqikym"
  }'

{
  "current_page": 1,
  "data": [
    {
      "id": 3,
      "shop_id": 38,
      "path": "how-to-get-the-most-of-your-web-store",
      "title": "How to get the most of your web store",
      "summary": "This article uncovers hidden secrets to get more sales",
      "image_id": 450,
      "meta_title": null,
      "meta_description": null,
      "created_at": "2026-01-25T17:04:24.000000Z",
      "updated_at": "2026-01-25T17:04:24.000000Z"
    }
  ],
  "first_page_url": "https://api.sellauth.com/v1/shops/38/blog-posts?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "https://api.sellauth.com/v1/shops/38/blog-posts?page=1",
  "links": [
    {
      "url": null,
      "label": "&laquo; Previous",
      "active": false
    },
    {
      "url": "https://api.sellauth.com/v1/shops/38/blog-posts?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next &raquo;",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "https://api.sellauth.com/v1/shops/38/blog-posts",
  "per_page": 20,
  "prev_page_url": null,
  "to": 1,
  "total": 1
}

Create Blog Post

Creates a new blog post.

POST
/v1/shops/{shopId}/blog-posts

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonRequired
titleRequiredstring

Must not be greater than 255 characters.

pathstring

Must match the regex /^[a-z0-9-]+$/.

summarystring

Must not be greater than 2000 characters.

contentRequiredstring

Must not be greater than 100000 characters.

image_idstring
meta_titlestring

Must not be greater than 255 characters.

meta_descriptionstring

Must not be greater than 255 characters.

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/blog-posts" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "pasyzwszwtxpeqq",
    "path": "8",
    "summary": "zwszwtxpeqqikym",
    "content": "wkiinfowtzmixko",
    "image_id": null,
    "meta_title": "lowyuffszfrcsnw",
    "meta_description": "wxvxezhebdrxkpi"
  }'

Get Blog Post

Retrieves a specific blog post.

GET
/v1/shops/{shopId}/blog-posts/{blogPostId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

blogPostIdRequiredinteger

The blog post ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/blog-posts/{blogPostId}" \
  -H "Authorization: Bearer <token>"

{
  "id": 3,
  "shop_id": 38,
  "path": "how-to-get-the-most-of-your-web-store",
  "title": "How to get the most of your web store",
  "summary": "This article uncovers hidden secrets to get more sales",
  "image_id": 450,
  "meta_title": null,
  "meta_description": null,
  "created_at": "2026-01-25T17:04:24.000000Z",
  "updated_at": "2026-01-25T17:04:24.000000Z",
  "content": "<p class=\"e-paragraph\" dir=\"ltr\"><span style=\"white-space: pre-wrap;\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span></p>"
}

Delete Blog Post

Deletes a specific blog post.

DELETE
/v1/shops/{shopId}/blog-posts/{blogPostId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

blogPostIdRequiredinteger

The blog post ID.

curl -X DELETE "https://api.sellauth.com/v1/shops/{shopId}/blog-posts/{blogPostId}" \
  -H "Authorization: Bearer <token>"

Update Blog Post

Updates a specific blog post.

PUT
/v1/shops/{shopId}/blog-posts/{blogPostId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonRequired
idRequiredinteger
pathstring

Must match the regex /^[a-z0-9-]+$/.

titleRequiredstring

Must not be greater than 255 characters.

summarystring

Must not be greater than 2000 characters.

contentRequiredstring

Must not be greater than 100000 characters.

image_idstring
meta_titlestring

Must not be greater than 255 characters.

meta_descriptionstring

Must not be greater than 255 characters.

Path Parameters

shopIdRequiredinteger

The shop ID.

blogPostIdRequiredinteger

The blog post ID.

curl -X PUT "https://api.sellauth.com/v1/shops/{shopId}/blog-posts/{blogPostId}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 12,
    "path": "8",
    "title": "zwszwtxpeqqikym",
    "summary": "wkiinfowtzmixko",
    "content": "lowyuffszfrcsnw",
    "image_id": null,
    "meta_title": "wxvxezhebdrxkpi",
    "meta_description": "ypmuihrdifekzag"
  }'