Skip to main content
GET
/
blog_posts
/
{prefix_id}
Get blog post
curl --request GET \
  --url https://api.crevio.co/v1/blog_posts/{prefix_id} \
  --header 'Authorization: <api-key>'
{
  "id": 123,
  "title": "<string>",
  "slug": "<string>",
  "content": "<string>",
  "status": "draft",
  "indexable": true,
  "excerpt": "<string>",
  "url": "<string>",
  "publishedAt": "2023-11-07T05:31:56Z",
  "scheduledAt": "2023-11-07T05:31:56Z",
  "prefixId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "category": {
    "id": 123,
    "name": "<string>",
    "slug": "<string>",
    "description": "<string>",
    "blogPostsCount": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "seo": {
    "title": "<string>",
    "description": "<string>",
    "keywords": "<string>"
  },
  "featuredImage": {
    "id": 123,
    "sourceType": "<string>",
    "url": "<string>",
    "provider": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "file": {
      "filename": "<string>",
      "contentType": "<string>",
      "byteSize": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "signedId": "<string>",
      "src": "<string>",
      "srcSet": "<string>"
    },
    "contentType": "<string>",
    "embedHtml": "<string>"
  },
  "socialMediaImage": {
    "id": 123,
    "sourceType": "<string>",
    "url": "<string>",
    "provider": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "file": {
      "filename": "<string>",
      "contentType": "<string>",
      "byteSize": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "signedId": "<string>",
      "src": "<string>",
      "srcSet": "<string>"
    },
    "contentType": "<string>",
    "embedHtml": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Path Parameters

prefix_id
string
required

The resource prefix ID

Response

Blog post details

id
integer
title
string
slug
string
content
string
status
enum<string>
Available options:
draft,
published,
scheduled
indexable
boolean
excerpt
string
url
string<uri>
publishedAt
string<date-time> | null
scheduledAt
string<date-time> | null
prefixId
string
createdAt
string<date-time>
updatedAt
string<date-time>
category
object
seo
object

Featured image for the blog post

socialMediaImage
object

Social media sharing image for the blog post