Skip to main content
POST
Hansard index

Request contract

  • Method and path: POST /apis/v1/assembly-ab-ca/legislative-records/hansard-index
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/hansard-index
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
docid
number
required

Index document id from list_sitting_documents.indexes or list_committee_transcripts.indexes.

Provider reference: minimum 1.

index_type
string
required

index_type

Provider reference: allowed values ["speaker", "subject"].

committee
string
default:""

Committee code for a committee index (as the site's comm= parameter); empty for the House Hansard index. Pattern: ^[A-Za-z]{0,5}$.

Provider reference: default "".

heading_contains
string

Keep only headings containing this text (case-insensitive).

letter
string
default:A

Initial letter of the headings; "0" is the site's 0-9 group. Pattern: ^[A-Za-z0]$.

Provider reference: default "A".

mode
string
default:detailed

detailed lists every entry with page references; summary lists the headings and sub-headings only.

Provider reference: allowed values ["summary", "detailed"]; default "detailed".

Response

One letter of a session's Hansard speaker or subject index: heading (speaker with constituency and caucus, or subject), sub-headings, and each entry's topic, printed Hansard page and the Hansard PDF link with page index. The docid comes from list_sitting_documents (House Hansard) or list_committee_transcripts (committee Hansard).

The response contains the tool result directly.

The provider identifies headings as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.