BlogPosts

Returns a specific blog post. A website's own key gets a 404 for a post that is not published.

get/blog_posts/{id_or_slug}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id_or_slug, string required

The resource ID (e.g., "prod_3f9a1c0b7d2e4a6f8b1c3d5e") or slug (e.g., "my-product")

Response

Blog post details

BlogPost required
id, string required
object, string required
title, string required
slug, string required
content, string required
status, 'draft' | 'published' | 'scheduled' | 'archived' required
excerpt, string required
published_at, string date-time nullable required
scheduled_at, string date-time nullable required
created_at, string date-time required
updated_at, string date-time required
url, string required
category, string nullable required
seo, union

ID by default, full object when expanded

Changes

    • info

      added the optional property seo to the response with the status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision