Articles

Count Articles

Get count of articles matching given filter.

GET
/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

Query Parameters

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.member?string

ID of the group/member with whom the item is shared.

Formatid
shared_with.role?string

Role ID of the group/member with whom the item is shared.

Formatid
tags?array<string>

Filters for article with any of the provided tags.

Response Body

curl -X GET "https://api.devrev.ai/articles.count?ancestor=string&applies_to_parts=PROD-12345&article_type=article&authored_by=DEVU-12345&brands=string&created_by=DEVU-12345&modified_by=DEVU-12345&owned_by=DEVU-12345&parent=string&scope=0&shared_with.member=string&shared_with.role=string&tags=TAG-12345"
{
  "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"
}