---
updatedAt: 2026-04-22T17:08:46.000Z
agentTools:
  projectIndex: https://developer.vyasa.com/llms.txt
---

# Get document counts for suggested category by computation id

Return a total number of documents where a specific category has been suggested.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Layar API Documentation",
    "version": "4.1.2",
    "contact": {
      "name": "Certara AI Support",
      "email": "AI-Support@Certara.com",
      "url": "https://vyasa.readme.io/"
    }
  },
  "servers": [
    {
      "url": "BASE_PATH"
    }
  ],
  "paths": {
    "/layar/sourceDocument/{projectComputationId}/countBySuggestedCategory": {
      "get": {
        "operationId": "getCountsBySuggestedCategory",
        "parameters": [
          {
            "in": "path",
            "name": "projectComputationId",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CountCommand"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get document counts for suggested category by computation id",
        "description": "Return a total number of documents where a specific category has been suggested.",
        "tags": [
          "sourceDocument"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Documents",
      "name": "sourceDocument"
    }
  ],
  "components": {
    "schemas": {
      "CountCommand": {
        "properties": {
          "count": {
            "format": "int64",
            "type": "integer"
          },
          "key": {
            "type": "string"
          }
        },
        "title": "CountCommand",
        "type": "object"
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "CONNECT_API_URL/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ]
}
```