Docs home

Get Blog Details Admin

Returns everything about one blog post, including its full content, for editing in the admin panel.

GET/admin/blog/{blogId}
Get Blog Details Admin
curl --request GET \
  --url 'https://<your-api-host>/nuSource/api/v1/admin/blog/{blogId}' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>'
{
  "code": 200,
  "message": "Blog details fetched successfully.",
  "blog_details": {
    "blog_id": 12,
    "blog_url_slug": "test-blog",
    "blog_title": "Test Blog",
    "blog_excerpt": "asdasdas",
    "blog_content_file_id": 3789887,
    "is_featured": 0,
    "is_promoted": 0,
    "blog_meta_title": "Test Blog",
    "minutes_read": 1,
    "blog_meta_desc": "asdasdas",
    "blog_status": 2,
    "visibility_option": 0,
    "publish_date": 1758855641,
    "author_user_id": 7098852,
    "blog_content_file_path": "Institution(208)/Blogs/",
    "stream_ids": [
      "684",
      "1251"
    ],
    "subscription_plan_ids": [],
    "tag_ids": [],
    "blog_image_url": null,
    "featured_image_url": null,
    "blog_content": "<p>sadasdas<br>adsdas</p>\n"
  }
}

Access: Institute admins, plus custom roles that can view blogs.

Path parameters
blogIdintegerrequired
Blog ID, from "Get Blogs Listing Admin".
Response200application/json
codeinteger
Example: 200
messagestring
Example: Blog details fetched successfully.
Show child attributesHide child attributes
Example: 12
Example: test-blog
Example: Test Blog
Example: asdasdas
Example: 3789887
Example: 0
Example: Test Blog
Worked out from the content
Example: 1
Example: asdasdas
1 Draft, 2 Published
Example: 2
1 Public, 2 Private, 3 Logged-in learners only
Example: 0
Unix timestamp
Example: 1758855641
Example: 7098852
Internal storage references you can ignore
Example: Institution(208)/Blogs/
Arrays of IDs as strings
Image links, or null
Full HTML
Example: <p>sadasdas<br>adsdas</p>

Notes: The blog must belong to an organization of the institute that owns the website host you call; otherwise "Invalid blog id provided.". Archived posts are returned too. Rate limit: 30 requests per 1 minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI