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
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/blog-posts" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "page": 3,
    "perPage": 15,
    "orderColumn": "updated_at",
    "orderDirection": "asc",
    "title": "sruemluuypcjavnho"
  }'

{
  "message": "No query results for model [App\\Models\\Shop] 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

The id of an existing record in the images table.

meta_titlestring

Must not be greater than 255 characters.

meta_descriptionstring

Must not be greater than 255 characters.

Path Parameters

shopIdRequiredinteger
curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/blog-posts" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "ussuytvkbhguqyhckmvuhdgm",
    "path": "kiyj",
    "summary": "khb",
    "content": "ocmotfnxti",
    "image_id": null,
    "meta_title": "kawptspf",
    "meta_description": "xcxdbjvz"
  }'

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
blogPostIdRequiredstring
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/blog-posts/accusantium" \
  -H "Authorization: Bearer <token>"

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}

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
blogPostIdRequiredstring
curl -X DELETE "https://api.sellauth.com/v1/shops/{shopId}/blog-posts/accusantium" \
  -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

The id of an existing record in the images table.

meta_titlestring

Must not be greater than 255 characters.

meta_descriptionstring

Must not be greater than 255 characters.

Path Parameters

shopIdRequiredinteger
blogPostIdRequiredstring
curl -X PUT "https://api.sellauth.com/v1/shops/{shopId}/blog-posts/accusantium" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 16,
    "path": "n",
    "title": "ttclezwewtibbjotzlqj",
    "summary": "nippsplcydwb",
    "content": "voirrbqpqfvpbcpubiva",
    "image_id": null,
    "meta_title": "yoeetexakwsxj",
    "meta_description": "rxnglgyjji"
  }'