Skip to main content
In addition to PDF uploads, CapOut supports direct, typed estimate imports via:
  • POST /upload/json: structured JSON estimate payload.
  • POST /upload/csv: multipart CSV file.
Upload an estimate as JSON or CSV to review its line items and download Contractor and Carrier ESX files. Every accepted import returns a document_id, providing the same status tracking, realtime events, and clean /{document_id}.esx downloads as PDF estimates.

Download example files

The JSON example uses fictional claim details and illustrative customer prices. It covers nine room or area labels, roof and exterior work, interior repairs, multiple activities, 29 explicit category/selector pairs, 21 exact catalog descriptions, a disabled alternate, and an F9 note. The prices are examples only; replace them with your own pricing. Put the estimate rows in the request body’s line_items array.

Key Principles & Pricing Policy

  • Pricing: Supplied prices are preserved as custom prices. If an item omits pricing, it is exported as an explicit custom $0.00 item. CapOut never fetches external market prices or modifies customer prices.
  • Catalog Resolution: You can provide exact Xactimate Category/Selector pairs (e.g. cat: "RFG", sel: "240") or an item description. A pair you provide is sent to Xactimate exactly as given, with your unit, even when CapOut’s own item list doesn’t include it. Description-only items are matched to a category and selector for you. A match CapOut can’t confirm for your unit can export as a miscellaneous item in its category, so send the pair when you know it.
  • Dual Profiles: Both Contractor (8D) and Carrier (5L) ESX files are automatically generated upon export.
  • Enabled / Disabled Items: Items can be flagged with enabled: false (or active: 0). Disabled items are retained in review but excluded from ESX calculations and export totals.
  • Paid When Incurred: enabled controls the initial eligibility of these rows too. Enabled PWI rows export as active priced items; disabled PWI rows can remain in the ESX with a paid-if-incurred flag and contribute nothing to its payable total.
  • Overhead & Profit: Each row’s overhead_profit_applicable flag controls O&P eligibility independently of its price. Set estimate-level O&P rates to have CapOut calculate O&P for you. See Overhead & Profit (O&P).
  • Header Metadata: Supply claim details, contacts (insured, estimator, claim rep), dates, type of loss, price list, and tax jurisdiction—including automatic US/Canadian address splitting or separate address fields. See Estimate Header Metadata.
  • Sketch (optional): JSON uploads can include room geometry, sloped and peaked ceilings, linked subrooms, staircases, and live sketch formulas to add a sketch to the ESX files, on pricing tiers that include it. See Sketch Geometry.

Overhead & Profit (O&P)

You can control O&P at two levels:
  • Row eligibility: overhead_profit_applicable on each line item.
  • Estimate rates: overhead_rate_percent and profit_rate_percent on the estimate, plus two optional settings that control how the rates are applied.

Row eligibility

overhead_profit_applicable: true keeps a row eligible for O&P even when its current price or overhead_profit amount is $0.00. For example, an unpriced item you plan to reprice in Xactimate stays eligible. false excludes the row from O&P. Eligibility does not price the item. Unpriced rows still export as custom $0.00 items. Choose the price list and reprice them in Xactimate as needed.

Estimate-level fields

Rules:
  • Supply both rates or neither. A single rate, a non-numeric value, or a value outside 0–100 is rejected with 422.
  • An explicit 0 / 0 is a rate policy. It is not the same as omitting both rates.
  • cumulative_overhead_profit: true and overhead_profit_basis: "before_tax" require both rates.
  • When rates are set, rows are eligible by default. Set overhead_profit_applicable: false to opt a row out.
  • When rates are omitted, the existing behavior is unchanged. O&P comes from each row’s supplied overhead_profit amount.
  • Rates and row eligibility are carried into both the Contractor and Carrier ESX files.

How O&P is calculated

For each eligible row, CapOut computes the row’s base, quantity × unit_price, and its O&P basis. Overhead is calculated and rounded to the cent first, then profit:
Examples with 10% overhead and 10% profit on a $100.00 row with $10.00 tax:

Supplied amounts must agree with the rates

When rates are set, you do not need to send overhead_profit or rcv. CapOut calculates them. If you do send them, they must match the calculation to the cent:
  • line_item_total must equal quantity × unit_price, rounded to the cent.
  • overhead_profit must equal the calculated O&P. An opted-out row must have $0.00 O&P.
  • rcv must equal base + tax + O&P.
  • A row with only rcv and no unit_price, line_item_total, or overhead_profit is rejected. Its base cannot be determined.
  • Money values must be zero or positive when rates are set.
Any mismatch returns 422 with the row number and the expected amount. Do not add a dollar amount just to make a row eligible. Use overhead_profit_applicable: true instead.

Export compatibility

With a rate policy, ESX export also checks that Xactimate’s native tax and O&P rules reproduce your amounts. Two cases can fail before the files are created, with the error code esx_overhead_profit_policy_unrepresentable:
  • Tax ordering conflicts with a bound price list or tax jurisdiction. The price_list or explicit tax_jurisdiction tax rules apply O&P either on top of tax or before tax. If they differ from your overhead_profit_basis on taxed rows, choose the matching basis, choose a matching tax_jurisdiction, or omit price_list.
  • Cent-rounding edge cases. Xactimate calculates tax and O&P from unrounded component costs, so very small rows can differ by a cent. For example, 10% / 10% after tax on a $0.14 base with $0.01 tax requests $0.04 O&P, but native rules produce $0.02. CapOut rejects the export rather than changing your prices or amounts.
Review the supplied amounts and overhead_profit_basis, then submit a corrected request.

JSON example

Non-cumulative 10% overhead plus 10% profit on a pre-tax basis. The first row receives $20.00 O&P and $120.00 RCV. The second row is opted out. The third row is unpriced but stays eligible at $0.00:

CSV example

For CSV uploads, send the estimate-level fields as a JSON string in the estimate_metadata form field. overhead_profit_applicable can be a CSV column:

Idempotency

The rate fields are part of the request’s idempotency identity. Reusing an Idempotency-Key with different rates, cumulative setting, or basis returns 409 Conflict. Requests that omit all four fields keep the same identity they had before these fields existed.

JSON Import (POST /upload/json)

Submit an application/json payload matching the StructuredEstimateV1 schema. To include a sketch in the same request, see Sketch Geometry.

JSON Request Example

The example includes 50 line items across nine rooms, using Cat/Sel codes, descriptions, different activities, and one disabled item.

Upload the JSON File

Test the example

Generate a test API key in CapOut Settings. Set CAPOUT_API_KEY to your capout_test_ key and use the upload request above with the public API at https://api.capout.ai.
Use the returned document_id to check processing status, then download the ESX files. You can also review the document in your normal CapOut dashboard. For this sample, expect 50 review rows across nine rooms, one disabled alternate, 49 active export rows, and a total of $29,479.35. Compare the review rows and generated export with these expected values.

Response (200 OK)


CSV Import (POST /upload/csv)

Upload a CSV file as multipart/form-data. CSV uploads don’t support sketch geometry.

CSV Format Requirements

  • Encoding: UTF-8 (optional BOM is automatically stripped).
  • Headers: Case-insensitive, supporting canonical names or common aliases (e.g. cat or category, qty or quantity, price or unit_price).
  • Booleans: Accepts true/false, 1/0, or yes/no (case-insensitive). Blank or omitted enabled defaults to true.
  • Rooms: Use the Room or Area column to group line items. If omitted, items default to "General".

Sample CSV File (estimate.csv)

cURL Example

Python Example


Estimate Header Metadata

All structured JSON uploads (POST /upload/json)—and CSV uploads via the estimate_metadata form field (POST /upload/csv)—support full estimate header metadata that carries into the generated Contractor and Carrier ESX files.

Property address

You can supply the property address in any of three ways:
  1. Single string (property_address): US and Canadian addresses are automatically split into Street, City, State/Province, ZIP/Postal, and Country (handling commas, line breaks, full state or province names, ZIP+4, Canadian postal codes, and optional trailing US/USA/CA/Canada). Unrecognized or international formats are preserved verbatim in Street without losing text.
  2. Separate fields: property_street, property_city, property_state, property_zip (alias property_postal), and property_country (2-letter code; defaults to "US", or inferred as "CA" from Canadian provinces and postal codes).
  3. Structured object (property_address in JSON): { "street": "...", "city": "...", "state": "...", "zip": "...", "country": "..." } (postal is also accepted inside the object).
Explicit separate property_* fields override components parsed from property_address. Supplying conflicting values for property_zip and property_postal returns 422. When an upload includes sketch geometry, the resolved address must form a US street, city, ST ZIP address (2-letter uppercase state and 5-digit or ZIP+4 code), whether supplied as a single string, separate fields, or an object.

Contacts

You may use either the nested object or the flat fields for estimator and claim_rep. If both are sent for the same field with different values, the request is rejected with 422.

Dates & type of loss

Date-only values and zone-less local timestamps are converted to UTC using the property’s US state or Canadian province timezone so Xactimate displays the intended local calendar date. Timestamps that already include Z or a UTC offset are preserved as given. Without a recognized US/CA state or province, date-only values default to 12:00:00Z.

Price list & tax jurisdiction

Header metadata JSON example


Field Reference & Aliases

Formula expressions (quantity_formula)

Any line item can carry an optional quantity_formula string alongside its required numeric quantity:
  • Supported syntax: arithmetic expressions using +, -, *, /, unary +/-, parentheses (), finite numbers, and any of the 12 interior sketch variables (including subroom-indexed forms such as F0, F1, W1, WC1). Single line, up to 200 characters. Functions such as round(), ceil(), or max() are not supported—arithmetic only. Division by zero and non-positive results are rejected.
  • Mutually exclusive with sketch_variable: when quantity_formula is set, sketch_link.sketch_variable must be omitted or null.
  • quantity is still required: it carries the positive evaluated number for validation, review, and pricing/O&P reconciliation.
  • Pure numeric formulas (such as "6*4+6*4" or "(12+4)*2"): work on any row, with or without a sketch or sketch_link, and in both fixed and sketch_formulas modes. quantity must agree with the formula’s evaluated result (within 0.02 or 0.5%, whichever is larger).
  • Variable-referencing formulas (such as "W*0.5", "PF*4", "F*1.1", or "F1+F2"): require sketch_link with both level_id and room_id. Under sketch_policies.quantity_mode: "sketch_formulas", they export as live sketch formulas (with pre-calculated quantities on direct-open exports for supported spaces); under fixed mode, the row exports its numeric quantity.
  • Cross-unit expressions are allowed: unlike sketch_link.sketch_variable, quantity_formula does not restrict the row’s unit to one variable’s unit—for example, "PF*4" on an SF drywall flood-cut row, or "F*1.1" on an SF flooring row for 10% waste.
  • Plans without sketch enabled: if an organization’s plan does not include sketch, sketch, sketch_policies, sketch_link, and variable-referencing quantity_formula expressions are stripped cleanly so the upload processes as a standard conversion, while pure numeric quantity_formula expressions and every row’s evaluated quantity are kept.

Sketch Geometry (Optional)

Add room geometry to a normal POST /upload/json request to include a sketch in your ESX files. There is no separate endpoint and nothing to select. CapOut reads the sketch object in your JSON and decides how to process and bill the upload. A request with no sketch fields is processed as usual. When a sketch is processed, the Contractor and Carrier ESX files both include:
  • Geometry: your levels, rooms (flat, sloped, and peaked ceilings, plus linked subrooms), staircases and landings, walls, doors, windows, and missing walls. Fixtures are labeled 2D heightless reference footprints, not native symbols or 3D objects, and do not deduct floor or wall area.
  • Line items: your current rows, including edits made in review, in their linked rooms or staircases. A row with no room link goes in an area named by its room, such as General, Exterior, or Contents. A row added in review goes in the room with the same name, if there is one.

How the sketch and rows open in Xactimate

Most sketch exports open in Xactimate with the sketch and the estimate already in place, with no measurement import. Your rows are ordinary estimate rows in their rooms:
  • Sections: each row’s section becomes a bold heading above its rows, wherever the section changes within a room or area.
  • Line numbers: rows are numbered from 1 with no gaps, starting with the rows that have no room. Labor minimums that Xactimate adds come after the last row.
  • Rows with no room: a row with no room link whose room is left out, or set to its default General, sits at the top of the estimate, above the rooms, rather than in an area of its own.
  • Named areas without geometry: a row with no room link that names another area in room, such as Exterior or Contents, goes in an area with that name. The area holds its rows and draws nothing on the sketch.
  • Prices: priced rows keep the prices you sent. If no row has a price, the rows open at $0.00. Reprice the estimate from your price list in Xactimate to fill them in. Repricing replaces every unit price, including prices you sent, except on bid items.
  • Bid items: a bid item, a row with selector BIDITM, keeps the price you sent when the estimate is repriced. You can price only your bid items and let Xactimate price the rest.
  • Pre-calculated formula quantities: with sketch_policies.quantity_mode: "sketch_formulas", direct-open exports pre-calculate exact inside-face quantities on open for supported spaces (flat, sloped, and peaked rooms, linked subrooms, and supported staircases—matching Xactimate’s own math) and keep live formulas so editing the sketch in Xactimate recalculates them. Spaces outside the supported calculation set keep their uploaded numeric quantity cleanly until recalculated in Xactimate.
  • Opening deductions: sketch_policies.deduct_doors and sketch_policies.deduct_windows apply on direct-open exports, deducting doors and/or windows from wall area (W, WC), floor perimeter (PF, for doors), and counting them in WOSFD.
A few uploads use a measurement import instead. The sketch and rows are in the ESX’s interior measurement data: in Xactimate, select your price list and import that measurement source, and Xactimate creates the rows. On this route, section headings aren’t carried, Xactimate may number its labor minimums between your rows, rows with no room link attach to the estimate as a whole rather than to a named area, and deduct_doors / deduct_windows flags cannot be carried. These uploads use the measurement import:
  • Some rows priced, others not: repricing would replace the prices you sent, and the measurement import keeps them. This doesn’t apply when the only priced rows are bid items (selector BIDITM).
  • Staircases and fixtures on the same level.
  • Fixtures on other levels or inside subrooms: fixtures in a sketch with three or more levels, with two levels when the first level has no fixtures, or placed inside a linked subroom.
  • Room and level names: the same room name on two levels, or room names on different levels that start with the same 12 characters, such as Living Room East and Living Room West. The same applies to two level names, such as Second Floor East and Second Floor West.
  • Some fixture footprints, depending on the order of their points.
You can tell the two apart in Xactimate: a file that opens with the sketch in place used the direct-open route, and a file whose sketch you import from its measurement data used the measurement import. CapOut validates your geometry and the structure of the generated file, but it does not open the file in Xactimate. Review the sketch, rooms, and quantities after opening it.

Plan requirement

Sketch requires a pricing tier that includes it. Pro with Sketch is $499/month for 15 conversions. If you have a custom agreement, contact us about sketch. If your plan doesn’t include sketch, a valid upload still succeeds. CapOut cleanly strips sketch, sketch_policies, sketch_link, and any variable-referencing quantity_formula expressions while keeping pure numeric quantity_formula expressions and every row’s evaluated quantity. Your line items are processed and billed as a standard conversion, the sketch is not processed, and the response says so. An invalid sketch is rejected on every plan.

Upload requirements

These rules apply when sketch contains room or staircase geometry. They are stricter than a plain JSON upload. Use the canonical field names shown here rather than aliases. Estimate fields Line items

Sketch field reference

Coordinates are in feet. x increases to the right and y increases downward. Each level has its own origin. Every field below is required unless it says otherwise, and unknown fields are rejected. Use [] for an empty array and null where a value doesn’t apply. sketch sketch.levels[] Each level must have at least one room or staircase. A level is a single rectangular room when it has one flat-ceiling room whose outline is four corner points forming a rectangle with horizontal and vertical sides, all of its walls have the same thickness, and it has no staircases, no missing_wall openings, and no fixtures. It has its own rules for wall order and door defaults, noted below. Every other level follows the same rules as a level with two or more rooms—including a one-room level with a sloped or peaked ceiling, a non-rectangular shape, a staircase, a missing wall, a fixture, or walls of different thickness. levels[].rooms[] rooms[].measurements All ten values are checked against the outline, within 0.02. Send enough decimals to stay within that tolerance. For rooms with ceiling_type: "sloped" or "peaked", ceiling_sf, gross_wall_sf, net_wall_sf, and volume_cf accept either the exact sloped/peaked centerline values or the flat baseline values computed at ceiling_height_ft.

Sloped and peaked ceilings

Set ceiling_type on a room to "sloped" or "peaked" and supply the matching ceiling object. ceiling_height_ft is the low wall (base eave) height. rooms[].sloped_ceiling (when ceiling_type: "sloped") rooms[].peaked_ceiling (when ceiling_type: "peaked") Other ceiling shapes (tray, dome, barrel, coffered) are not supported.

Linked subrooms

To attach alcoves, closets, or bay windows to a parent room on the same level, set main_room_id on the subroom to the parent room’s id and optionally set subroom_number (1–99).
  • No separate estimate group: linked subrooms do not get their own room group in Xactimate. Link line items to the parent room (sketch_link.room_id = parent’s id, room = parent’s name). Linking a row directly to a subroom’s id is rejected with 422.
  • Bare vs. indexed variables: bare variables (F, W, WC, PF, etc.) sum the parent room plus all of its linked subrooms. Indexed variables (F0, W0 for the parent room alone; F1, W1, WC1, SY2, WOSFD1, etc. by subroom_number) target an individual part across all 12 interior variables in both sketch_variable and quantity_formula.
  • Nesting: only one level of linking is allowed (main_room_id must reference a top-level room, not another subroom).

Staircases

Add optional levels[].staircases[] objects to model stair flights and landings (including linked flight + landing groups). Every staircase outline edge needs a matching entry in levels[].walls[], just like rooms. Staircases do not have holes or measurements objects. levels[].staircases[] Staircase quantity and variable limits:
  • Pre-calculated quantities: rectangular staircases and linked landings whose walls use full, missing, or missing_above_stairs get exact pre-calculated sketch quantities on direct-open exports (and live recalculation in Xactimate).
  • Uploaded numeric fallback on open: staircases with partial walls, stair flights with thick (thickness_ft > 0) missing_above_stairs end walls, non-rectangular/winder staircases, and rooms touching a missing_above_stairs or partial stair wall still export with their live formulas but keep their uploaded numeric quantity until recalculated in Xactimate.
  • Bare variables only: subroom-indexed variables (F1, W1, V1, etc.) are not supported on linked staircase sub-blocks. Link line items to the parent staircase and use bare variables (F, W, C, PF, V, etc.) for the combined flight + landing total.
levels[].walls[] A wall shared by two rooms is listed once with both rooms, and both outlines must use the same two corner points with identical coordinates. Round a shared corner the same way in both rooms. For a single rectangular room, list the walls in outline order and direction, so the first wall runs from the first outline point to the second. On any other level, walls can be listed in any order and in either direction. Where a straight side has a corner point along it, each piece is its own wall, and an opening has to fit on one piece. Put a corner point wherever another room’s wall meets the side. If the side is shared with another room, put the same point in that room’s outline too, so that each shared piece is one wall listed with both rooms. CapOut doesn’t always reject a side that lacks such a point. When each room lists its own walls along the side, the upload is accepted, and those walls are exported as separate, overlapping walls. Walls on a level can have different thicknesses, for example outside walls thicker than partitions. Where two walls of different thickness meet end to end and carry on in almost the same direction, bending by less than about 10 degrees, they must lie on exactly the same line, or the upload is rejected. On an angled line, rounding usually moves the corner between them off the line, so send that corner and the walls’ other ends with eight or more decimals, or give the two walls the same thickness. The straight-line rule doesn’t apply where the two walls cross other walls, with at least one other wall leaving that corner on each side of their line, or when either of them is a missing wall for its whole length. A sharper bend is an ordinary corner, and the thicknesses can differ there. Just past 10 degrees, though, a short wall beside a much thicker one can still be rejected, because their inside faces meet beyond the short wall’s end. Give those two walls the same thickness. levels[].openings[] These fields depend on type: Sill height plus opening height can’t exceed the ceiling height. On a wall between two rooms, that’s the lower of the two ceilings. A sliding or overhead door is exported as that door type. A double door is exported as one standard door of the same width, and the warnings in the response’s sketch notice say so. Set it as a double door in Xactimate after import. A missing_wall can span its whole wall or part of it. Either way, it can’t join rooms with different ceiling heights.
  • Whole wall: use an offset of 0 and the wall’s length as width_ft. It can’t share that wall with another opening. On an angled wall, round its width_ft to four or more decimals, and the opening uses the wall’s exact length.
  • Part of a wall: the wall stays in place with an opening in it. The opening must stay at least this far from each end of its wall:
    • 0.1667 ft (2 in) where the wall only carries on in a straight line, or where it meets a whole-wall missing wall at a right angle.
    • Half the thickness of the wall it meets plus 0.1667 ft where another wall meets it at a right angle, at a corner or a T-junction.
    • A different distance at any other angle, and more at a sharper corner.
    If more than one wall meets that end, the largest distance applies. If the opening is too close, the error message gives the distance needed at each end. To open a wall all the way to a corner, split that side into separate walls and make the open piece a whole-wall missing wall.
levels[].fixtures[] x, y, width_ft, and depth_ft describe the fixture and aren’t checked against footprint. The footprint is the area that’s exported. Not supported These are rejected or unsupported: room holes (holes must be []), curved walls, tray/dome/barrel/coffered ceilings, roofs and roof variables, self-intersecting outlines, overlapping rooms, door subtypes other than pedestrian, double, sliding, and overhead, 3D fixture heights or fixture deductions (height_ft must be null), and file attachments (photos/PDFs—include external URLs in f9_note instead). Limits Every id across levels, rooms, staircases, walls, openings, fixtures, and rows must be unique. document, label:<room id>, sloped-ceiling:<room id>, peaked-ceiling:<room id>, and <level id>:vertex:<number> are reserved.

Extensions

extensions is optional when top-level O&P rates are supplied. Any omitted keys default to null.

Sketch policies

sketch_policies is optional, and so is each of its fields. deduct_doors and deduct_windows apply on direct-open exports. An export that falls back to the measurement import (such as a partly priced upload) cannot carry door or window deduction flags. If you send door_policies or level_placements, include an entry for every door or level, with all of its fields:
  • Door policy: hinge_end (start is the only supported value), swing_side (left or right), and swing_room_id (one of the door’s room_ids).
  • Level placement: elevation_ft, offset_x_ft, and offset_y_ft, each within ±10,000 ft. Each level needs a different elevation_ft.
This is the explicit form of the defaults for a single-level sketch:
line_items[].sketch_link connects a row to a sketch room or staircase. It is an object or null. A room-linked row sets both level_id and room_id and uses the linked room’s or staircase’s name as its room. A row with no room link sets all three values to null, or sets sketch_link to null. Its room names an area without geometry, such as General, Exterior, or Contents. It can’t be a sketch room’s name: a row that names a sketch room needs that room’s link, and is rejected without it. The response lists every area other than General in warnings, so you can catch a misspelled room name.

Interior sketch variables

When sketch_policies.quantity_mode is "sketch_formulas", all 12 interior sketch variables are supported on room- and staircase-linked rows. When using sketch_link.sketch_variable, the row’s unit must match the variable’s required unit (or use quantity_formula for cross-unit expressions such as "PF*4" on an SF row). Subroom-indexed variables: on a main room that has linked subrooms, every variable above also supports indexed forms in both sketch_variable and quantity_formula:
  • Bare variable (e.g. F, W, WC, PF): sums the parent room plus all linked subrooms.
  • 0 suffix (e.g. F0, W0, SY0): parent room alone.
  • 1–99 suffix (e.g. F1, W1, WC1, SY2, WOSFD1): the linked subroom with that subroom_number (no leading zeros like F01).
  • Indexed variables are rejected on standalone rooms with no linked subrooms and are not supported on staircase sub-blocks (on linked staircases, use bare variables for the combined flight + landing total).
{V} surface placeholder expansion: when sketch_link.sketch_variable is F, W, C, or WC (including indexed forms such as F0, W1, C1, WC1), CapOut expands {V} in the row’s description—both for explicit descriptions containing {V} and for code-only (cat/sel) rows whose catalog wording contains {V}: Rows with other variables (PF, V, SY, WOLF, etc.) or no sketch_variable keep their description text unchanged.

Complete sketch example

One 12 ft by 10 ft room with an 8 ft ceiling, one door, one window, four room rows using sketch_formulas (W with {V} expansion, cross-unit quantity_formula: "PF*4", PF, and F), door/window deductions enabled, and one roof row in General. All names and prices are fictional:
The centerline measurements follow from the outline: floor is 12 × 10 = 120 SF, perimeter is 44 LF, gross wall area is 44 × 8 = 352 SF, the 3 × 7 door and 3 × 4 window remove 33 SF for 319 SF of net wall, and the door leaves 41 LF of baseboard. With quantity_mode: "sketch_formulas" and deduct_doors / deduct_windows enabled, the direct-open export pre-calculates exact inside-face quantities (11.5 ft × 9.5 ft inside the 0.5 ft walls): row-1 expands {V} to Paint the walls - two coats with W = 303 SF, row-2 evaluates PF*4 = 156 SF, row-3 evaluates PF = 39 LF, and row-4 evaluates F = 109.25 SF—all while keeping live formulas in Xactimate. row-5 has no room link, so it sits at the top of the estimate. Upload it like any other JSON estimate.

Sketch notice in the response

An upload with sketch fields returns a sketch notice in the normal upload response, and a retry with the same Idempotency-Key returns it too. A plain JSON upload gets no notice: sketch is null or absent, and the rest of the response is unchanged. Clean valid sketch uploads return empty warnings and limitations arrays and proceed directly on the CapOut web dashboard without a blocking confirmation modal. Warnings appear only for genuine exceptions to review—such as named estimate areas with no matching sketch room, double doors exported as standard doors, or a missing-wall net-wall discrepancy.
Branch on status and reason_code. The wording of message, warnings, and limitations can change. For example, the notice for a valid sketch on a plan that doesn’t include sketch:

Sketch errors

An invalid sketch rejects the whole upload with 422. No document is created and nothing is charged. The rejection doesn’t use up your Idempotency-Key, so you can correct the request and retry with the same key. In the rare case that an upload passes this check and then fails the same check once it has started, the key is used up, and a retry with it returns 409. Use a new key for that retry.
Each entry in errors has a code and message, plus a path and entity_id that locate the problem when they apply. Codes start with SKETCH_. These cases have their own codes:

How sketch uploads are billed

Billing follows what your JSON contains. You don’t choose a conversion type.
  • What counts as geometry: at least one room or staircase whose outline has three or more points. Empty containers and ordinary measurements don’t count, including row quantities, room labels, a room’s measurements, and the sketch.geometry text.
  • One unit per conversion: each conversion is one unit, however many rooms or line items it has, and it covers both the Contractor and Carrier ESX files. On a plan with a claim balance it uses one claim, like any other conversion.
  • Successful conversions only: you are billed once, when a conversion succeeds. If a sketch can’t be exported, the export fails with esx_sketch_export_failed rather than producing a file without the sketch, and you aren’t charged. GET /status/{document_id} returns that code in error_code, and the ESX URLs return 409 with ESX_EXPORT_FAILED.
  • No double charges: repeat downloads don’t charge again, and neither do retries with the same Idempotency-Key.

Sketch limitations

  • Measurement-import fallback: when an upload uses the measurement import, section, unit, per-row O&P settings, deduct_doors/deduct_windows flags, and row tax, depreciation, and age values aren’t carried into its rows. O&P rates still apply at the estimate level. On either route, check row tax, depreciation, and age values in Xactimate after opening.
  • Pre-calculated quantities and staircase exceptions: in sketch_formulas mode, direct-open exports pre-calculate inside-face quantities on open for supported spaces and preserve live formulas. Staircases with partial walls, stair flights with thick missing_above_stairs end walls, non-rectangular/winder stairs, and rooms touching missing_above_stairs or partial stair walls keep their uploaded numeric quantity until recalculated in Xactimate. Indexed variables (F1, W1, etc.) are not supported on staircase sub-blocks—use bare variables on the parent staircase.
  • Fixtures: fixtures remain heightless 2D reference footprints (height_ft must be null). They do not deduct floor area (F) or wall area (W), and are not exported as 3D objects or native fixture symbols.
  • Attachments: photos, PDFs, and other file attachments are not yet supported in JSON uploads. Include external URLs in a row’s f9_note if you need to keep references alongside line items.
  • Unsupported geometry: room holes, curved walls, tray/dome/barrel/coffered ceilings, and roof geometry / roof sketch variables are not supported.
  • Measurement basis: outlines and rooms[].measurements use wall centerlines, so areas inside the wall faces are smaller. fixed quantities aren’t resized to match; sketch_formulas quantities use inside-face math matching Xactimate.
  • Multiple levels: when level_placements is omitted on a multi-level sketch, CapOut stacks levels at (0, 0) starting at elevation_ft: 0 (each spaced by its tallest ceiling height plus 1 ft). Send explicit level_placements for every level whenever horizontal alignment or custom elevations matter.
  • Door defaults: without a door_policies entry, a door uses the defaults in Sketch policies. On every level except a single rectangular room, swing_side must be the side of the wall that the swing room is on, looking from the wall’s start to its end on the plan. If the default doesn’t meet that rule, CapOut uses the door’s other listed room when it’s on the stated side, and otherwise uses the side the room is on. A door_policies entry you send isn’t adjusted, so one that breaks the rule is rejected. A single rectangular room isn’t checked against the rule and keeps the door’s swing as given. A rectangular one-room level with a sloped/peaked ceiling, a staircase, a missing wall, a fixture, or walls of different thickness isn’t a single rectangular room, so the rule applies to it. Source swing isn’t physical door handing, so set door_policies when handing matters.
  • Price list: price_list sets the target price list code on the estimate, but doesn’t install a price list in Xactimate. Select and verify it there, and reprice an unpriced estimate after opening it.
  • CSV: POST /upload/csv doesn’t support sketch. Sending sketch in estimate_metadata returns 422 with SKETCH_NOT_SUPPORTED_FOR_CSV.

Idempotency Support

Both endpoints support the optional Idempotency-Key header:
  • If a request is retried with the same idempotency key and identical payload, CapOut returns the existing document_id and download links.
  • If the same key is reused with a different payload, CapOut returns 409 Conflict.
  • sketch, extensions, sketch_policies, and sketch_link are part of the request’s identity when present. Requests that omit them keep the same identity they had before these fields existed.
  • A request rejected as an invalid sketch doesn’t use up its key, so a corrected request can reuse it.

Xactimate and XactNet are trademarks or registered trademarks of Xactware Solutions, Inc., a Verisk business.