> ## Documentation Index
> Fetch the complete documentation index at: https://docs.classquill.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Coverage Summary

> Supply headcount for a subject and (optionally) a postcode in one call.

Returns `{ total, in_person, online, covering_area }`: `total` is the org's
subject-matched tutors, `in_person`/`online` split by delivery mode ('both' counts in
both), and `covering_area` is how many of them reach `postcode`. With no postcode,
`covering_area == total` (geography ignored). Same coverage RPC; no geometry recomputed.



## OpenAPI

````yaml /openapi.json get /v1/coverage/summary
openapi: 3.1.0
info:
  title: EquateIt Public API
  description: >-
    REST API for EquateIt tutoring organisations. Pipe your sessions, invoices,
    payments, tutor earnings, students, and more into your own tools. Most
    endpoints are reads; a focused set of writes (each gated by a *:write scope)
    create or update data, including creating student/tutor/parent accounts.


    Authenticate every request with an org API key:

        Authorization: Token token=ei_live_...

    Mint keys in the EquateIt app under Settings → Developers.
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
tags:
  - name: General
  - name: Sessions
  - name: Tutors
  - name: Students & Parents
  - name: Billing
  - name: Curriculum
  - name: Coursework
  - name: Operations
  - name: Pricing
  - name: Bookings
  - name: Blog
  - name: Reports
paths:
  /v1/coverage/summary:
    get:
      tags:
        - General
      summary: Coverage Summary
      description: >-
        Supply headcount for a subject and (optionally) a postcode in one call.


        Returns `{ total, in_person, online, covering_area }`: `total` is the
        org's

        subject-matched tutors, `in_person`/`online` split by delivery mode
        ('both' counts in

        both), and `covering_area` is how many of them reach `postcode`. With no
        postcode,

        `covering_area == total` (geography ignored). Same coverage RPC; no
        geometry recomputed.
      operationId: coverage_summary_v1_coverage_summary_get
      parameters:
        - name: subject
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Restrict the counts to this subject id
            title: Subject
          description: Restrict the counts to this subject id
        - name: postcode
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Meeting-point postcode; covering_area counts tutors within reach
            title: Postcode
          description: Meeting-point postcode; covering_area counts tutors within reach
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoverageSummaryResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CoverageSummaryResult:
      properties:
        subject_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject Id
        postcode:
          anyOf:
            - type: string
            - type: 'null'
          title: Postcode
        total:
          type: integer
          title: Total
          default: 0
        in_person:
          type: integer
          title: In Person
          default: 0
        online:
          type: integer
          title: Online
          default: 0
        covering_area:
          type: integer
          title: Covering Area
          default: 0
      type: object
      title: CoverageSummaryResult
      description: >-
        Counts for /v1/coverage/summary. `covering_area` is the subset of
        `total`

        within reach of `postcode` (equals `total` when no postcode is supplied
        —

        geography is then ignored). A tutor offering 'both' modes counts toward
        both

        `in_person` and `online`.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Org API key as `Token token=ei_live_...`

````