List law collections

Enumerate every law collection available to /laws/search and /laws/get: one entry per code or register (e.g. cfr, uscode, ca-ccr, ny-consolidated-laws), with its jurisdiction (state, country) and type. Use it to discover filter values — e.g. list the regulation collections of the five states in a survey before searching them.

Responses
  • application/json
  • 401

    Unauthorized

Request Example for get/laws/collections
curl https://app.midpage.ai/api/v1/laws/collections \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "collections": [
    {
      "id": "ca-ccr",
      "name": "California Code of Regulations",
      "type": "statute",
      "state": "California",
      "country": "US",
      "authority_name": "string"
    }
  ]
}