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_keybik_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": {}
}
}| Code | HTTP | What to do |
|---|---|---|
auth_required | 401 | No credential was sent. |
invalid_credentials | 401 | A key or session was sent and rejected. |
csrf_failed | 403 | A cookie write came from an untrusted origin. |
forbidden | 403 | The credential is valid and lacks permission for this route. |
entitlement_denied | 403 | The plan does not include details.feature. |
quota_exhausted | 402 | The allowance for details.feature is used up. |
rate_limited | 429 | Too many requests. Honor Retry-After when it is present. |
too_many_attempts | 429 | Auth lockout. The wait is in message. |
coverage_exceeded | 429 | Daily distinct-property cap. details.kind says which cap. |
challenge_required | 429 | Retry with X-Challenge-Token after solving the challenge. |
validation_error | 422 | The request shape is wrong. Field errors are in details.fields. |
not_found | 404 | The resource is absent. |
internal_error | 500 | Retry 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}/assessmentIllustrative — 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.
| Event | Status | When a delivery can fire |
|---|---|---|
hearing.scheduled | Emitted | A watched case has a hearing date and no outcome yet. |
decision.recorded | Emitted | A watched case has an outcome. This wins over a hearing date on the same case. |
assessment.ready | Not emitted | Reserved. A subscription is stored. Nothing emits this event. |
risk.changed | Not emitted | Reserved. 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.