# Get Workspace Stats

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Get Workspace Stats"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/api/v1/workspaces/{workspace_name}/stats"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Displays the number of files and documents in a workspace, the number of search requests, and the average response time.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"description":"Type the name of the workspace.","in":"path","name":"workspace_name","required":true,"schema":{"description":"Type the name of the workspace.","title":"Workspace Name","type":"string"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"content":{"application/json":{"schema":{"properties":{"average_response_time":{"description":"The average response time of the search requests in the workspace.","title":"Average response time","type":"number"},"document_count":{"description":"Total number of documents in the workspace across all pipelines.","title":"Document count","type":"integer"},"file_count":{"description":"The number of files in the workspace.","title":"File count","type":"integer"},"search_request_count":{"description":"The number of search requests made in the workspace.","title":"Search request count","type":"integer"}},"required":["file_count","document_count","search_request_count","average_response_time"],"title":"WorkspaceStats","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"}}},"description":"Validation Error"}}}
>
  
</StatusCodes>
