# Count Episodes (v2)

Counts the episodes for a practice group, with the same filters as the list, without loading any of them.

Endpoint: GET /v2/episodes/count
Version: 1.0.0
Security: apiKeyAuth, practiceGroupId

## Security:

  - `apiKeyAuth` (unknown)
    apiKey in header x-api-key

  - `practiceGroupId` (unknown)
    apiKey in header x-practice-group-id

## Query parameters:

  - `assignee_id[]` (array)

  - `assignee_type[]` (array)

  - `status[]` (array)

  - `priority[]` (array)

  - `count_limit` (integer)
    Stop counting past this many episodes. `count` is then at most `count_limit`, and `has_more` is true when more episodes match. Without it, `count` is exact and `has_more` is false. Useful for performance when you only display a badge, e.g. 99+.

## Response 200:

  - `200` (unknown)
    Ok

## Response 200 fields (application/json):

  - `count` (number, required)

  - `has_more` (boolean, required)

## Response 400:

  - `400` (unknown)
    Validation error

## Response 400 fields (application/json):

  - `error` (boolean, required)
    Example: true

  - `statusCode` (number, required)
    Example: 400

  - `message` (array, required)

  - `message.code` (string, required)
    Example: invalid_type

  - `message.expected` (string, required)
    Example: string

  - `message.path` (array, required)
    Example: ["patient_id"]

  - `message.message` (string, required)
    Example: Required

## Response 401:

  - `401` (unknown)
    Unauthorised

## Response 429:

  - `429` (unknown)
    Too Many Requests

## Response 500:

  - `500` (unknown)
    Unknown error

