references
The publisher’s page and machine-readable call in each language, dated versions, the ids it goes by, its bill, notices and orders.
Where to read itDeterministicREST: GET /api/v1/references
Example
Call
{
"tool": "references",
"citation": "Criminal Code, s. 253"
}Response
{
"match": "exact",
"instrument": {
"id": "98df1934-d85f-45af-b059-d0f6dc1a5d9c",
"official_id": "C-46",
"kind": "act",
"jurisdiction": "federal",
"citation": "R.S.C., 1985, c. C-46",
"title_en": "Criminal Code",
"title_fr": "Code criminel",
"publisher_url": "https://laws-lois.justice.gc.ca/eng/acts/C-46/index.html"
},
"instrument_status": "in_force",
"provision": {
"id": "48ec3b9c-bdaf-49dd-9e70-8eac36e0d24a",
"path": "253",
"label": "s. 253"
},
"wording": [
{
"lang": "en",
"kind": "publisher_page",
"url": "https://laws-lois.justice.gc.ca/eng/acts/C-46/index.html"
},
{
"lang": "fr",
"kind": "publisher_page",
"url": "https://laws-lois.justice.gc.ca/fra/lois/C-46/index.html"
}
],
"provision_url": "https://laws-lois.justice.gc.ca/eng/acts/C-46/section-253.html",
"point_in_time": {
"index": [
{
"lang": "en",
"url": "https://laws-lois.justice.gc.ca/eng/acts/C-46/PITIndex.html"
},
{
"lang": "fr",
"url": "https://laws-lois.justice.gc.ca/fra/lois/C-46/PITIndex.html"
}
],
"versions": [],
"archive": []
},
"identifiers": [
{
"scheme": "legisail",
"value": "98df1934-d85f-45af-b059-d0f6dc1a5d9c"
},
{
"scheme": "justice",
"value": "C-46"
}
],
"bill": null,
"gazette": [],
"orders": [],
"candidates": []
}Asked on 30 November 2026. Lists are cut to their first two entries, and meta, which every answer carries, is left out here: see the dates policy.
Parameters
| Name | Type | Description |
|---|---|---|
| citation | string, optional | As /resolve. Pass this or id, not both. |
| id | uuid, optional | An instrument's id (any kind, bills included), or a provision's. |
| jurisdiction | string, optional | As /resolve. |
How a citation is matched
The same citation always gets the same answer, however it is written.
- Write it the way the jurisdiction does. Any form on the citation forms page works, in English or French, with or without full stops and spaces:
s. 2 (1) (a),art. 2,2-36.1,65D(1). - Say which jurisdiction when the title is shared. Several provinces have an Employment Standards Act. Pass
jurisdiction, name the province in the citation, or cite a provision only one of them has. - Close matches come back as choices. A misspelt or shortened title returns the likely Acts with what tells them apart: jurisdiction, year, chapter. Your assistant picks the right one.
- No match means no match. You get
not_foundwith up to five nearest titles, never a guess, and the call does not count against your quota.
Statuses and reasons
The answer's own values, so a client can branch on them:
matchexact · instrument_only · ambiguous · not_found| HTTP status | When |
|---|---|
| 200 | Where to read it, or the choices when the reference named several instruments or none. |
| 400 | A parameter is missing or not valid; field names it. |
| 401 | No key, or a key that is not valid or has been revoked. |
| 403 | A jurisdiction outside the key's scope, or an evaluation key after its last day. |
| 404 | No such route. |
| 429 | Over the key's limit for the minute, or for the day where the key has one; a day ends at midnight Pacific time. Retry-After gives the seconds to wait. |
| 500 | Legisail's fault, recorded; or a response withheld because it would have carried wording. |
Same answer over REST
curl "https://legisail.com/api/v1/references?citation=Criminal+Code,+s.+253" \ -H "Authorization: Bearer $LEGISAIL_KEY"
Responses carry X-Legisail-Version, the API version, and X-Legisail-Data-Revision, the position of the record they were read from. Breaking changes get thirty days' notice in the changelog; old ids resolve forever.