Get a blog post
curl --request GET \
--url https://api.salesive.com/api/v1/blogs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/blogs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/blogs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/blogs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/blogs/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/blogs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/blogs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Blog retrieved",
"data": {
"_id": "66c2a1b2c3d4e5f6a7b8c9d0",
"title": "Summer Sale Tips",
"slug": "summer-sale-tips",
"image": "https://cdn.salesive.com/blog/summer.jpg",
"description": "How to make the most of our summer promotions.",
"content": "<p>Full HTML content...</p>",
"tags": [
"sales",
"summer"
],
"shop": "66a0d1c2b3a4958677564738",
"author": {
"_id": "66a0e1b2c3d4e5f6a7b8c9d0",
"name": "Jane Merchant",
"email": "jane@example.com",
"avatar": "https://cdn.salesive.com/avatars/jane.png"
},
"published": true,
"publishedAt": "2026-06-15T08:00:00.000Z",
"views": 342,
"createdAt": "2026-06-14T19:00:00.000Z",
"updatedAt": "2026-06-20T11:00:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Blog not found",
"data": null
}Blogs
Get a blog post
Retrieve a single blog post by id with the author populated. Requires the READ_BLOGS scope.
GET
/
blogs
/
{id}
Get a blog post
curl --request GET \
--url https://api.salesive.com/api/v1/blogs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/blogs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/blogs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/blogs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/blogs/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/blogs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/blogs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Blog retrieved",
"data": {
"_id": "66c2a1b2c3d4e5f6a7b8c9d0",
"title": "Summer Sale Tips",
"slug": "summer-sale-tips",
"image": "https://cdn.salesive.com/blog/summer.jpg",
"description": "How to make the most of our summer promotions.",
"content": "<p>Full HTML content...</p>",
"tags": [
"sales",
"summer"
],
"shop": "66a0d1c2b3a4958677564738",
"author": {
"_id": "66a0e1b2c3d4e5f6a7b8c9d0",
"name": "Jane Merchant",
"email": "jane@example.com",
"avatar": "https://cdn.salesive.com/avatars/jane.png"
},
"published": true,
"publishedAt": "2026-06-15T08:00:00.000Z",
"views": 342,
"createdAt": "2026-06-14T19:00:00.000Z",
"updatedAt": "2026-06-20T11:00:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Blog not found",
"data": null
}Returns one blog post by id with the author populated, scoped to the store bound to your app token; soft-deleted posts are excluded and return 404. The store is bound to your app token server-side — never send a shop id.
Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Path Parameters
The blog post's unique id.
Response
The requested blog post.
Standard Salesive response envelope. The operation-specific payload is carried in data.
Was this page helpful?
⌘I

