POST /upload/json: structured JSON estimate payload.POST /upload/csv: multipart CSV file.
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’sline_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.00item. 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 itemdescription. A pair you provide is sent to Xactimate exactly as given, with yourunit, 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 yourunitcan 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(oractive: 0). Disabled items are retained in review but excluded from ESX calculations and export totals. - Paid When Incurred:
enabledcontrols 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_applicableflag 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_applicableon each line item. - Estimate rates:
overhead_rate_percentandprofit_rate_percenton 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/0is a rate policy. It is not the same as omitting both rates. cumulative_overhead_profit: trueandoverhead_profit_basis: "before_tax"require both rates.- When rates are set, rows are eligible by default. Set
overhead_profit_applicable: falseto opt a row out. - When rates are omitted, the existing behavior is unchanged. O&P comes from each row’s supplied
overhead_profitamount. - 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:
$100.00 row with $10.00 tax:
Supplied amounts must agree with the rates
When rates are set, you do not need to sendoverhead_profit or rcv. CapOut calculates them. If you do send them, they must match the calculation to the cent:
line_item_totalmust equalquantity × unit_price, rounded to the cent.overhead_profitmust equal the calculated O&P. An opted-out row must have$0.00O&P.rcvmust equalbase + tax + O&P.- A row with only
rcvand nounit_price,line_item_total, oroverhead_profitis rejected. Its base cannot be determined. - Money values must be zero or positive when rates are set.
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 codeesx_overhead_profit_policy_unrepresentable:
- Tax ordering conflicts with a bound price list or tax jurisdiction. The
price_listor explicittax_jurisdictiontax rules apply O&P either on top of tax or before tax. If they differ from youroverhead_profit_basison taxed rows, choose the matching basis, choose a matchingtax_jurisdiction, or omitprice_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.14base with$0.01tax requests$0.04O&P, but native rules produce$0.02. CapOut rejects the export rather than changing your prices or amounts.
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 theestimate_metadata form field. overhead_profit_applicable can be a CSV column:
Idempotency
The rate fields are part of the request’s idempotency identity. Reusing anIdempotency-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
Upload the JSON File
Test the example
Generate a test API key in CapOut Settings. SetCAPOUT_API_KEY to your capout_test_ key and use the upload request above with the public API at https://api.capout.ai.
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.
catorcategory,qtyorquantity,priceorunit_price). - Booleans: Accepts
true/false,1/0, oryes/no(case-insensitive). Blank or omittedenableddefaults totrue. - Rooms: Use the
RoomorAreacolumn 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:- 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 trailingUS/USA/CA/Canada). Unrecognized or international formats are preserved verbatim in Street without losing text. - Separate fields:
property_street,property_city,property_state,property_zip(aliasproperty_postal), andproperty_country(2-letter code; defaults to"US", or inferred as"CA"from Canadian provinces and postal codes). - Structured object (
property_addressin JSON):{ "street": "...", "city": "...", "state": "...", "zip": "...", "country": "..." }(postalis also accepted inside the object).
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 asF0,F1,W1,WC1). Single line, up to 200 characters. Functions such asround(),ceil(), ormax()are not supported—arithmetic only. Division by zero and non-positive results are rejected. - Mutually exclusive with
sketch_variable: whenquantity_formulais set,sketch_link.sketch_variablemust be omitted ornull. quantityis 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 orsketch_link, and in bothfixedandsketch_formulasmodes.quantitymust agree with the formula’s evaluated result (within0.02or0.5%, whichever is larger). - Variable-referencing formulas (such as
"W*0.5","PF*4","F*1.1", or"F1+F2"): requiresketch_linkwith bothlevel_idandroom_id. Undersketch_policies.quantity_mode: "sketch_formulas", they export as live sketch formulas (with pre-calculated quantities on direct-open exports for supported spaces); underfixedmode, the row exports its numericquantity. - Cross-unit expressions are allowed: unlike
sketch_link.sketch_variable,quantity_formuladoes not restrict the row’sunitto one variable’s unit—for example,"PF*4"on anSFdrywall flood-cut row, or"F*1.1"on anSFflooring row for 10% waste. - Plans without sketch enabled: if an organization’s plan does not include sketch,
sketch,sketch_policies,sketch_link, and variable-referencingquantity_formulaexpressions are stripped cleanly so the upload processes as a standard conversion, while pure numericquantity_formulaexpressions and every row’s evaluatedquantityare kept.
Sketch Geometry (Optional)
Add room geometry to a normalPOST /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 asGeneral,Exterior, orContents. 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
sectionbecomes 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
roomis left out, or set to its defaultGeneral, 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 asExteriororContents, 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 numericquantitycleanly until recalculated in Xactimate. - Opening deductions:
sketch_policies.deduct_doorsandsketch_policies.deduct_windowsapply on direct-open exports, deducting doors and/or windows from wall area (W,WC), floor perimeter (PF, for doors), and counting them inWOSFD.
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 EastandLiving Room West. The same applies to two level names, such asSecond Floor EastandSecond Floor West. - Some fixture footprints, depending on the order of their points.
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 stripssketch, 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 whensketch 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
Setceiling_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, setmain_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’sid,room= parent’sname). Linking a row directly to a subroom’sidis rejected with422. - Bare vs. indexed variables: bare variables (
F,W,WC,PF, etc.) sum the parent room plus all of its linked subrooms. Indexed variables (F0,W0for the parent room alone;F1,W1,WC1,SY2,WOSFD1, etc. bysubroom_number) target an individual part across all 12 interior variables in bothsketch_variableandquantity_formula. - Nesting: only one level of linking is allowed (
main_room_idmust reference a top-level room, not another subroom).
Staircases
Add optionallevels[].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, ormissing_above_stairsget exact pre-calculated sketch quantities on direct-open exports (and live recalculation in Xactimate). - Uploaded numeric fallback on open: staircases with
partialwalls, stair flights with thick (thickness_ft > 0)missing_above_stairsend walls, non-rectangular/winder staircases, and rooms touching amissing_above_stairsorpartialstair wall still export with their live formulas but keep their uploaded numericquantityuntil 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
0and the wall’s length aswidth_ft. It can’t share that wall with another opening. On an angled wall, round itswidth_ftto 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.1667ft (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.1667ft 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.
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(startis the only supported value),swing_side(leftorright), andswing_room_id(one of the door’sroom_ids). - Level placement:
elevation_ft,offset_x_ft, andoffset_y_ft, each within ±10,000 ft. Each level needs a differentelevation_ft.
Sketch links
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
Whensketch_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. 0suffix (e.g.F0,W0,SY0): parent room alone.1–99suffix (e.g.F1,W1,WC1,SY2,WOSFD1): the linked subroom with thatsubroom_number(no leading zeros likeF01).- 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 usingsketch_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:
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 asketch 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 with422. 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.
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
outlinehas three or more points. Empty containers and ordinary measurements don’t count, including row quantities,roomlabels, a room’smeasurements, and thesketch.geometrytext. - 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_failedrather than producing a file without the sketch, and you aren’t charged.GET /status/{document_id}returns that code inerror_code, and the ESX URLs return409withESX_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_windowsflags, 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_formulasmode, direct-open exports pre-calculate inside-face quantities on open for supported spaces and preserve live formulas. Staircases withpartialwalls, stair flights with thickmissing_above_stairsend walls, non-rectangular/winder stairs, and rooms touchingmissing_above_stairsorpartialstair walls keep their uploaded numericquantityuntil 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_ftmust benull). 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_noteif 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[].measurementsuse wall centerlines, so areas inside the wall faces are smaller.fixedquantities aren’t resized to match;sketch_formulasquantities use inside-face math matching Xactimate. - Multiple levels: when
level_placementsis omitted on a multi-level sketch, CapOut stacks levels at(0, 0)starting atelevation_ft: 0(each spaced by its tallest ceiling height plus 1 ft). Send explicitlevel_placementsfor every level whenever horizontal alignment or custom elevations matter. - Door defaults: without a
door_policiesentry, a door uses the defaults in Sketch policies. On every level except a single rectangular room,swing_sidemust be the side of the wall that the swing room is on, looking from the wall’sstartto itsendon 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. Adoor_policiesentry 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’sswingas 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 setdoor_policieswhen handing matters. - Price list:
price_listsets 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/csvdoesn’t support sketch. Sendingsketchinestimate_metadatareturns422withSKETCH_NOT_SUPPORTED_FOR_CSV.
Idempotency Support
Both endpoints support the optionalIdempotency-Key header:
- If a request is retried with the same idempotency key and identical payload, CapOut returns the existing
document_idand download links. - If the same key is reused with a different payload, CapOut returns
409 Conflict. sketch,extensions,sketch_policies, andsketch_linkare 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.