Keystone Developers
Open Keystone
API reference

Console API

Blog posts

2 endpoints.

GET/api/v1/admin/businesses/{business_id}/blog_posts

List blog posts for a business

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)
statusquery"all" | enum

Only posts with this status; all of them when all

default "all"
searchquerystring | null

Search title and excerpt

cursorquerystring | null

Pagination cursor

limitqueryinteger

Page size

default 8

Responses

200Successful Response
application/jsonSuccessResponse_list_BlogPostListItemData__
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredBlogPostListItemData[]
BlogPostListItemData[] fields
FieldTypeDescription
idrequiredstring
business_idrequiredstring
titlerequiredstring
slugrequiredstring
statusrequiredenumone of "draft", "queued", "publishing", "published", "failed", "archived"
publish_datestring | null
scheduled_atinteger | null
timezonestring | null
thumbnail_photo_idstring | null
author_previewBlogPostAuthorPreviewData[]
BlogPostAuthorPreviewData[] fields

Nested object (not expanded)

excerptstring | null
is_featuredbooleandefault false
updated_atrequiredinteger
metadataResponseMetadata | null
ResponseMetadata fields
FieldTypeDescription
paginationPaginationMetadata | null
PaginationMetadata fields
FieldTypeDescription
limitrequiredinteger
next_cursorstring | null
prev_cursorstring | null
has_morerequiredboolean
has_prevbooleandefault false
total_countinteger | null
status_countsobject | null
object | null fields

Map of string to integer

lifecycle_countsLifecycleCounts | null
LifecycleCounts fields
FieldTypeDescription
allintegerdefault 0
leadintegerdefault 0
prospectintegerdefault 0
customerintegerdefault 0
former_customerintegerdefault 0
classification_countsClassificationCounts | null
ClassificationCounts fields
FieldTypeDescription
signalobject
object fields

Nested object (not expanded)

touchobject
object fields

Nested object (not expanded)

stageobject
object fields

Nested object (not expanded)

metaResponseMeta | null
ResponseMeta fields
FieldTypeDescription
totalinteger | null
total_countinteger | null
pageinteger | null
per_pageinteger | null
  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

GET/api/v1/admin/businesses/{business_id}/blog_posts/{blog_post_id}

Get a single blog post

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
business_idrequiredpathstring (uuid)
blog_post_idrequiredpathstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_BlogPostData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredBlogPostData
BlogPostData fields
FieldTypeDescription
idrequiredstring
business_idrequiredstring
titlerequiredstring
slugrequiredstring
statusrequiredenumone of "draft", "queued", "publishing", "published", "failed", "archived"
publish_datestring | null
scheduled_atinteger | null
timezonestring | null
excerptstring | null
content_markdownstring | null
content_htmlstring | null
tagsstring[] | null
string[] | null fields
photo_idsstring[] | null
string[] | null fields
is_featuredbooleandefault false
seo_titlestring | null
seo_descriptionstring | null
seo_keywordsstring[] | null
string[] | null fields
author_previewBlogPostAuthorPreviewData[]
BlogPostAuthorPreviewData[] fields

BlogPostAuthorPreviewData (not expanded)

authorsBlogPostAuthorData[]
BlogPostAuthorData[] fields

BlogPostAuthorData (not expanded)

created_atrequiredinteger
updated_atrequiredinteger
metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.