Blog API Documentation
As the name suggests, blogs are a core part of Pazh — the very reason Pazh exists is so you can have secure conversations with your blog. On this page, we'll dive into the different contact endpoints you can use to manage blog programmatically. We'll look at how to query, create, update, and delete blog.
Properties
This endpoint allows you to retrieve a paginated list of all your blogs. By default, a maximum of ten blogs are shown per page.
- Name
id
- Type
- string
- Description
identifier for the blog.
- Name
public_id
- Type
- string
- Description
identifier for the blog.
- Name
slug
- Type
- string
- Description
identifier for the blog.
- Name
title
- Type
- string
- Description
The title for the blog.
- Name
description
- Type
- string
- Description
The description of the blog.
- Name
tag
- Type
- string
- Description
tag of the blog.
- Name
content
- Type
- string
- Description
content of the blog.
- Name
contentId
- Type
- string
- Description
identifier for the content.
- Name
comment
- Type
- string
- Description
comment of the blog.
- Name
commentId
- Type
- string
- Description
identifier for the blog.
- Name
parentId
- Type
- string
- Description
identifier.
- Name
claimed
- Type
- boolean
- Description
Show if its verified by its owner.
- Name
status
- Type
- string
- Description
Situation of the blog.
- Name
date
- Type
- string
- Description
Time updated.
- Name
version
- Type
- string
- Description
Version.
- Name
author-id
- Type
- string
- Description
Identifier for the author.
Response
{
"id": "XXXXXXXXXXXXXXXXXXXXXXX",
"publicId": "XXXXXXXXXXXXXXXXXXX",
"slug":"",
"title":"",
"subtitle":"",
"description":"",
"tag":"",
"content":"",
"contentId":"",
"comment":"",
"commentId":"",
"parentId":"",
"claimed": true,
"status": "deleted",
"date": "2023-02-15T12:50:30",
"version": "1",
"authorId": ""
}
List all blogs
This endpoint allows you to retrieve a paginated list of all your blogs. By default, a maximum of ten blogs are shown per page.
Optional attributes
- Name
limit
- Type
- integer
- Description
Limit the number of blog returned.
Request
curl -G https://api.contentapi.io/v1/blog \
-H "Authorization: Bearer {token}" \
-d active=true \
-d limit=10