articles

Count Post

POST
Get count of articles matching given filter.

Request

This endpoint expects an object.
ancestor
stringOptional
The ancestor directory of the articles.
applies_to_parts
list of stringsOptional
Filters for articles belonging to any of the provided parts.
authored_by
list of stringsOptional
Filters for articles authored by any of the provided users.
created_by
list of stringsOptional
Filters for articles created by any of the provided users.
owned_by
list of stringsOptional
Filters for articles owned by any of the provided users.
shared_with
list of maps from strings to anyOptional
Filter for articles based on intended audience.

Response

This endpoint returns an object
count
integer
The total number of articles matching the filter.
POST
1curl -X POST https://api.devrev.ai/articles.count \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "count": 1
3}