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

# Get statement counts by document ID

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Layar API Documentation",
    "version": "4.1.4",
    "contact": {
      "name": "Certara AI Support",
      "email": "AI-Support@Certara.com",
      "url": "https://vyasa.readme.io/"
    }
  },
  "servers": [
    {
      "url": "BASE_PATH"
    }
  ],
  "paths": {
    "/layar/sourceDocument/{id}/statements": {
      "get": {
        "operationId": "getDocumentStatements",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Statement"
                  }
                }
              }
            },
            "headers": {
              "X-Total-Count": {
                "$ref": "#/components/headers/xTotalCount"
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Get statement counts by document ID",
        "tags": [
          "sourceDocument"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Documents",
      "name": "sourceDocument"
    }
  ],
  "components": {
    "headers": {
      "xTotalCount": {
        "schema": {
          "type": "integer"
        },
        "description": "total number of results"
      }
    },
    "schemas": {
      "Statement": {
        "properties": {
          "chemNerMetadata": {
            "type": "object"
          },
          "columnKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "columns": {
            "type": "object"
          },
          "dateIndexed": {
            "type": "string",
            "format": "date-time"
          },
          "detectedTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "nounPhrasesJsonString": {
            "type": "string"
          },
          "posMetadataJsonString": {
            "type": "string"
          },
          "rawText": {
            "type": "string"
          },
          "similarity": {
            "type": "number",
            "format": "double"
          },
          "source": {
            "type": "string"
          },
          "startOffset": {
            "type": "integer",
            "format": "int64"
          },
          "taggedRelationships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggedRelationship"
            }
          },
          "tweet": {
            "type": "object"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "TaggedRelationship": {
        "properties": {
          "answerEndOffset": {
            "format": "int64",
            "type": "integer"
          },
          "answerScore": {
            "format": "double",
            "type": "number"
          },
          "answerStartOffset": {
            "format": "int64",
            "type": "integer"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "evidenceStatementId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "relationship": {
            "type": "string"
          },
          "relationshipId": {
            "type": "string"
          }
        },
        "title": "TaggedRelationship",
        "type": "object"
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "CONNECT_API_URL/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ]
}
```