Skip To Main Content

Beta: BOMDocs is in beta. Listings marked Sample are demonstration data; features and pricing may change.

BOMDocs Back On Market DocsBeta
  • Browse Reports
  • How It Works
  • For Uploaders
  • Developers
  • Log In Sign Up
  1. Home
  2. Developers

API Reference

Upload, search, retrieve, and license real estate reports over REST. All endpoints return JSON.

On This Page

  • Overview
  • Authentication
  • Plans, Quotas And Detail
  • Sandbox
  • Endpoint Access
  • Data Product Catalog
  • Reports API
  • Data Products API
  • Error Codes
  • Reviews API
  • Billing API
  • Accounts API

API Overview

The BOMDocs API provides programmatic access to upload, retrieve, and manage real estate reports. All endpoints use RESTful conventions and return JSON responses.

Base URL

https://bom-docs.com/api

Content Types

  • Request: application/json (except file uploads which use multipart/form-data)
  • Response: application/json (except file downloads which return application/pdf)

Rate Limiting

API requests are limited to 150 per minute per API key (or per IP when no key is sent), and 45 per minute for the analysis and AI overview endpoints. Exceeding a limit returns 429 Too Many Requests. Contact support for higher limits.

Developer Starter keys are also limited to 60 requests per minute and sandbox keys to 30 (429 with "error": "RateLimited").

Separately, every live API key call counts against your plan's monthly call quota; see Plans, Quotas And Detail. Sandbox calls never count against it.

Coverage

BOMDocs currently serves properties in Utah (UT). Reports for other states are not listed, searchable, purchasable, or returned by any endpoint, and uploads for other states are rejected with StateNotEnabled.

Data Use

Use of the API and of any data it returns is governed by the Developer API Terms and the Aggregated And De-Identified Data section of the Privacy Policy. Do not attempt to re-identify properties, owners, or uploaders from masked or aggregate data.

Error Handling

All errors follow a consistent format:

{
      "error": "Error type",
      "message": "Human-readable error message"
}

Common HTTP status codes:

  • 200 - Success
  • 400 - Bad Request (invalid parameters)
  • 401 - Unauthorized (missing or invalid API key)
  • 403 - Forbidden (no active Developer plan for a live key, endpoint not permitted for your key, or not available in the sandbox)
  • 404 - Not Found
  • 429 - Too Many Requests (per-minute rate limit, monthly quota with "error": "QuotaExceeded", or sandbox cap with "error": "SandboxCapReached")
  • 500 - Internal Server Error

Authentication

Authenticated requests use an API key. After an admin approves your Developer account, our team issues your first key (creating a key is not self-serve). Issued keys appear under API Keys. Once you have an active key, you can generate a replacement there; the previous key stops working immediately.

Authorization Header

Include your API key using one of the following methods:

Bearer (recommended):

Authorization: Bearer bdk_live_your-api-key-here

HTTP Basic (optional): For clients that only support Basic Auth, use username apikey (or leave empty) and password = your full API key. Example: Authorization: Basic <base64("apikey:bdk_live_...")>

API Key Format

The prefix tells you, and us, which environment a key belongs to:

  • bdk_live_ + 43 unpadded base64url characters (A–Z, a–z, 0–9, hyphen, or underscore): live key. The full key is 52 characters. Real data, counts against your monthly quota, and requires an active paid Developer plan.
  • bdk_test_ + the same 43-character body: sandbox key. The full key is also 52 characters. Made-up Sample data only, never billed; see Sandbox.
  • Keys issued before sandbox keys existed start with BOMD- and keep working as live keys.

Placeholder (not a real key): bdk_live_your-api-key-here

Every API key response carries X-BOMD-Environment: live or X-BOMD-Environment: sandbox, and report and data product bodies include "environment".

Server-to-server

For server-to-server calls, send only the Authorization: Bearer bdk_live_... header. No cookie or session is required; the API identifies the caller from the API key. The same endpoints work for browser (cookie) and server-to-server (Bearer) authentication.

Security Best Practices:
  • Never expose your API key in client-side code or public repositories
  • Store API keys securely (environment variables, secret managers)
  • After a key is issued, rotate it from the API keys page when you need a new one (the previous key stops working immediately)
  • Revoke compromised keys immediately

Plans, Quotas And Detail

Live keys need an active paid Developer plan. There is no free production tier: without a plan, live calls return 403 with "error": "NoActivePlan". Your plan sets a monthly call quota, which endpoints you can call, and how much identifying detail report endpoints return.

PlanPriceMonthly CallsEndpointsReport Detail
No Plan—0 (live calls refused)Sandbox only—
Developer Starter$79/mo2,500Market Stats, Integrity Check, Availability, Reports ListMasked
Developer Growth$299/mo10,000All, including Report DetailFull
Enterprise (Contact Sales)CustomPer agreementAll, plus custom data productsFull

Annual billing is 10 times the monthly price. Live calls also record a per-call data fee from your plan for usage reporting, and attributed sales still earn developer commission; see below.

Monthly Quota

  • Quotas count live calls per account per UTC calendar month and reset at 00:00 UTC on the 1st.
  • Every live API key response carries X-BOMD-Plan, X-BOMD-Quota-Limit, X-BOMD-Quota-Remaining, and X-BOMD-Quota-Reset (ISO 8601 UTC).
  • When the quota is used up, calls are refused (hard stop) with 429 and a Retry-After header until the reset:
{
      "error": "QuotaExceeded",
      "message": "You have used all 2,500 API calls included in Developer Starter for this month. Calls resume at 00:00 UTC on the first of next month. Upgrade your plan at /account/subscription for a higher limit, or contact us for a custom package.",
      "plan": "developer-starter",
      "limit": 2500,
      "used": 2500,
      "resetsAtUtc": "YYYY-MM-01T00:00:00Z",
      "upgradeUrl": "/account/subscription"
}

A live key without a paid plan:

{
      "error": "NoActivePlan",
      "message": "Live API keys require an active paid Developer plan (Developer Starter or Developer Growth). There is no free production tier. ...",
      "plan": "none",
      "limit": 0,
      "upgradeUrl": "/account/subscription",
      "applyUrl": "/dev"
}

Masked Vs Full Detail

Report objects include detailLevel (masked or full) and addressMasked.

  • Masked: the street number and unit are removed ("S Main St, Salt Lake City, UT 84101"), the title becomes the report type and city ("Home Inspection - Salt Lake City, UT"), and contractorName and contractorLicenseNumber are null. City, state, ZIP, type, price, and dates are always returned.
  • Full: Developer Growth, Contact Sales, and private partner plans; admins; the report's own uploader; and, on GET /api/reports/{id}, a caller who has purchased or holds a license for that report.

Attributed Buy Links

For approved Developer accounts, each report includes a buyUrl such as https://bom-docs.com/report/{id}?dref={referralCode}.{keyId}. When a buyer completes a purchase from that link, the sale is attributed to your account and you earn a developer commission (10% to 15% of the sale by monthly attributed-sale tier), snapshotted on the purchase and paid like other commissions. Your own purchases and your own listings are never attributed. API data fees are billed separately and never reduce commission.

Checklist

When the uploader listed which systems a report covers, checklistIncluded is true (shown as a "Checklist Included" badge on the site). The checklist itself is part of the licensed report.

Sandbox

Approved developers can test with a sandbox key (bdk_test_...). The sandbox uses the same base URL and the same paths as live, but:

  • It returns only made-up Sample listings, never real reports or real market data. Sample results are labeled "environment": "sandbox" and X-BOMD-Environment: sandbox.
  • It is never billed and never counts against your monthly production quota.
  • Each developer account has a cap of 1,000 sandbox calls in total (not per month). Responses carry X-BOMD-Sandbox-Cap and X-BOMD-Sandbox-Remaining. At the cap, calls return 429 with "error": "SandboxCapReached"; contact support if you need more test calls.
  • Sandbox keys can call the data products (/api/reports, /api/reports/{id}, and /api/data/...) plus GET /api/accounts/me. Other endpoints (uploads, billing, purchases, reviews) return 403 with "error": "NotAvailableInSandbox".
  • Sandbox keys work without a paid plan. Live keys (bdk_live_...) require an active paid Developer plan.
curl "https://bom-docs.com/api/data/market-stats?state=UT"       -H "Authorization: Bearer bdk_test_your-api-key-here"

Endpoint Access

Each developer account has a list of data products its keys may call, set by our team (newly approved accounts: sandbox only, all endpoints, 1,000-call cap). Your plan also limits live endpoints (Developer Starter does not include Report Detail). Your current access is shown in the Developer Center.

Data ProductEndpoint
Market StatsGET /api/data/market-stats
Integrity CheckPOST /api/data/integrity-check
AvailabilityGET /api/data/availability
Report DetailGET /api/reports/{id}
Reports ListGET /api/reports

A call to a data product that is not permitted returns 403 with "error": "ProductNotPermitted" and the product id. The full catalog, including planned data products, is on the Data Product Catalog.

Reports API

Endpoints for uploading, retrieving, and managing real estate reports.

Access control

The requester is identified either by API key (the key owner is the user) or by cookie auth when using the web app. For download, you can also pass a license token (?token=...); in that case the requester is that license.

  • Download requires a valid license for the requested report. A token for report A cannot be used to download report B; the server returns 403 with a message such as "License token is not valid for this report."
  • GET /api/reports/{id} returns hasLicense and license for the authenticated user, so you can check whether that user has access before calling download. You can pass ?token=... to get tokenAccess (whether that token has access to this report and its license details) without downloading.
  • GET /api/reports accepts optional ?includeAccess=true to include a hasLicense flag per report for the authenticated user (requires authentication).
  • Preview (GET /api/reports/{id}/preview) is part of the Data API and is public: no authentication is required; the response is a watermarked PDF. See the request and response example below.

POST /api/reports

Upload a new report document. Reports require admin approval before being published.

Request

Content-Type: multipart/form-data

Request Body Properties

Property Type Required Description
Title string Yes Report title (max 200 characters)
PropertyAddress string Yes Full property address (max 500 characters)
ContractorName string Yes Name of the contractor/inspector (max 200 characters)
ContractorLicenseNumber string For inspection and appraisal types Professional license number (max 50 characters). Required for Home Inspection, Appraisal, Sewer Scope, Radon Test, Mold Inspection, Chimney Inspection, Structural Report, Septic Inspection, Water Quality, Energy Audit, and Asbestos / Lead Test. Optional for Quotes / Bids, Pest / Termite, Roof Inspection, Electrical Inspection, Masonry Report, and Pool / Spa Inspection. Blank or whitespace on a required type returns 400 LicenseNumberRequired.
ReportType string Yes Type of report (e.g., "Home Inspection", "Appraisal", "Sewer Scope")
Address1 string Yes Street address line 1 (max 200 characters)
Address2 string No Street address line 2 (max 200 characters)
City string Yes City name (max 100 characters)
State string Yes State abbreviation (2 characters, uppercase)
Zip5 string Yes 5-digit ZIP code
Zip4 string No 4-digit ZIP+4 extension
Price decimal Yes Suggested listing price in USD. Required on upload. An admin may confirm or adjust it during review (prices under $5 or over $500 are flagged).
ContractorServiceDate date Yes Date of service (ISO 8601 format: YYYY-MM-DD). Cannot be in the future.
UploaderAgreementVersion string Yes Must equal 2026-10-29, the current Uploader & Commission Agreement version (shown when you become an uploader or upload a report). Missing or stale values return 400 UploaderAgreementRequired. The accepted version and time are stored on the upload.
InspectedSystems string[] No Optional checklist of covered systems (repeat the field). Unknown values are dropped. Shown only as "Checklist Included".
File file Yes PDF file (max 50MB). Only PDF files are accepted.

Example Request (cURL)

curl -X POST "https://bom-docs.com/api/reports" \
      -H "Authorization: Bearer bdk_live_your-api-key-here" \
      -F "Title=Home Inspection Report" \
      -F "PropertyAddress=560 Willowbrook Bench Rd" \
      -F "ContractorName=John Doe" \
      -F "ContractorLicenseNumber=LIC12345" \
      -F "ReportType=Home Inspection" \
      -F "Address1=560 Willowbrook Bench Rd" \
      -F "City=Salt Lake City" \
      -F "State=UT" \
      -F "Zip5=84101" \
      -F "Price=299.99" \
      -F "ContractorServiceDate=2024-01-15" \
      -F "UploaderAgreementVersion=2026-10-29" \
      -F "File=@/path/to/report.pdf"

Example Request (C#)

using var client = new HttpClient();
    client.DefaultRequestHeaders.Authorization = 
        new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "bdk_live_your-api-key-here");

    using var formData = new MultipartFormDataContent();
    formData.Add(new StringContent("Home Inspection Report"), "Title");
    formData.Add(new StringContent("560 Willowbrook Bench Rd"), "PropertyAddress");
    formData.Add(new StringContent("John Doe"), "ContractorName");
    formData.Add(new StringContent("LIC12345"), "ContractorLicenseNumber");
    formData.Add(new StringContent("Home Inspection"), "ReportType");
    formData.Add(new StringContent("560 Willowbrook Bench Rd"), "Address1");
    formData.Add(new StringContent("Salt Lake City"), "City");
    formData.Add(new StringContent("UT"), "State");
    formData.Add(new StringContent("84101"), "Zip5");
    formData.Add(new StringContent("299.99"), "Price");
    formData.Add(new StringContent("2024-01-15"), "ContractorServiceDate");
    formData.Add(new StringContent("2026-10-29"), "UploaderAgreementVersion");
    formData.Add(new ByteArrayContent(File.ReadAllBytes("report.pdf")), "File", "report.pdf");

    var response = await client.PostAsync("https://bom-docs.com/api/reports", formData);
    var result = await response.Content.ReadAsStringAsync();

Response

Status Code: 200 OK

Response Body Properties

Property Type Description
success boolean Indicates if the request was successful
reportId string Unique identifier for the uploaded report
message string Status message

Example Response

{
      "success": true,
      "reportId": "7d6a88e9-2251-49a1-91ed-d8ca79092093",
      "message": "Report uploaded successfully. Status: Pending Review. The listing price you submitted may be confirmed or adjusted during review."
}

GET /api/reports

Retrieve a page of published reports in enabled states with optional filtering. Detail level follows your plan (see Plans, Quotas And Detail); your own uploads are always full.

Query Parameters

Parameter Type Required Description
type string No Filter by report type (e.g., "Home Inspection", "Appraisal")
search string No Search in title, address, city, state
page, pageSize integer No Paging: page starts at 1; pageSize defaults to 24, maximum 48. A page past the end returns an empty reports list. The response includes page, pageSize, totalCount, totalPages.
includeAccess boolean No Fill hasLicense per report for the caller

Example Request

curl -X GET "https://bom-docs.com/api/reports?type=Home%20Inspection&search=Salt%20Lake%20City" \
      -H "Authorization: Bearer bdk_live_your-api-key-here"

Response

Status Code: 200 OK

Response Body Properties

Property Type Description
success boolean Indicates if the request was successful
count integer Number of reports returned
detailLevel string full or masked for your plan
reports array Array of report objects

Report Object Properties

Property Type Description
id string Unique report identifier
title string Report title
propertyAddress string Property address (street number removed when masked)
street string Street line (masked: street name only)
city string City name
state string State abbreviation
zip string 5-digit ZIP code
reportType string Type of report
price decimal Report price in USD
contractorName string Contractor/inspector name (null when masked)
contractorLicenseNumber string Contractor license number (null when masked)
serviceDate string (ISO 8601) Date of service
uploadedAt string (ISO 8601) Upload timestamp
checklistIncluded boolean The report includes a covered-systems checklist
detailLevel, addressMasked string, boolean Detail applied to this report
hasLicense boolean Caller holds a license (with includeAccess=true)
buyUrl string Public report page; carries dref for approved Developers

Example Response

{
      "success": true,
      "count": 1,
      "page": 1,
      "pageSize": 24,
      "totalCount": 1,
      "totalPages": 1,
      "detailLevel": "masked",
      "reports": [
        {
          "id": "7d6a88e9-2251-49a1-91ed-d8ca79092093",
          "title": "Home Inspection - Salt Lake City, UT",
          "propertyAddress": "S Main St, Salt Lake City, UT 84101",
          "street": "S Main St",
          "city": "Salt Lake City",
          "state": "UT",
          "zip": "84101",
          "reportType": "Home Inspection",
          "price": 299.99,
          "contractorName": null,
          "contractorLicenseNumber": null,
          "serviceDate": "2024-01-15T00:00:00Z",
          "uploadedAt": "2024-01-20T10:30:00Z",
          "checklistIncluded": true,
          "detailLevel": "masked",
          "addressMasked": true,
          "hasLicense": false,
          "buyUrl": "https://bom-docs.com/report/7d6a88e9-2251-49a1-91ed-d8ca79092093?dref=ABCD2345.0f3a9c2e7b1d4f8a6c5e2b9d7a1f3c4e"
        }
    ]
}

GET /api/reports/{id}

Retrieve detailed information about a specific report, including license status. Full detail once you have purchased or licensed the report (or per your plan); otherwise masked. Reports in states that are not enabled return 404.

Path Parameters

Parameter Type Description
id string Report identifier (UUID)

Example Request

curl -X GET "https://bom-docs.com/api/reports/7d6a88e9-2251-49a1-91ed-d8ca79092093" \
      -H "Authorization: Bearer bdk_live_your-api-key-here"

Response

Status Code: 200 OK

Response Body Properties

Property Type Description
success boolean Indicates if the request was successful
report object Report details (includes all properties from GET /api/reports plus license info)
report.hasLicense boolean Whether the authenticated user has a valid license for this report
report.license object | null License information (if available)
report.license.accessToken string License access token for downloads
report.license.expiresAt string (ISO 8601) License expiration date
report.license.downloadCount integer Number of downloads used
report.license.maxDownloads integer Maximum allowed downloads
report.license.viewCount integer Number of views used
report.license.maxViews integer Maximum allowed views

Example Response

{
  "success": true,
  "report": {
    "id": "7d6a88e9-2251-49a1-91ed-d8ca79092093",
    "title": "Home Inspection - Ember Ridge, UT",
    "propertyAddress": "560 Willowbrook Bench Rd",
    "street": "560 Willowbrook Bench Rd",
    "city": "Ember Ridge",
    "state": "UT",
    "zip": "84721",
    "reportType": "Home Inspection",
    "price": 149.00,
    "detailLevel": "full",
    "addressMasked": false,
    "checklistIncluded": true,
    "buyUrl": "https://bom-docs.com/report/7d6a88e9-2251-49a1-91ed-d8ca79092093?dref=ABCD2345.0f3a9c2e7b1d4f8a6c5e2b9d7a1f3c4e",
    "contractorName": "Jordan Hale",
    "contractorLicenseNumber": "UT-HI-44021",
    "serviceDate": "2026-03-12T00:00:00Z",
    "uploadedAt": "2026-03-18T16:30:00Z",
    "hasLicense": true,
    "license": {
      "accessToken": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
      "expiresAt": "2026-04-18T16:30:00Z",
      "downloadCount": 2,
      "maxDownloads": 10,
      "viewCount": 15,
      "maxViews": 50
    }
  }
}

PUT /api/reports/{id}

Update report metadata. Only the report uploader or an admin can update a report.

Path Parameters

Parameter Type Description
id string Report identifier (UUID)

Request Body

Content-Type: application/json

Request Body Properties

Property Type Required Description
Title string No Report title
PropertyAddress string No Property address
Price decimal No Report price in USD
ContractorServiceDate date No Date of service (ISO 8601 format: YYYY-MM-DD)

Example Request

curl -X PUT "https://bom-docs.com/api/reports/7d6a88e9-2251-49a1-91ed-d8ca79092093" \
      -H "Authorization: Bearer bdk_live_your-api-key-here" \
      -H "Content-Type: application/json" \
      -d '{
        "Title": "Updated Home Inspection Report",
        "Price": 349.99,
        "ContractorServiceDate": "2024-01-20"
      }'

Response

Status Code: 200 OK

Example Response

{
      "success": true,
      "message": "Report metadata updated successfully"
}

GET /api/reports/{id}/download

Download the full PDF report. Requires a valid license (purchase) for the report.

Path Parameters

Parameter Type Description
id string Report identifier (UUID)

Query Parameters

Parameter Type Required Description
token string No License access token (alternative to user-based license lookup)

Example Request

curl -X GET "https://bom-docs.com/api/reports/7d6a88e9-2251-49a1-91ed-d8ca79092093/download" \
      -H "Authorization: Bearer bdk_live_your-api-key-here" \
      -o report.pdf

Response

Status Code: 200 OK

Content-Type: application/pdf

Returns the PDF file directly. The filename is derived from the report title.

License Requirements:
  • User must have purchased the report, OR
  • Valid license token must be provided in query parameter
  • License must not be expired
  • Download count must not exceed maximum (default: 10 downloads)
  • IP address must be in allowed list (max 3 IPs per license)

GET /api/reports/{id}/preview

Get a watermarked preview of the report. No license or API key is required. The response is a PDF, not JSON.

Path Parameters

Parameter Type Description
id string Report identifier (UUID)

Example Request

curl -X GET "https://bom-docs.com/api/reports/7d6a88e9-2251-49a1-91ed-d8ca79092093/preview" \
      -o preview.pdf

An API key is optional. If you send one, the call follows the same quota rules as other Data API requests.

Response

Status Code: 200 OK

Content-Type: application/pdf

Returns a watermarked PDF preview. The preview is blurred and watermarked to prevent unauthorized use.

Data Products API

De-identified and aggregate endpoints. They never return an address, contractor, uploader, or buyer. Each live call counts against your monthly quota; sandbox keys get Sample data only. Only enabled states are covered.

GET /api/data/availability

Is there a listed report for this address? Matching normalizes case, punctuation, unit, and street suffixes.

Query Parameters

  • address1 (required), state (required), and zip or city (one required).
curl "https://bom-docs.com/api/data/availability?address1=1234%20S%20Main%20St&state=UT&zip=84101" \
      -H "Authorization: Bearer bdk_live_your-api-key-here"
{
      "stateEnabled": true,
      "available": true,
      "count": 1,
      "reports": [
        { "id": "7d6a88e9-...", "reportType": "Home Inspection", "serviceMonth": "2026-04", "price": 40.00,
          "checklistIncluded": true, "buyUrl": "https://bom-docs.com/report/7d6a88e9-...?dref=ABCD2345.0f3a..." }
      ]
}

A missing address1, zip/city, or a state that is not a two-letter code returns 400 InvalidRequest. A valid state that is not enabled returns 200 with stateEnabled: false and a message.

POST /api/data/integrity-check

Was this exact file uploaded to BOMDocs as a listed report? Send the file (multipart field file, up to 50 MB; it is hashed and discarded, never stored) or its SHA-256 (form field or JSON {"sha256": "..."}).

curl -X POST "https://bom-docs.com/api/data/integrity-check" \
      -H "Authorization: Bearer bdk_live_your-api-key-here" \
      -F "file=@/path/to/report.pdf"
{ "verified": true, "reportId": "7d6a88e9-...", "reportType": "Home Inspection", "state": "UT", "listedMonth": "2026-04", "message": "..." }

Matches the original upload byte-for-byte. Licensed downloads are watermarked per buyer, so a downloaded copy will not match; use the original file.

GET /api/data/market-stats

Aggregate stats for listed reports: count, median and average price, checklist share, and median report age in months, overall and per report type.

  • state (required, two-letter code; anything else returns 400 InvalidRequest), optional city, zip, reportType.
  • Privacy threshold: a group with fewer than 5 reports or from fewer than 3 distinct uploaders is returned with suppressed: true and no numbers.
{
      "success": true,
      "stats": {
        "state": "UT", "city": "Salt Lake City", "minReports": 5, "minUploaders": 3,
        "total": { "reportType": null, "suppressed": false, "reports": 42, "medianPrice": 45, "averagePrice": 48, "checklistShare": 0.62, "medianAgeMonths": 7.5 },
        "byReportType": [ { "reportType": "Sewer Scope", "suppressed": true } ]
      }
}

Error Codes

StatuserrorMeaning
400InvalidRequestMissing or invalid parameters on a data product endpoint
400UploaderAgreementRequiredUpload without the current UploaderAgreementVersion
400StateNotEnabledUpload for a state BOMDocs does not serve yet
400LicenseNumberRequiredLicense-required report type uploaded without an inspector license number. Quotes / Bids, Pest / Termite, Roof Inspection, Electrical Inspection, Masonry Report, and Pool / Spa Inspection may omit it.
401—Missing or invalid API key
403—Developer account not approved, or not allowed for this resource
403NoActivePlanLive key without an active paid Developer plan (no free production calls)
403ProductNotPermittedYour plan or account access does not include this data product
403NotAvailableInSandboxEndpoint not offered to sandbox keys
404—Not found, unpublished, or in a state that is not enabled
429QuotaExceededMonthly plan quota used; resets on the 1st (UTC)
429SandboxCapReachedSandbox test-call cap used for this developer account
429RateLimited or —Per-minute rate limit (plan or global), or too many requests with an invalid API key from one network (wait a minute)

Reviews API

Endpoints for reading and creating reviews for reports. Creating a review and marking helpful require authentication (API key or cookie).

GET /api/reviews/report/{reportId}

Get reviews for a report. Does not require authentication.

Query Parameters

ParameterTypeDefaultDescription
approvedOnlybooleantrueIf true, return only approved reviews

Example Request

curl -X GET "https://bom-docs.com/api/reviews/report/7d6a88e9-2251-49a1-91ed-d8ca79092093?approvedOnly=true"

Response

Returns reviews (array), averageRating, reviewCount.

POST /api/reviews

Create a review for a report. Requires authentication. User must have purchased the report.

Request Body

PropertyTypeRequiredDescription
ReportIdstringYesReport identifier
RatingintegerYes1–5
CommentstringNoOptional comment (max 2000 characters)
PurchaseIdstringNoOptional purchase identifier

Example Request

curl -X POST "https://bom-docs.com/api/reviews" \
  -H "Authorization: Bearer bdk_live_your-api-key-here" \
  -H "Content-Type: application/json" \
  -d "{\"reportId\":\"7d6a88e9-2251-49a1-91ed-d8ca79092093\",\"rating\":5,\"comment\":\"Great report.\"}"

POST /api/reviews/{reviewId}/helpful

Mark a review as helpful or not helpful. Requires authentication.

Request Body

{ "helpful": true } or { "helpful": false }

Example Request

curl -X POST "https://bom-docs.com/api/reviews/review-id-here/helpful" \
  -H "Authorization: Bearer bdk_live_your-api-key-here" \
  -H "Content-Type: application/json" \
  -d "{\"helpful\":true}"

Billing API

Endpoints for retrieving billing information, transaction history, and commission details.

GET /api/billing/summary

Get a comprehensive billing summary for the authenticated user's account.

Example Request

curl -X GET "https://bom-docs.com/api/billing/summary" \
      -H "Authorization: Bearer bdk_live_your-api-key-here"

Response

Status Code: 200 OK

Response Body Properties

Property Type Description
success boolean Indicates if the request was successful
summary object Billing summary object
summary.user object User information
summary.user.id string User identifier
summary.user.email string User email address
summary.user.displayName string User display name
summary.user.role string User role
summary.purchases object Purchase statistics
summary.purchases.totalSpent decimal Total amount spent on purchases
summary.purchases.totalCount integer Total number of purchases
summary.purchases.recentPurchases array Array of recent purchase objects (last 10)
summary.commissions object Commission information
summary.commissions.uploader object Uploader commission details
summary.commissions.uploader.totalSales decimal Total sales from uploaded reports
summary.commissions.uploader.totalCommission decimal Total commission earned
summary.commissions.uploader.pendingCommission decimal Pending commission not yet paid
summary.commissions.referrer object Referrer commission details
summary.commissions.referrer.totalCommission decimal Total referral commission earned
summary.commissions.referrer.pendingCommission decimal Pending referral commission
summary.commissions.developer object Developer commission on sales from your API buy links
summary.commissions.developer.totalCommission decimal Total developer commission earned
summary.commissions.developer.pendingCommission decimal Developer commission not yet paid out

Example Response

{
      "success": true,
      "summary": {
        "user": {
          "id": "user-123",
          "email": "[email protected]",
          "displayName": "developer",
          "role": "Developer"
        },
        "purchases": {
          "totalSpent": 599.98,
          "totalCount": 2,
          "recentPurchases": [
            {
              "id": "purchase-456",
              "reportId": "7d6a88e9-2251-49a1-91ed-d8ca79092093",
              "amount": 299.99,
              "timestamp": "2024-01-20T10:30:00Z",
              "status": "Completed"
            }
          ]
        },
        "commissions": {
          "uploader": {
            "totalSales": 1500.00,
            "totalCommission": 450.00,
            "pendingCommission": 150.00
          },
          "referrer": {
            "totalCommission": 50.00,
            "pendingCommission": 25.00
          },
          "developer": {
            "totalCommission": 12.00,
            "pendingCommission": 4.00
          }
        }
    }
}

GET /api/billing/transactions

Get paginated transaction history for the authenticated user.

Query Parameters

Parameter Type Required Default Description
page integer No 1 Page number (1-based)
pageSize integer No 20 Number of items per page

Example Request

curl -X GET "https://bom-docs.com/api/billing/transactions?page=1&pageSize=20" \
      -H "Authorization: Bearer bdk_live_your-api-key-here"

Response

Status Code: 200 OK

Response Body Properties

Property Type Description
success boolean Indicates if the request was successful
page integer Current page number
pageSize integer Items per page
total integer Total number of transactions
totalPages integer Total number of pages
transactions array Array of transaction objects

Transaction Object Properties

Property Type Description
id string Transaction identifier
reportId string Report identifier
amount decimal Transaction amount
currency string Currency code (e.g., "USD")
timestamp string (ISO 8601) Transaction timestamp
status string Transaction status (e.g., "Completed", "Pending", "Refunded")
transactionStatus string Detailed transaction status

Example Response

{
      "success": true,
      "page": 1,
      "pageSize": 20,
      "total": 45,
      "totalPages": 3,
      "transactions": [
        {
          "id": "txn-789",
          "reportId": "7d6a88e9-2251-49a1-91ed-d8ca79092093",
          "amount": 299.99,
          "currency": "USD",
          "timestamp": "2024-01-20T10:30:00Z",
          "status": "Completed",
          "transactionStatus": "succeeded"
        }
    ]
}

GET /api/billing/commissions

Get commission details for uploaders and referrers.

Example Request

curl -X GET "https://bom-docs.com/api/billing/commissions" \
      -H "Authorization: Bearer bdk_live_your-api-key-here"

Response

Status Code: 200 OK

Response Body Properties

Property Type Description
success boolean Indicates if the request was successful
commissions object Commission information
commissions.uploader object Uploader commission details
commissions.uploader.totalSales decimal Total sales from uploaded reports
commissions.uploader.totalCommission decimal Total commission earned
commissions.uploader.pendingCommission decimal Pending commission not yet paid
commissions.uploader.paidCommission decimal Total commission paid out
commissions.referrer object Referrer commission details
commissions.referrer.totalCommission decimal Total referral commission earned
commissions.referrer.pendingCommission decimal Pending referral commission
commissions.referrer.paidCommission decimal Total referral commission paid out
commissions.developer object Developer commission on sales from your API buy links
commissions.developer.totalCommission decimal Total developer commission earned
commissions.developer.pendingCommission decimal Developer commission not yet paid out
commissions.developer.paidCommission decimal Developer commission paid out

Example Response

{
      "success": true,
      "commissions": {
        "uploader": {
          "totalSales": 1500.00,
          "totalCommission": 450.00,
          "pendingCommission": 150.00,
          "paidCommission": 300.00
        },
        "referrer": {
          "totalCommission": 50.00,
          "pendingCommission": 25.00,
          "paidCommission": 25.00
        },
        "developer": {
          "totalCommission": 12.00,
          "pendingCommission": 4.00,
          "paidCommission": 8.00
        }
    }
}

Accounts API

Get the current authenticated user's profile. Works with cookie or API key. Use this to verify your API key or get account info in server-to-server calls.

GET /api/accounts/me

Returns the current user's profile. Requires authentication (API key or cookie).

Example Request

curl -X GET "https://bom-docs.com/api/accounts/me" \
  -H "Authorization: Bearer bdk_live_your-api-key-here"

Response

Status Code: 200 OK

PropertyTypeDescription
successbooleanAlways true on success
idstringUser identifier
emailstringUser email
displayNamestringDisplay name
rolestringUser role (e.g. Developer, Admin)
isDeveloperApprovedbooleanWhether Developer account is approved
authMethodstringApiKey or Cookie
BOMDocs Back On Market Docs

A marketplace for real estate reports and property documents. Transparency starts with shared documents.

Product

  • Browse Reports
  • Search
  • Upload A Report
  • How It Works

Company

  • About
  • Partners
  • Careers
  • Contact
  • Support
  • Share BOMDocs

Legal

  • Terms Of Service
  • Privacy Policy

Developers

  • Developer Center
  • API Status

© 2026 BOMDocs (Back On Market Docs). All rights reserved.

Not legal advice. Our Terms Of Service and Privacy Policy are drafts pending counsel review.

Listings marked "Sample" are demonstration data, not real properties.

Connection lost. Reconnecting…

Can’t reach the server. Check your connection and try again.

This page has expired. Reload to continue.

Try Again Reload