Skip to main content
Saturday, October 10, 2026Minnesota Edition
Developer & integration docs

Programmatic entitlement intelligence

Embed a five-band entitlement read, timeline forecasts, and public-record precedents directly into your acquisition CRM or underwriting pipeline. A band is returned only after the parcel is confirmed.

Start here

Partner calls go to https://api.bouleintel.com. People sign in at https://auth.bouleintel.com and use the product on https://bouleintel.com. Read authentication, then errors. Webhooks names the events we emit today. Browse the contract in OpenAPI. Forecast ledger lists which seal fields exist. Sandbox keys is how a bik_test_ key is issued. Keys, secrets, and parcel figures on this page are samples.

Partner routes are under /v1. Customer and dashboard routes are under /api/v1. Both are served over HTTPS on api.bouleintel.com.

Authentication

Two customer credentials. Integrations send an API key. Dashboard customers sign in with Cognito, then call the API with the Boule session.

API keys

Send the key on every partner request in X-Customer-Api-Key. A production key starts with bik_live_. A test key starts with bik_test_. Both are sent to https://api.bouleintel.com. The prefix is chosen when the key is issued. The raw key is shown once, at issuance or rotation. Store it as a secret. Issuance is described under Sandbox keys.

Sample request

GET /v1/parcels/00-000-00-00-0000/assessment HTTP/1.1
Host: api.bouleintel.com
X-Customer-Api-Key: bik_live_sample_not_a_real_key

bik_live_sample_not_a_real_key is illustrative. A missing, unknown, revoked, or expired key is rejected. Send the key you were given, including an older key that does not use those prefixes, in the same header.

Cognito session and bearer

Dashboard sign-in is the Cognito hosted UI at https://auth.bouleintel.com. The site at https://bouleintel.com exchanges the Cognito ID token once. The ID token belongs in the JSON body of that call. It is not the credential for later requests.

Sample exchange

POST /api/v1/customers/oauth/cognito HTTP/1.1
Host: api.bouleintel.com
Content-Type: application/json

{ "id_token": "<Cognito ID token>" }

A successful exchange sets an HttpOnly cookie named llw_session. The JSON body returns the account (id, name, email, tier) and does not include the session token. The browser sends the cookie on later calls to api.bouleintel.com.

A client that already holds that Boule session token sends it as Authorization: Bearer. The token is the Boule session, with type session. A Cognito ID token in that header is rejected.

Sample bearer call

GET /api/v1/customers/me HTTP/1.1
Host: api.bouleintel.com
Authorization: Bearer <Boule session token>

Cookie writes (POST, PUT, PATCH, DELETE) also require a trusted Origin, normally https://bouleintel.com. API-key and Bearer calls skip that check. JSON bodies use Content-Type: application/json.

401 and 403

401 means the credential is missing or rejected. No credential produces auth_required. A presented key or session that is unknown, expired, revoked, or the wrong token type produces invalid_credentials. Both responses include WWW-Authenticate: Bearer realm="bouleintel".

403 means the credential was accepted and this action is not allowed. A valid Standard key lacks the watch scope, so webhook registration returns forbidden. A plan that does not include the feature returns entitlement_denied. A cookie write from an untrusted origin returns csrf_failed.

Repeated authentication failures from one address return too_many_attempts with HTTP 429. That is a lockout, separate from a bad key.

Errors

Every error body uses one envelope. Switch on code. message is safe to show a person. details is structured context. It does not contain a stack trace. The wording of message can change. The code does not.

Illustrative envelope

{
  "error": {
    "code": "invalid_credentials",
    "message": "Invalid customer API key",
    "details": {}
  }
}
Error codes clients should handle
CodeHTTPWhat to do
auth_required401No credential was sent.
invalid_credentials401A key or session was sent and rejected.
csrf_failed403A cookie write came from an untrusted origin.
forbidden403The credential is valid and lacks permission for this route.
entitlement_denied403The plan does not include details.feature.
quota_exhausted402The allowance for details.feature is used up.
rate_limited429Too many requests. Honor Retry-After when it is present.
too_many_attempts429Auth lockout. The wait is in message.
coverage_exceeded429Daily distinct-property cap. details.kind says which cap.
challenge_required429Retry with X-Challenge-Token after solving the challenge.
validation_error422The request shape is wrong. Field errors are in details.fields.
not_found404The resource is absent.
internal_error500Retry later. The body keeps this same envelope.

Partner routes under /v1 commonly return auth_required, invalid_credentials, forbidden, validation_error, not_found, rate_limited, and internal_error. App routes under /api/v1 also return the plan, quota, coverage, and challenge codes in the table.

Parcel assessment

After a parcel is confirmed, retrieve its five-band approval risk, duration forecast, and matched board precedents by APN. Bands are low, guarded, moderate, elevated, and high. public_rollup is the customer-facing label (band N of 5). An unconfirmed address does not return a band, and the payload never includes a numeric score.

GET /v1/parcels/{apn}/assessment

Illustrative — synthetic data

The parcel, docket, and figures below are synthetic. They are not a Minneapolis or Hennepin public record, and there is no citation URL. p50, p75, and p90 are calendar days from variance application filing to board determination: median, 75th percentile, and 90th percentile.

{
  "apn": "00-000-00-00-0000",
  "jurisdiction": "Example City",
  "variance_type": "setback_reduction",
  "risk_assessment": {
    "band": "elevated",
    "public_rollup": "Elevated, band 4 of 5",
    "timeline_forecast_days": {
      "p50": 180,
      "p75": 240,
      "p90": 290
    },
    "key_risk_drivers": [
      "Illustrative neighbor opposition in the same district",
      "Illustrative prior setback denial on an adjacent block"
    ]
  },
  "precedents": [
    {
      "docket_id": "EXAMPLE-DOCKET-1",
      "board": "Example Board of Adjustment",
      "date": "2024-05-16",
      "outcome": "DENIED",
      "citation_url": null
    }
  ]
}

That body is a sample. The live partner field is assessment.risk_band, listed under Forecast ledger.

Webhooks

Registration is live for keys that include the watch scope. Pro, Premium, and Enterprise include it. A Standard key receives 403 forbidden. Delivery runs in the alert pipeline after the watchlist email for that case is sent. It follows ingestion, after Boule has the agenda, rather than at the moment the city publishes.

Not yet live You can subscribe to assessment.ready and risk.changed. Nothing emits those two events. hearing.scheduled and decision.recorded are the events sent today.

Sample subscription

POST /v1/webhook-subscriptions HTTP/1.1
Host: api.bouleintel.com
X-Customer-Api-Key: bik_live_sample_not_a_real_key
Content-Type: application/json

{
  "url": "https://api.yourfirm.com/webhooks/boule-intel",
  "event": "hearing.scheduled"
}

The create response includes secret once. Store it then. A later read does not return it. Remove a subscription with DELETE /v1/webhook-subscriptions/{id}. The URL must be public HTTPS on port 443, with no userinfo. An unknown event name or a rejected URL is 422 validation_error.

Webhook event types
EventStatusWhen a delivery can fire
hearing.scheduledEmittedA watched case has a hearing date and no outcome yet.
decision.recordedEmittedA watched case has an outcome. This wins over a hearing date on the same case.
assessment.readyNot emittedReserved. A subscription is stored. Nothing emits this event.
risk.changedNot emittedReserved. A subscription is stored. Nothing emits this event.

Signature

Each POST carries X-Boule-Timestamp (Unix seconds) and X-Boule-Signature (v1= plus lowercase hex). The MAC is HMAC-SHA256 over the timestamp, a period, and the raw body bytes. Verify those bytes. Re-serializing the JSON will not match.

Illustrative verification sketch

import hashlib
import hmac

# sample_webhook_secret is illustrative. Use the secret from create.
secret = "sample_webhook_secret"
timestamp = headers["X-Boule-Timestamp"]
signature = headers["X-Boule-Signature"]
message = f"{timestamp}.".encode() + raw_body
expected = "v1=" + hmac.new(secret.encode(), message, hashlib.sha256).hexdigest()
hmac.compare_digest(expected, signature)

Compare the timestamp to now and reject a stale signature. A window of a few minutes matches the current delivery behavior.

Retries

Delivery is one HTTPS POST with a 10 second timeout. Redirects are not followed. If the endpoint errors or times out, the failure is logged and that attempt is dropped. There is no automatic retry and no replay queue on this path. A crash before the alert batch commits can deliver the same event again, so treat delivery as at-least-once and ignore a duplicate you have already applied.

Illustrative payload

{
  "event": "hearing.scheduled",
  "apn": "00-000-00-00-0000",
  "occurred_at": "2026-10-01T00:00:00Z",
  "data": {
    "case_id": "EXAMPLE-1",
    "jurisdiction": "Example City",
    "variance_type": "setback_reduction",
    "status": "scheduled",
    "outcome": null
  }
}

OpenAPI

The contract is OpenAPI 3.1. Browse it below, or fetch the same document at /openapi.json on this site (https://bouleintel.com/openapi.json). That URL is the committed file docs/api/openapi.json, copied into the site build. Generate a client from it. The schema title inside the file is LLW API.

Not on the production API https://api.bouleintel.com does not publish the catalog. GET /api/v1/openapi.json, /docs, and /redoc on that host respond 404. A development server with debug documentation enabled serves those paths. Point a client generator at the file on this site, not at the production API.

Partner operations are tagged public and live under /v1. Customer operations are under /api/v1. Search the browser for /v1/parcels to open the partner assessment. The committed file is checked against the running schema.

Contract browser

The browser reads /openapi.json from this site. It does not call api.bouleintel.com. Snippets in the reference use that host. Credentials shown anywhere in the reference are not issued keys.

Loading the contract browser…

Forecast ledger

Before a hearing, the public seal is the fingerprint only: the SHA-256 digest of that forecast file, and an RFC 3161 timestamp token for that digest. The forecast file itself is published after the board vote. Seals go to a public Git repository and to an RFC 3161 timestamp authority. OpenTimestamps is not part of this setup. This is a product rule for the record. It is not legal advice.

Not yet live The public ledger repository is not published. There is no forecast file to download, and no API response returns a digest, a timestamp token, a sealed time, or a forecast publication time. Numeric scores stay on internal risk_scores and timeline_forecasts rows and are not partner fields.

Forecast ledger fields and what the API returns today
FieldStatusWhat the contract has
Fingerprint hashNot yet liveSHA-256 of the forecast file, published before the hearing. No column and no response field.
RFC 3161 timestamp tokenNot yet liveA timestamp token for that digest, from an RFC 3161 authority, alongside the public Git repository. No token, authority URL, or response field. OpenTimestamps is not used.
Sealed-atNot yet liveNo sealed_at column and no response field.
Published-atNot yet liveNo forecast publication time. published_at on the public agenda feed (GET /api/v1/public/feed) is when the portal published the agenda item.
Case and parcel identifiersLivePartner GET /v1/parcels/{apn}/assessment returns parcel.apn, parcel.address, parcel.jurisdiction, and assessment.ref_id. It has no case id. Customer POST /api/v1/intelligence/risk-score returns case_id. POST /api/v1/v2/parcels/assess returns apn.
Risk bandLivePartner assessment.risk_band is low, moderate, high, or preliminary. Customer risk_band is Low, Moderate, High, or null. The five names on the methodology page are not this enum.

Sandbox keys

There is no self-serve sandbox. The dashboard does not mint or display a bik_ key. Write to hello@bouleintel.com or use Request API sandbox, which opens the contact form. That form does not return a key. Boule issues it, and the raw value is shown once.

A test key starts with bik_test_. A production key starts with bik_live_. The remainder is base64url of 24 random bytes. An older key that starts with llw_ still belongs in X-Customer-Api-Key. It is not the test prefix.

What a test key covers

  • The same host as a live key: https://api.bouleintel.com. There is no sandbox hostname.
  • The same routes. Authentication accepts bik_test_ and bik_live_ on that host.
  • The same scopes and per-minute limits as the tier on the key. Standard is read at 60 per minute. Pro and Premium add watch at 300. Enterprise also has portfolio, at 1,000.

What it does not cover

  • A separate dataset, fixture catalog, or non-metered quota. The prefix is a label.
  • A button on this site that creates a key.
  • Webhook events that are not emitted yet. A test key does not turn those on. See Webhooks.

Illustrative test key

GET /v1/parcels/00-000-00-00-0000/assessment HTTP/1.1
Host: api.bouleintel.com
X-Customer-Api-Key: bik_test_sample_not_a_real_key

bik_test_sample_not_a_real_key is illustrative. It was not issued and will not authenticate.

Enterprise onboarding

Custom SLA tiers, higher rate limits, and delivery into your S3 bucket or Snowflake account are available for enterprise partners. Reach out to hello@bouleintel.com to discuss enterprise delivery.