Articles

Count Articles (POST)

Get count of articles matching given filter.

POST
/articles.count
AuthorizationBearer <token>

All the DevRev APIs require a token to authenticate the user. Provide Authorization: Bearer <TOKEN> as a header to every API request. How do I find my token?

In: header

ancestor?string

The ancestor directory of the articles.

Formatid
applies_to_parts?array<string>

Filters for articles belonging to any of the provided parts.

article_type?array<article-type>

Filter for the type of articles. If this is not provided, then articles that are not content blocks are returned.

authored_by?array<string>

Filters for articles authored by any of the provided users.

brands?array<string>

Filters for articles belonging to any of the provided brands.

created_by?array<string>

Filters for articles created by any of the provided users.

modified_by?array<string>

Filters for articles modified by any of the provided users.

owned_by?array<string>

Filters for articles owned by any of the provided users.

parent?array<string>

Filters for articles with the provided parent directories.

scope?array<integer>

Filter for the scope of the articles.

shared_with?array<shared-with-membership-filter>

Filter for articles based on intended audience.

tags?array<string>

Filters for article with any of the provided tags.

Response Body

curl -X POST "https://api.devrev.ai/articles.count" \  -H "Content-Type: application/json" \  -d '{}'
{
  "count": 0
}
{
  "detail": "string",
  "message": "string",
  "type": "artifact_already_attached_to_a_parent",
  "existing_parent": "string",
  "is_same": true
}
{
  "detail": "string",
  "message": "string",
  "type": "unauthenticated"
}
{
  "detail": "string",
  "message": "string",
  "type": "forbidden"
}
{
  "detail": "string",
  "message": "string",
  "type": "too_many_requests",
  "retry_after": 0
}
{
  "detail": "string",
  "message": "string",
  "type": "internal_error",
  "reference_id": "string"
}
{
  "detail": "string",
  "message": "string",
  "type": "service_unavailable"
}