Fetch a single post by id.
Fetch a single post by id.
GET
https://app.softsolz.uk/api/v1/services/blogs/posts/{id}Recent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Response
Response Body
idstringPost id (numeric string).tenant_idstringOwning tenant id.slugstringURL-safe post slug.titlestringPost title.subtitlestring | nullOptional subtitle.excerptstring | nullShort excerpt.body_htmlstringPost body as sanitized HTML.body_formatstringBody format.cover_image_urlstring | nullCover image URL.cover_image_altstring | nullCover image alt text.og_image_urlstring | nullOpen Graph image URL.seo_titlestring | nullSEO title override.seo_descriptionstring | nullSEO description override.categorystring | nullCategory label.tagsarray of stringsTags.authorstring | nullDisplay author/byline name.author_image_urlstring | nullByline avatar image URL.reading_time_minutesintegerEstimated reading time.statusstringPost status.featuredbooleanWhether the post is featured.no_indexbooleanExcluded from search engines.comments_enabledbooleanWhether comments are open on this post.show_tocbooleanWhether a table of contents is shown on this post.show_sharebooleanWhether reader share buttons are shown.show_datebooleanWhether the publish date is shown.show_reading_timebooleanWhether the reading time is shown.cta_labelstring | nullOptional call-to-action label.cta_urlstring | nullOptional call-to-action URL.view_countstringTotal view count (numeric string).published_atstring | nullWhen the post was published; null until then.scheduled_forstring | nullWhen the post is scheduled to publish; null unless scheduled.created_byinteger | nullUser id that created the post.created_atstringCreation timestamp.updated_atstringLast update timestamp.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.blogs.getPost('<id>');console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": { "id": "string", "tenant_id": "string", "slug": "string", "title": "string", "subtitle": "string", "excerpt": "string", "body_html": "string", "body_format": "string", "cover_image_url": "string", "cover_image_alt": "string", "og_image_url": "string", "seo_title": "string", "seo_description": "string", "category": "string", "tags": [], "author": "string", "author_image_url": "string", "reading_time_minutes": 0, "status": "string", "featured": true, "no_index": true, "comments_enabled": true, "show_toc": true, "show_share": true, "show_date": true, "show_reading_time": true, "cta_label": "string", "cta_url": "string", "view_count": "string", "published_at": "string", "scheduled_for": "string", "created_by": 0, "created_at": "string", "updated_at": "string" }}