Checks the roof, sends it to the export provider to be built, and records the export. The
answer comes before the build finishes: 202 with the export, usually status: processing,
and its warnings. Poll GET /v1/esx-exports/{id} until it is ready, then ask for the file
with POST /v1/esx-exports/{id}/download. Sending a roof is not charged; asking for its ESX
is, whether or not it has warnings, so look at clean and major_warnings first.
Refused only for a critical problem. The request’s shape is validated first, then the
roof checks run, whether or not you checked the roof with POST /v1/esx-exports/checks. A
badly shaped request, or a roof with a critical problem (severity: error), answers
422 validation_failed and nothing is recorded. For a roof problem, errors lists every
problem found, critical or not, each with its pointer, check, severity and detail.
A critical problem can stop the later checks on its structure, so check again after
correcting it. Every other problem is a warning: the ESX is built anyway, and the export
lists each warning and what OSA did about it.
One export per reference. Within the key’s environment (test or live), a reference
you have already used fails with 409 duplicate_export, which names the existing export.
Send a corrected roof to that export with POST /v1/esx-exports/{id}/versions.
If the export provider is unavailable. The answer is 503 export_provider_unavailable:
nothing was created or charged. Send the same request again, with the same
Idempotency-Key.
Test keys. An export sent with an osa_test_ key is a test export (test: true),
built on a test system and never charged. A key sees only exports of its own environment.
Retries.Idempotency-Key is required. Retrying the same request (same method, path
and body) with the same key within 24 hours returns the same status code with the export’s
current state, and creates nothing new. The same key with a different request fails with
422 idempotency_key_reused.
Send your API key as a bearer token: Authorization: Bearer osa_live_….
Keys are opaque; each belongs to exactly one partner. Keys starting with osa_test_
reach only test claims and test accounts. The scopes listed on each operation are the
permissions the key needs. A key's permissions are set when it is issued and can be
changed by OSA on request, never beyond what your plan and add-ons include.
GET /v1/me always shows the current set.
Scopes
esx-exports:create
Headers
Idempotency-Key
string
required
A unique value your system generates for each operation, such as a UUID. Reuse the same
value only when retrying the same request. The key is matched with a fingerprint of the
whole request: method, path and body. For 24 hours, a retry of the same request with the
same key returns the same status code with the resource's current state, and creates
nothing new; the same key with a different request fails with
422 idempotency_key_reused.
Required string length: 1 - 255
Body
application/json
The roof, the property it is on, and your own id for the order.
A roof to build into an ESX, with the property it belongs to. The check call takes the
same body.
reference
string
required
Your own id for the order. One export per reference, in the key's environment (test
or live): a second export with a reference you have already used is refused with
409 duplicate_export; send a corrected roof as a new version of the existing
export instead. Returned on the export, never changed. No leading or trailing
whitespace.
Required string length: 1 - 100
Pattern: ^\S(.*\S)?$
Example:
"ORDER-1042"
input
object
required
A roof, in OSA's roof format version 1 (osa-roof/1): one or more roofs as seen from above,
with enough to build each in three dimensions. You are responsible for the roof being
right. OSA checks it: a roof that cannot be built is refused with exact reasons, and any
other problem is a warning, with the roof built anyway. Lengths and areas are not sent: OSA
works them out from the points and the faces' pitches. Ids everywhere are 1 to 64 letters,
digits, -, _ or ., unique within their list; problems name them.
The carrier's claim number, when there is one. Returned on the export. No leading or
trailing whitespace.
Required string length: 1 - 100
Pattern: ^\S(.*\S)?$
Example:
"FL-2026-0091832"
end_user
object
Who in your system asked for the export, for your own records. Send at least one of
id and email. Returned on the export as sent.
Show child attributes
metadata
object
Your own key-value pairs, returned on the export as sent. Up to 20 keys, each 1 to 40
characters of a to z, 0 to 9 and _; each value text of up to 200 characters.
Show child attributes
Example:
{ "branch": "north", "job_type": "reroof" }
Response
The roof was sent to the export provider and recorded. The export is usually processing;
if the provider refused the file outright, it is already failed with reason
build_refused. A retry with the same Idempotency-Key returns 202 again with the
export's current state, which by then may be processing, ready or failed.
An export: the roof you sent, on its way to becoming an ESX. warnings, major_warnings,
minor_warnings, clean, provider_messages and failure describe the latest version
only; version says which.
id
string<uuid>
required
OSA's id for the export.
reference
string
required
Your own id for the order.
test
boolean
required
true for a test export, one sent with a test key: built on a test system and never
charged. The value never changes. A key sees only exports of its own environment, so
the field matters only if you store exports from both keys.
status
enum<string>
required
processing: received and on its way through the build. ready: the ESX can be
asked for. failed: not built; failure says why. Open list: new values may be
added; treat an unknown value as processing.
Available options:
processing,
ready,
failed
failure
object | null
required
Why the latest version was not built. null unless status is failed.
Show child attributes
clean
boolean
required
true when the latest version has no warnings.
major_warnings
integer
required
The exact number of major warnings on the latest version.
Required range: x >= 0
minor_warnings
integer
required
The exact number of minor warnings on the latest version.
Required range: x >= 0
warnings
object[]
required
The latest version's warnings, each with its severity and what OSA did about it. At
most 100; the two counts are exact. When there are more than 100, it holds the
major ones first, then the minor ones, in check order. Never contains a problem of
severity error.
Maximum array length: 100
Show child attributes
provider_messages
string[]
required
What the export provider said about the latest version's file when it took it.
Usually empty. Free text for people, in the export provider's own words, which may
name the provider's products; do not parse it. It does not affect clean.
version
integer
required
The version of the roof the export is built from. 1 until you send a corrected roof.
Required range: x >= 1
created_at
string<date-time>
required
When the export was created.
updated_at
string<date-time>
required
When the export last changed: it moves when the export is created, when its status
changes, when a new version is accepted, and when its ESX is first asked for. This is
the field updated_since filters on.
ready_at
string<date-time> | null
required
When the latest version became ready; null until then.
first_downloaded_at
string<date-time> | null
required
When the ESX was first asked for; null until then.
claim_number
string | null
required
The carrier's claim number, as you sent it; null if you sent none.
end_user
object | null
required
Who in your system asked for the export, as you sent it; null if you sent none.
Show child attributes
metadata
object
required
Your own key-value pairs, as you sent them; empty if you sent none.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"One Stop Adjuster","description":"Send claims to adjusters in the OSA app and follow their acceptance.","colors":{"primary":"#01729D","light":"#63C3DB","dark":"#1D3F5A"},"logo":{"light":"https://mintcdn.com/onestopadjuster/LWybYtOm0TEXmFtz/logo/light.svg?fit=max\u0026auto=format\u0026n=LWybYtOm0TEXmFtz\u0026q=85\u0026s=251d9f975a12c805ed521778fe92ea6f","dark":"https://mintcdn.com/onestopadjuster/X8t_lmMUP8DGRu_Y/logo/dark.svg?fit=max\u0026auto=format\u0026n=X8t_lmMUP8DGRu_Y\u0026q=85\u0026s=55f377735a2930a1a30cec4b2e2dd62c"},"favicon":{"light":"https://mintcdn.com/onestopadjuster/V40fJbs4szg8aRVk/images/general_no_background.png?fit=max\u0026auto=format\u0026n=V40fJbs4szg8aRVk\u0026q=85\u0026s=df53d8afe5af1b5844b56fdcb2ef3fa3","dark":"https://mintcdn.com/onestopadjuster/V40fJbs4szg8aRVk/images/general_no_background.png?fit=max\u0026auto=format\u0026n=V40fJbs4szg8aRVk\u0026q=85\u0026s=df53d8afe5af1b5844b56fdcb2ef3fa3"},"api":{"playground":{"display":"interactive"}},"footer":{"socials":{"website":"https://www.osaconnection.com"}},"fonts":{"heading":{"family":"Roboto"}},"styling":{"codeblocks":"system","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"onestopadjuster","hasAudioNarration":false,"actualSubdomain":"onestopadjuster","customDomains":["docs.osaconnection.com"],"gitSource":{"type":"github","owner":"isenbj","repo":"osa-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b1102129ffae5051c41e44d"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0d1d2d313c97d7e3079ad7","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Guides","count":25},{"language":"default","tag":"API reference","count":15},{"language":"default","tag":"ESX exports","count":10},{"language":"default","tag":"Claims","count":4},{"language":"default","tag":"Members","count":3},{"language":"default","tag":"Account","count":2},{"language":"default","tag":"Get started","count":2},{"language":"default","tag":"Updates","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx","slug":"/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx","pageMetadata":{"title":"Send a roof to be built into an ESX","openapi":"POST /v1/esx-exports","description":"Checks the roof, sends it to the export provider to be built, and records the export. The\nanswer comes before the build finishes: `202` with the export, usually `status: processing`,\nand its warnings. Poll `GET /v1/esx-exports/{id}` until it is `ready`, then ask for the file\nwith `POST /v1/esx-exports/{id}/download`. Sending a roof is not charged; asking for its ESX\nis, whether or not it has warnings, so look at `clean` and `major_warnings` first.\n\n**Refused only for a critical problem.** The request's shape is validated first, then the\nroof checks run, whether or not you checked the roof with `POST /v1/esx-exports/checks`. A\nbadly shaped request, or a roof with a critical problem (`severity: error`), answers\n`422 validation_failed` and nothing is recorded. For a roof problem, `errors` lists every\nproblem found, critical or not, each with its `pointer`, `check`, `severity` and `detail`.\nA critical problem can stop the later checks on its structure, so check again after\ncorrecting it. Every other problem is a warning: the ESX is built anyway, and the export\nlists each warning and what OSA did about it.\n\n**One export per reference.** Within the key's environment (test or live), a `reference`\nyou have already used fails with `409 duplicate_export`, which names the existing export.\nSend a corrected roof to that export with `POST /v1/esx-exports/{id}/versions`.\n\n**If the export provider is unavailable.** The answer is `503 export_provider_unavailable`:\nnothing was created or charged. Send the same request again, with the same\n`Idempotency-Key`.\n\n**Test keys.** An export sent with an `osa_test_` key is a test export (`test: true`),\nbuilt on a test system and never charged. A key sees only exports of its own environment.\n\n**Retries.** `Idempotency-Key` is required. Retrying the same request (same method, path\nand body) with the same key within 24 hours returns the same status code with the export's\ncurrent state, and creates nothing new. The same key with a different request fails with\n`422 idempotency_key_reused`.\n","href":"/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Checks the roof, sends it to the export provider to be built, and records the export. The\\nanswer comes before the build finishes: \", _jsx(_components.code, {\n children: \"202\"\n }), \" with the export, usually \", _jsx(_components.code, {\n children: \"status: processing\"\n }), \",\\nand its warnings. Poll \", _jsx(_components.code, {\n children: \"GET /v1/esx-exports/{id}\"\n }), \" until it is \", _jsx(_components.code, {\n children: \"ready\"\n }), \", then ask for the file\\nwith \", _jsx(_components.code, {\n children: \"POST /v1/esx-exports/{id}/download\"\n }), \". Sending a roof is not charged; asking for its ESX\\nis, whether or not it has warnings, so look at \", _jsx(_components.code, {\n children: \"clean\"\n }), \" and \", _jsx(_components.code, {\n children: \"major_warnings\"\n }), \" first.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Refused only for a critical problem.\"\n }), \" The request’s shape is validated first, then the\\nroof checks run, whether or not you checked the roof with \", _jsx(_components.code, {\n children: \"POST /v1/esx-exports/checks\"\n }), \". A\\nbadly shaped request, or a roof with a critical problem (\", _jsx(_components.code, {\n children: \"severity: error\"\n }), \"), answers\\n\", _jsx(_components.code, {\n children: \"422 validation_failed\"\n }), \" and nothing is recorded. For a roof problem, \", _jsx(_components.code, {\n children: \"errors\"\n }), \" lists every\\nproblem found, critical or not, each with its \", _jsx(_components.code, {\n children: \"pointer\"\n }), \", \", _jsx(_components.code, {\n children: \"check\"\n }), \", \", _jsx(_components.code, {\n children: \"severity\"\n }), \" and \", _jsx(_components.code, {\n children: \"detail\"\n }), \".\\nA critical problem can stop the later checks on its structure, so check again after\\ncorrecting it. Every other problem is a warning: the ESX is built anyway, and the export\\nlists each warning and what OSA did about it.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"One export per reference.\"\n }), \" Within the key’s environment (test or live), a \", _jsx(_components.code, {\n children: \"reference\"\n }), \"\\nyou have already used fails with \", _jsx(_components.code, {\n children: \"409 duplicate_export\"\n }), \", which names the existing export.\\nSend a corrected roof to that export with \", _jsx(_components.code, {\n children: \"POST /v1/esx-exports/{id}/versions\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"If the export provider is unavailable.\"\n }), \" The answer is \", _jsx(_components.code, {\n children: \"503 export_provider_unavailable\"\n }), \":\\nnothing was created or charged. Send the same request again, with the same\\n\", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Test keys.\"\n }), \" An export sent with an \", _jsx(_components.code, {\n children: \"osa_test_\"\n }), \" key is a test export (\", _jsx(_components.code, {\n children: \"test: true\"\n }), \"),\\nbuilt on a test system and never charged. A key sees only exports of its own environment.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Retries.\"\n }), \" \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" is required. Retrying the same request (same method, path\\nand body) with the same key within 24 hours returns the same status code with the export’s\\ncurrent state, and creates nothing new. The same key with a different request fails with\\n\", _jsx(_components.code, {\n children: \"422 idempotency_key_reused\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Send a roof to be built into an ESX","openapi":"POST /v1/esx-exports","description":"Checks the roof, sends it to the export provider to be built, and records the export. The\nanswer comes before the build finishes: `202` with the export, usually `status: processing`,\nand its warnings. Poll `GET /v1/esx-exports/{id}` until it is `ready`, then ask for the file\nwith `POST /v1/esx-exports/{id}/download`. Sending a roof is not charged; asking for its ESX\nis, whether or not it has warnings, so look at `clean` and `major_warnings` first.\n\n**Refused only for a critical problem.** The request's shape is validated first, then the\nroof checks run, whether or not you checked the roof with `POST /v1/esx-exports/checks`. A\nbadly shaped request, or a roof with a critical problem (`severity: error`), answers\n`422 validation_failed` and nothing is recorded. For a roof problem, `errors` lists every\nproblem found, critical or not, each with its `pointer`, `check`, `severity` and `detail`.\nA critical problem can stop the later checks on its structure, so check again after\ncorrecting it. Every other problem is a warning: the ESX is built anyway, and the export\nlists each warning and what OSA did about it.\n\n**One export per reference.** Within the key's environment (test or live), a `reference`\nyou have already used fails with `409 duplicate_export`, which names the existing export.\nSend a corrected roof to that export with `POST /v1/esx-exports/{id}/versions`.\n\n**If the export provider is unavailable.** The answer is `503 export_provider_unavailable`:\nnothing was created or charged. Send the same request again, with the same\n`Idempotency-Key`.\n\n**Test keys.** An export sent with an `osa_test_` key is a test export (`test: true`),\nbuilt on a test system and never charged. A key sees only exports of its own environment.\n\n**Retries.** `Idempotency-Key` is required. Retrying the same request (same method, path\nand body) with the same key within 24 hours returns the same status code with the export's\ncurrent state, and creates nothing new. The same key with a different request fails with\n`422 idempotency_key_reused`.\n","href":"/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["ESX exports"],"operationId":"createEsxExport","summary":"Send a roof to be built into an ESX","description":"Checks the roof, sends it to the export provider to be built, and records the export. The\nanswer comes before the build finishes: `202` with the export, usually `status: processing`,\nand its warnings. Poll `GET /v1/esx-exports/{id}` until it is `ready`, then ask for the file\nwith `POST /v1/esx-exports/{id}/download`. Sending a roof is not charged; asking for its ESX\nis, whether or not it has warnings, so look at `clean` and `major_warnings` first.\n\n**Refused only for a critical problem.** The request's shape is validated first, then the\nroof checks run, whether or not you checked the roof with `POST /v1/esx-exports/checks`. A\nbadly shaped request, or a roof with a critical problem (`severity: error`), answers\n`422 validation_failed` and nothing is recorded. For a roof problem, `errors` lists every\nproblem found, critical or not, each with its `pointer`, `check`, `severity` and `detail`.\nA critical problem can stop the later checks on its structure, so check again after\ncorrecting it. Every other problem is a warning: the ESX is built anyway, and the export\nlists each warning and what OSA did about it.\n\n**One export per reference.** Within the key's environment (test or live), a `reference`\nyou have already used fails with `409 duplicate_export`, which names the existing export.\nSend a corrected roof to that export with `POST /v1/esx-exports/{id}/versions`.\n\n**If the export provider is unavailable.** The answer is `503 export_provider_unavailable`:\nnothing was created or charged. Send the same request again, with the same\n`Idempotency-Key`.\n\n**Test keys.** An export sent with an `osa_test_` key is a test export (`test: true`),\nbuilt on a test system and never charged. A key sees only exports of its own environment.\n\n**Retries.** `Idempotency-Key` is required. Retrying the same request (same method, path\nand body) with the same key within 24 hours returns the same status code with the export's\ncurrent state, and creates nothing new. The same key with a different request fails with\n`422 idempotency_key_reused`.\n","security":["9b781e2e-5e0e-429f-9213-466c560b5271"],"parameters":["62794957-3799-4b2d-b1f2-d9c011783679"],"requestBody":"2a502dea-2780-4e86-8906-a4cd47c3516d","responses":{"202":"02c44c8e-7bbb-4774-b061-b23d3361499b","400":"44be13b3-d266-4256-a4c7-5fbee3dee2e6","401":"cc279896-61fe-488b-a929-52e9f3d22f9b","403":"e4a94e33-acdc-4226-b0dd-73e8d7885f00","409":"da10eb3f-26ad-45ba-a25f-5b3b687a5b01","413":"9551f731-b8b6-4c1f-a959-98d6873fe6c4","422":"06b1cc3f-4091-4b80-9ce8-380b4564dd16","429":"19779cea-feb7-4462-b33b-def05c633341","500":"6484bf8d-04f2-482e-8a28-008766115a81","503":"702f7cc8-442c-4bd9-b50d-5c8ed3ad9ea2"},"method":"post","type":"path","servers":["b67ade9b-36f1-4418-bc39-53e2c9b9ca47"],"path":"/v1/esx-exports","baseUrlOptions":["https://api.osaconnection.com"],"title":"Send a roof to be built into an ESX","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"62794957-3799-4b2d-b1f2-d9c011783679":{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique value your system generates for each operation, such as a UUID. Reuse the same\nvalue only when retrying the same request. The key is matched with a fingerprint of the\nwhole request: method, path and body. For 24 hours, a retry of the same request with the\nsame key returns the same status code with the resource's current state, and creates\nnothing new; the same key with a different request fails with\n`422 idempotency_key_reused`.\n","schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"description":"A unique value your system generates for each operation, such as a UUID. Reuse the same\nvalue only when retrying the same request. The key is matched with a fingerprint of the\nwhole request: method, path and body. For 24 hours, a retry of the same request with the\nsame key returns the same status code with the resource's current state, and creates\nnothing new; the same key with a different request fails with\n`422 idempotency_key_reused`.\n","uniqueKey":"","typeLabel":"string"},"examples":{"uuid":{"summary":"A UUID per operation","value":"7c4e2b9a-1f3d-4e8a-b6c5-0d9e8f7a6b5c"}}}},"requestBody":{"required":true,"description":"The roof, the property it is on, and your own id for the order.","content":{"application/json":{"schema":{"type":"object","description":"A roof to build into an ESX, with the property it belongs to. The check call takes the\nsame body.\n","additionalProperties":false,"required":["reference","input","property"],"properties":{"reference":{"type":"string","minLength":1,"maxLength":100,"pattern":"^\\S(.*\\S)?$","description":"Your own id for the order. One export per reference, in the key's environment (test\nor live): a second export with a reference you have already used is refused with\n`409 duplicate_export`; send a corrected roof as a new version of the existing\nexport instead. Returned on the export, never changed. No leading or trailing\nwhitespace.\n","examples":["ORDER-1042"],"isRequired":true,"uniqueKey":"reference","typeLabel":"string"},"input":{"type":"object","description":"A roof, in OSA's roof format version 1 (`osa-roof/1`): one or more roofs as seen from above,\nwith enough to build each in three dimensions. You are responsible for the roof being\nright. OSA checks it: a roof that cannot be built is refused with exact reasons, and any\nother problem is a warning, with the roof built anyway. Lengths and areas are not sent: OSA\nworks them out from the points and the faces' pitches. Ids everywhere are 1 to 64 letters,\ndigits, `-`, `_` or `.`, unique within their list; problems name them.\n","additionalProperties":false,"required":["type","format","plan","structures"],"properties":{"type":{"type":"string","description":"What the input describes. Always `roof`.","enum":["roof"],"isRequired":true,"uniqueKey":"input.type","typeLabel":"enum\u003cstring>"},"format":{"type":"string","description":"The format and version of the input. Always `osa-roof/1`.","enum":["osa-roof/1"],"isRequired":true,"uniqueKey":"input.format","typeLabel":"enum\u003cstring>"},"plan":{"type":"object","description":"How to read every `x` and `y` in the roof. Heights are always in feet, whatever the plan\nunits; fields that carry a height end in `_ft`. The origin can be anywhere: OSA moves it\nto the middle of each structure.\n","additionalProperties":false,"required":["units","y_axis"],"properties":{"units":{"type":"string","description":"`ft`: `x` and `y` are feet. `px`: `x` and `y` are pixels of an image, and\n`feet_per_pixel` is required.\n","enum":["ft","px"],"isRequired":true,"uniqueKey":"input.plan.units","typeLabel":"enum\u003cstring>"},"y_axis":{"type":"string","description":"`up`: `y` grows upward on the drawing, as on a map. `down`: `y` grows downward, as\nin an image.\n","enum":["up","down"],"isRequired":true,"uniqueKey":"input.plan.y_axis","typeLabel":"enum\u003cstring>"},"feet_per_pixel":{"type":"number","description":"Horizontal (plan) feet per pixel, one scale for the whole plan. Required when `units`\nis `px`, and not allowed otherwise; a roof that breaks this has a critical problem of\ncheck 1 and is refused. More than 0, at most 10.\n","exclusiveMinimum":0,"maximum":10,"uniqueKey":"input.plan.feet_per_pixel","typeLabel":"number"},"north_deg":{"type":"number","description":"The compass direction the top of the drawing faces, in degrees clockwise from north:\nat least 0, less than 360. Leave it out for 0, which means the top of the drawing is\nnorth, as in most aerial imagery.\n","minimum":0,"exclusiveMaximum":360,"uniqueKey":"input.plan.north_deg","typeLabel":"number"}},"isRequired":true,"uniqueKey":"input.plan","typeLabel":"object"},"structures":{"type":"array","description":"The separate buildings, such as a house and a detached garage. Each is a roof that\ntouches no other structure's roof. Most roofs have one. At most 10.\n","minItems":1,"maxItems":10,"items":{"type":"object","description":"One building's roof: its corners (`points`), the lines between them (`edges`) and its\nflat surfaces (`faces`). Give heights one way per structure: none at all (the roof is\nbuilt with its lowest eave at 0 ft, so Xactimate gets a correctly shaped roof but no\nheight above the ground), `eave_height_ft` on faces (recommended: at least one face of\neach section of roof, where a section is a group of faces that share points), or `z_ft`\non every point.\n","additionalProperties":false,"required":["id","points","edges","faces"],"properties":{"id":{"type":"string","description":"Your name for the structure, unique in the roof.","pattern":"^[A-Za-z0-9._-]{1,64}$","examples":["house"],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].id","typeLabel":"string"},"points":{"type":"array","description":"Every corner of the roof as seen from above. At least 3, at most 1,000.","minItems":3,"maxItems":1000,"items":{"type":"object","description":"A corner of the roof as seen from above. A point is one place in three dimensions: where\ntwo parts of a roof pass over the same spot at different heights, such as a porch roof\nmeeting the wall below a higher eave, that spot needs two points, one for each roof.\n","additionalProperties":false,"required":["id","x","y"],"properties":{"id":{"type":"string","description":"The point's id, unique in the structure.","pattern":"^[A-Za-z0-9._-]{1,64}$","examples":["a"],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].points.items.[INDEX].id","typeLabel":"string"},"x":{"type":"number","description":"Position across the drawing, in plan units.","isRequired":true,"uniqueKey":"input.structures.items.[INDEX].points.items.[INDEX].x","typeLabel":"number"},"y":{"type":"number","description":"Position along the drawing, in plan units, in the direction `y_axis` gives.","isRequired":true,"uniqueKey":"input.structures.items.[INDEX].points.items.[INDEX].y","typeLabel":"number"},"z_ft":{"type":"number","description":"Height above the ground, in feet, from -50 to 300. Either every point in the\nstructure has one or none does; a structure with some has a critical problem of\ncheck 1 and is refused. With a height on every point, each point is built as you gave\nit; a face that is then not flat or does not match its pitch is a check 5 warning.\nNothing is averaged in that case.\n","minimum":-50,"maximum":300,"uniqueKey":"input.structures.items.[INDEX].points.items.[INDEX].z_ft","typeLabel":"number"}},"uniqueKey":"input.structures.items.[INDEX].points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].points","typeLabel":"object[]"},"edges":{"type":"array","description":"Every line between two points that bounds a face. At least 3, at most 2,000.","minItems":3,"maxItems":2000,"items":{"type":"object","description":"A line between two points that bounds a face. Lengths are not sent: OSA works out each\nedge's true length from the points and the faces' pitches.\n","additionalProperties":false,"required":["id","from","to","type"],"properties":{"id":{"type":"string","description":"The edge's id, unique in the structure.","pattern":"^[A-Za-z0-9._-]{1,64}$","examples":["eave-s"],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].edges.items.[INDEX].id","typeLabel":"string"},"from":{"type":"string","description":"The id of one of the edge's two points. Order does not matter.","pattern":"^[A-Za-z0-9._-]{1,64}$","examples":["a"],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].edges.items.[INDEX].from","typeLabel":"string"},"to":{"type":"string","description":"The id of the edge's other point, different from `from`.","pattern":"^[A-Za-z0-9._-]{1,64}$","examples":["b"],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].edges.items.[INDEX].to","typeLabel":"string"},"type":{"type":"string","description":"What the edge is. `eave`: the low, level edge of a face, where water runs off.\n`rake`: the sloped outer edge at a gable end. `ridge`: where two faces meet at the\ntop. `hip`: where two faces meet at an outward corner, sloping down. `valley`: where\ntwo faces meet at an inward corner, sloping down. `apron_flashing`: where the top of\na face meets a wall that rises above it (also called headwall). `step_flashing`:\nwhere the side of a face runs along a wall that rises beside it (also called\nsidewall). `pitch_break`: where a face changes pitch without a ridge, as on a\ngambrel or mansard roof. `unclassified`: an edge whose kind is not known; allowed,\nbut it adds nothing to the estimate.\n","enum":["eave","rake","ridge","hip","valley","apron_flashing","step_flashing","pitch_break","unclassified"],"examples":["eave"],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].edges.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"overhang_ft":{"type":"number","description":"How far the roof overhangs the wall, in feet, from 0 to 10. Only on an `eave` or a\n`rake`; on any other edge it is a critical problem of check 1, and the roof is\nrefused.\n","minimum":0,"maximum":10,"uniqueKey":"input.structures.items.[INDEX].edges.items.[INDEX].overhang_ft","typeLabel":"number"}},"uniqueKey":"input.structures.items.[INDEX].edges.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].edges","typeLabel":"object[]"},"faces":{"type":"array","description":"Every flat surface of the roof. At least 1, at most 300.","minItems":1,"maxItems":300,"items":{"type":"object","description":"A flat surface of the roof. Every point of a face should lie on one plane: the plane its\npitch, slope direction and height give it. A face slopes down toward its `eave` edges,\nat right angles to them; all of a face's eaves should be parallel and on the same side\nof it. A face with eaves on opposite sides is built sloping toward its longest group of\neaves, with a warning. Areas are not sent: OSA works out each face's true area.\n","additionalProperties":false,"required":["id","edges","pitch"],"properties":{"id":{"type":"string","description":"The face's id, unique in the structure.","pattern":"^[A-Za-z0-9._-]{1,64}$","examples":["south"],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].faces.items.[INDEX].id","typeLabel":"string"},"edges":{"type":"array","description":"The ids of the edges around the face, in order around it, at least 3 and at most\n200. Each consecutive pair shares a point and the last joins the first.\n","minItems":3,"maxItems":200,"items":{"type":"string","description":"An edge id in the structure.","pattern":"^[A-Za-z0-9._-]{1,64}$","uniqueKey":"input.structures.items.[INDEX].faces.items.[INDEX].edges.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].faces.items.[INDEX].edges","typeLabel":"string[]"},"pitch":{"type":"number","description":"Rise in inches per 12 inches of run, as a number: `6` for 6/12, `6.5` for 6.5/12,\n`0` for flat. At most 24.\n","minimum":0,"maximum":24,"examples":[6],"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].faces.items.[INDEX].pitch","typeLabel":"number"},"eave_height_ft":{"type":"number","description":"Height above the ground of the face's eave edges, in feet, from -50 to 300. Faces\nthat share a ridge, hip or valley take their heights from each other, so one face per\nsection of roof is enough. Where two faces both carry one, they should agree with\nthe geometry; where faces disagree on a shared point's height by more than 1 inch,\nthe point is built at their average, with a warning.\n","minimum":-50,"maximum":300,"examples":[9],"uniqueKey":"input.structures.items.[INDEX].faces.items.[INDEX].eave_height_ft","typeLabel":"number"},"low_edge":{"type":"string","description":"The id of the edge the face slopes down toward. Should be sent when the face has no\n`eave` edge and a pitch above 0, such as the upper face of a gambrel above its\n`pitch_break`. Without it the face is built from the faces around it, with a major\nwarning.\n","pattern":"^[A-Za-z0-9._-]{1,64}$","uniqueKey":"input.structures.items.[INDEX].faces.items.[INDEX].low_edge","typeLabel":"string"}},"uniqueKey":"input.structures.items.[INDEX].faces.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"input.structures.items.[INDEX].faces","typeLabel":"object[]"},"name":{"type":"string","description":"A label, such as \"Detached garage\".","minLength":1,"maxLength":100,"examples":["Detached garage"],"uniqueKey":"input.structures.items.[INDEX].name","typeLabel":"string"},"features":{"type":"object","description":"Counts of things on the structure's roof that the estimate needs and the drawing does not\nshow. Each is a whole number from 1 to 100,000; leave out what is not there, and leave\nout `features` if nothing is. They apply to the structure's whole roof; they cannot be\nplaced on one face.\n","additionalProperties":false,"minProperties":1,"properties":{"pipe_jack_vents":{"type":"integer","description":"Plumbing vent pipes.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.pipe_jack_vents","typeLabel":"integer"},"exhaust_vents":{"type":"integer","description":"Exhaust vents.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.exhaust_vents","typeLabel":"integer"},"attic_vents":{"type":"integer","description":"Attic vents.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.attic_vents","typeLabel":"integer"},"reflective_tubes":{"type":"integer","description":"Tubular skylights.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.reflective_tubes","typeLabel":"integer"},"satellite_dishes":{"type":"integer","description":"Satellite dishes.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.satellite_dishes","typeLabel":"integer"},"ac_units":{"type":"integer","description":"Air conditioning units on the roof.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.ac_units","typeLabel":"integer"},"skylights":{"type":"integer","description":"Skylights.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.skylights","typeLabel":"integer"},"roofing_panels":{"type":"integer","description":"Roofing panels.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.roofing_panels","typeLabel":"integer"},"gutter_ft":{"type":"integer","description":"Gutter, in whole feet.","minimum":1,"maximum":100000,"uniqueKey":"input.structures.items.[INDEX].features.gutter_ft","typeLabel":"integer"}},"uniqueKey":"input.structures.items.[INDEX].features","typeLabel":"object"}},"uniqueKey":"input.structures.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"input.structures","typeLabel":"object[]"}},"examples":[{"type":"roof","format":"osa-roof/1","plan":{"units":"ft","y_axis":"up","north_deg":0},"structures":[{"id":"house","points":[{"id":"a","x":-20,"y":-15},{"id":"b","x":20,"y":-15},{"id":"c","x":20,"y":15},{"id":"d","x":-20,"y":15},{"id":"e","x":-20,"y":0},{"id":"f","x":20,"y":0}],"edges":[{"id":"eave-s","from":"a","to":"b","type":"eave"},{"id":"eave-n","from":"c","to":"d","type":"eave"},{"id":"ridge","from":"e","to":"f","type":"ridge"},{"id":"rake-sw","from":"a","to":"e","type":"rake"},{"id":"rake-se","from":"b","to":"f","type":"rake"},{"id":"rake-ne","from":"c","to":"f","type":"rake"},{"id":"rake-nw","from":"d","to":"e","type":"rake"}],"faces":[{"id":"south","edges":["eave-s","rake-se","ridge","rake-sw"],"pitch":6,"eave_height_ft":9},{"id":"north","edges":["eave-n","rake-nw","ridge","rake-ne"],"pitch":6,"eave_height_ft":9}]}]}],"isRequired":true,"uniqueKey":"input","typeLabel":"object"},"property":{"type":"object","description":"The property the roof is on.","additionalProperties":false,"required":["street","city","state","zip","lat","lon"],"properties":{"street":{"type":"string","minLength":1,"maxLength":100,"description":"Street address, including any unit number.","examples":["740 Canyon View Drive"],"isRequired":true,"uniqueKey":"property.street","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":60,"description":"City.","examples":["Lehi"],"isRequired":true,"uniqueKey":"property.city","typeLabel":"string"},"state":{"type":"string","description":"Two-letter USPS code: the 50 states, `DC`, and the US territories `AS` (American Samoa),\n`GU` (Guam), `MP` (Northern Mariana Islands), `PR` (Puerto Rico) and `VI` (US Virgin\nIslands).\n","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","AS","GU","MP","PR","VI"],"examples":["FL"],"isRequired":true,"uniqueKey":"property.state","typeLabel":"enum\u003cstring>"},"zip":{"type":"string","description":"Five-digit ZIP code, optionally ZIP+4.","pattern":"^\\d{5}(-\\d{4})?$","examples":["33606","33606-1234"],"isRequired":true,"uniqueKey":"property.zip","typeLabel":"string"},"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude of the property, in degrees.","examples":[40.4358],"isRequired":true,"uniqueKey":"property.lat","typeLabel":"number"},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the property, in degrees.","examples":[-111.8683],"isRequired":true,"uniqueKey":"property.lon","typeLabel":"number"}},"isRequired":true,"uniqueKey":"property","typeLabel":"object"},"claim_number":{"type":"string","minLength":1,"maxLength":100,"pattern":"^\\S(.*\\S)?$","description":"The carrier's claim number, when there is one. Returned on the export. No leading or\ntrailing whitespace.\n","examples":["FL-2026-0091832"],"uniqueKey":"claim_number","typeLabel":"string"},"end_user":{"type":"object","description":"Who in your system asked for the export, for your own records. Send at least one of\n`id` and `email`. Returned on the export as sent.\n","additionalProperties":false,"minProperties":1,"properties":{"id":{"type":"string","minLength":1,"maxLength":100,"description":"Your own id for the user.","uniqueKey":"end_user.id","typeLabel":"string"},"email":{"type":"string","format":"email","maxLength":255,"description":"An email address.","examples":["maria.delgado@example.com"],"uniqueKey":"end_user.email","typeLabel":"string\u003cemail>"}},"uniqueKey":"end_user","typeLabel":"object"},"metadata":{"type":"object","description":"Your own key-value pairs, returned on the export as sent. Up to 20 keys, each 1 to 40\ncharacters of `a` to `z`, `0` to `9` and `_`; each value text of up to 200 characters.\n","maxProperties":20,"propertyNames":{"pattern":"^[a-z0-9_]{1,40}$"},"additionalProperties":{"type":"string","maxLength":200,"uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"examples":[{"branch":"north","job_type":"reroof"}],"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"minimal":{"title":"minimal","summary":"Only the required fields","value":{"reference":"ORDER-1042","input":{"type":"roof","format":"osa-roof/1","plan":{"units":"ft","y_axis":"up","north_deg":0},"structures":[{"id":"house","points":[{"id":"a","x":-20,"y":-15},{"id":"b","x":20,"y":-15},{"id":"c","x":20,"y":15},{"id":"d","x":-20,"y":15},{"id":"e","x":-20,"y":0},{"id":"f","x":20,"y":0}],"edges":[{"id":"eave-s","from":"a","to":"b","type":"eave"},{"id":"eave-n","from":"c","to":"d","type":"eave"},{"id":"ridge","from":"e","to":"f","type":"ridge"},{"id":"rake-sw","from":"a","to":"e","type":"rake"},{"id":"rake-se","from":"b","to":"f","type":"rake"},{"id":"rake-ne","from":"c","to":"f","type":"rake"},{"id":"rake-nw","from":"d","to":"e","type":"rake"}],"faces":[{"id":"south","edges":["eave-s","rake-se","ridge","rake-sw"],"pitch":6,"eave_height_ft":9},{"id":"north","edges":["eave-n","rake-nw","ridge","rake-ne"],"pitch":6,"eave_height_ft":9}]}]},"property":{"street":"740 Canyon View Drive","city":"Lehi","state":"UT","zip":"84043","lat":40.4358,"lon":-111.8683}}},"full":{"title":"full","summary":"With a claim number, the user who asked and your own metadata","value":{"reference":"ORDER-1042","input":{"type":"roof","format":"osa-roof/1","plan":{"units":"ft","y_axis":"up","north_deg":0},"structures":[{"id":"house","points":[{"id":"a","x":-20,"y":-15},{"id":"b","x":20,"y":-15},{"id":"c","x":20,"y":15},{"id":"d","x":-20,"y":15},{"id":"e","x":-20,"y":0},{"id":"f","x":20,"y":0}],"edges":[{"id":"eave-s","from":"a","to":"b","type":"eave"},{"id":"eave-n","from":"c","to":"d","type":"eave"},{"id":"ridge","from":"e","to":"f","type":"ridge"},{"id":"rake-sw","from":"a","to":"e","type":"rake"},{"id":"rake-se","from":"b","to":"f","type":"rake"},{"id":"rake-ne","from":"c","to":"f","type":"rake"},{"id":"rake-nw","from":"d","to":"e","type":"rake"}],"faces":[{"id":"south","edges":["eave-s","rake-se","ridge","rake-sw"],"pitch":6,"eave_height_ft":9},{"id":"north","edges":["eave-n","rake-nw","ridge","rake-ne"],"pitch":6,"eave_height_ft":9}]}]},"property":{"street":"740 Canyon View Drive","city":"Lehi","state":"UT","zip":"84043","lat":40.4358,"lon":-111.8683},"claim_number":"FL-2026-0091832","end_user":{"id":"user-5521","email":"estimator@example.com"},"metadata":{"branch":"north","job_type":"reroof"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"02c44c8e-7bbb-4774-b061-b23d3361499b":{"description":"The roof was sent to the export provider and recorded. The export is usually `processing`;\nif the provider refused the file outright, it is already `failed` with reason\n`build_refused`. A retry with the same `Idempotency-Key` returns `202` again with the\nexport's current state, which by then may be `processing`, `ready` or `failed`.\n","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/json":{"schema":{"type":"object","description":"An export: the roof you sent, on its way to becoming an ESX. `warnings`, `major_warnings`,\n`minor_warnings`, `clean`, `provider_messages` and `failure` describe the latest version\nonly; `version` says which.\n","required":["id","reference","test","status","failure","clean","major_warnings","minor_warnings","warnings","provider_messages","version","created_at","updated_at","ready_at","first_downloaded_at","claim_number","end_user","metadata"],"properties":{"id":{"type":"string","format":"uuid","description":"OSA's id for the export.","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"reference":{"type":"string","description":"Your own id for the order.","isRequired":true,"uniqueKey":"reference","typeLabel":"string"},"test":{"type":"boolean","description":"`true` for a test export, one sent with a test key: built on a test system and never\ncharged. The value never changes. A key sees only exports of its own environment, so\nthe field matters only if you store exports from both keys.\n","isRequired":true,"uniqueKey":"test","typeLabel":"boolean"},"status":{"type":"string","description":"`processing`: received and on its way through the build. `ready`: the ESX can be\nasked for. `failed`: not built; `failure` says why. Open list: new values may be\nadded; treat an unknown value as `processing`.\n","enum":["processing","ready","failed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"failure":{"oneOf":[{"type":"object","description":"Why the latest version was not built. `null` unless `status` is `failed`.\n","required":["reason","detail"],"properties":{"reason":{"type":"string","description":"`build_refused`: the export provider refused the file; correct the roof and send a new\nversion. `build_failed`: the provider took the file and could not build it, or a\ncorrected version could not be sent to it; send a new version, or contact OSA.\n`build_timeout`: not ready 10 minutes after it was sent, once the export provider\nconfirms the build has not finished; send the same roof as a new version. Open list: new\nvalues may be added; treat an unknown value as `build_failed`.\n","enum":["build_refused","build_failed","build_timeout"],"isRequired":true,"uniqueKey":"failure.oneOf.0.reason","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What happened: free text for people, not for parsing; use `reason`. For\n`build_refused`, it is in the export provider's own words, which may name the\nprovider's products.\n","isRequired":true,"uniqueKey":"failure.oneOf.0.detail","typeLabel":"string"}},"isRequired":true,"uniqueKey":"failure.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the latest version was not built. `null` unless `status` is `failed`.\n","required":["reason","detail"],"properties":{"reason":{"type":"string","description":"`build_refused`: the export provider refused the file; correct the roof and send a new\nversion. `build_failed`: the provider took the file and could not build it, or a\ncorrected version could not be sent to it; send a new version, or contact OSA.\n`build_timeout`: not ready 10 minutes after it was sent, once the export provider\nconfirms the build has not finished; send the same roof as a new version. Open list: new\nvalues may be added; treat an unknown value as `build_failed`.\n","enum":["build_refused","build_failed","build_timeout"]},"detail":{"type":"string","description":"What happened: free text for people, not for parsing; use `reason`. For\n`build_refused`, it is in the export provider's own words, which may name the\nprovider's products.\n"}},"isRequired":true,"uniqueKey":"failure.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"failure","typeLabel":"object | null"},"clean":{"type":"boolean","description":"`true` when the latest version has no warnings.","isRequired":true,"uniqueKey":"clean","typeLabel":"boolean"},"major_warnings":{"type":"integer","minimum":0,"description":"The exact number of `major` warnings on the latest version.","isRequired":true,"uniqueKey":"major_warnings","typeLabel":"integer"},"minor_warnings":{"type":"integer","minimum":0,"description":"The exact number of `minor` warnings on the latest version.","isRequired":true,"uniqueKey":"minor_warnings","typeLabel":"integer"},"warnings":{"type":"array","description":"The latest version's warnings, each with its severity and what OSA did about it. At\nmost 100; the two counts are exact. When there are more than 100, it holds the\n`major` ones first, then the `minor` ones, in check order. Never contains a problem of\nseverity `error`.\n","maxItems":100,"items":{"type":"object","description":"One problem with a roof: where it is, which check found it, how serious it is and what\nit means. The same shape in the check call's answer and an export's `warnings`.\n","required":["pointer","check","severity","detail"],"properties":{"pointer":{"type":"string","description":"JSON Pointer to the place in the request, for example `/input/structures/0/faces/8`.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].pointer","typeLabel":"string"},"check":{"type":"integer","minimum":1,"description":"The number of the check that found the problem: 1, the request matches the roof\nformat; 2, edges and faces refer to things that exist and faces close; 3, how edges\nsit on faces; 4, eaves and slope direction; 5, heights where faces meet; 6, heights\ngiven for every section; 7, the property's ZIP and location. More checks may be\nadded.\n","isRequired":true,"uniqueKey":"warnings.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"`error`: critical, the roof cannot be built and is refused. `major` and `minor`:\nwarnings; the roof is built and `detail` says what OSA did. Open list: new values\nmay be added; treat an unknown value as `major`.\n","enum":["error","major","minor"],"isRequired":true,"uniqueKey":"warnings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What is wrong, naming your own ids, and for a warning what OSA did about it.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].detail","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"provider_messages":{"type":"array","description":"What the export provider said about the latest version's file when it took it.\nUsually empty. Free text for people, in the export provider's own words, which may\nname the provider's products; do not parse it. It does not affect `clean`.\n","items":{"type":"string","uniqueKey":"provider_messages.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"provider_messages","typeLabel":"string[]"},"version":{"type":"integer","minimum":1,"description":"The version of the roof the export is built from. `1` until you send a corrected roof.","isRequired":true,"uniqueKey":"version","typeLabel":"integer"},"created_at":{"type":"string","format":"date-time","description":"When the export was created.","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the export last changed: it moves when the export is created, when its `status`\nchanges, when a new version is accepted, and when its ESX is first asked for. This is\nthe field `updated_since` filters on.\n","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"ready_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the latest version became `ready`; `null` until then.","isRequired":true,"uniqueKey":"ready_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the latest version became `ready`; `null` until then.","isRequired":true,"uniqueKey":"ready_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"ready_at","typeLabel":"string\u003cdate-time> | null"},"first_downloaded_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the ESX was first asked for; `null` until then.","isRequired":true,"uniqueKey":"first_downloaded_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the ESX was first asked for; `null` until then.","isRequired":true,"uniqueKey":"first_downloaded_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"first_downloaded_at","typeLabel":"string\u003cdate-time> | null"},"claim_number":{"oneOf":[{"type":"string","description":"The carrier's claim number, as you sent it; `null` if you sent none.","isRequired":true,"uniqueKey":"claim_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"The carrier's claim number, as you sent it; `null` if you sent none.","isRequired":true,"uniqueKey":"claim_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"claim_number","typeLabel":"string | null"},"end_user":{"oneOf":[{"type":"object","description":"Who in your system asked for the export, as you sent it; `null` if you sent none.","properties":{"id":{"type":"string","description":"Your own id for the user.","uniqueKey":"end_user.oneOf.0.id","typeLabel":"string"},"email":{"type":"string","description":"The user's email address.","uniqueKey":"end_user.oneOf.0.email","typeLabel":"string"}},"isRequired":true,"uniqueKey":"end_user.oneOf.0","typeLabel":"object"},{"type":"null","description":"Who in your system asked for the export, as you sent it; `null` if you sent none.","properties":{"id":{"type":"string","description":"Your own id for the user."},"email":{"type":"string","description":"The user's email address."}},"isRequired":true,"uniqueKey":"end_user.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"end_user","typeLabel":"object | null"},"metadata":{"type":"object","description":"Your own key-value pairs, as you sent them; empty if you sent none.","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"clean":{"title":"clean","summary":"Received, with no warnings","value":{"id":"3f0c8a6e-5b1d-4c0e-9a77-2f6d1e4b8c90","reference":"ORDER-1042","test":false,"status":"processing","failure":null,"clean":true,"major_warnings":0,"minor_warnings":0,"warnings":[],"provider_messages":[],"version":1,"created_at":"2026-12-01T15:42:10Z","updated_at":"2026-12-01T15:42:13Z","ready_at":null,"first_downloaded_at":null,"claim_number":null,"end_user":null,"metadata":{}}},"warning":{"title":"warning","summary":"Received, to be built with a warning","value":{"id":"3f0c8a6e-5b1d-4c0e-9a77-2f6d1e4b8c90","reference":"ORDER-1042","test":false,"status":"processing","failure":null,"clean":false,"major_warnings":0,"minor_warnings":1,"warnings":[{"pointer":"/input/structures/0/points/4","check":5,"severity":"minor","detail":"point `e`, the faces that meet there put it at different heights (1.7 in apart); built at their average, 16 ft 6.9 in"}],"provider_messages":[],"version":1,"created_at":"2026-12-01T15:42:10Z","updated_at":"2026-12-01T15:42:13Z","ready_at":null,"first_downloaded_at":null,"claim_number":"FL-2026-0091832","end_user":{"id":"user-5521","email":"estimator@example.com"},"metadata":{"branch":"north","job_type":"reroof"}}}},"exampleType":"examples"}},"exampleType":"examples"},"44be13b3-d266-4256-a4c7-5fbee3dee2e6":{"description":"The body isn't valid JSON or can't be read (`malformed_request`).","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"malformed_request":{"title":"malformed_request","summary":"malformed_request","value":{"type":"https://docs.osaconnection.com/errors#malformed_request","title":"Malformed request","status":400,"detail":"The request body isn't valid JSON.","code":"malformed_request","request_id":"0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d"}}},"exampleType":"examples"}},"exampleType":"examples"},"cc279896-61fe-488b-a929-52e9f3d22f9b":{"description":"The key is missing, malformed, unknown, revoked or expired (`invalid_key`).\n","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_key":{"title":"invalid_key","summary":"invalid_key","value":{"type":"https://docs.osaconnection.com/errors#invalid_key","title":"Invalid API key","status":401,"detail":"The API key is missing, malformed, revoked or expired.","code":"invalid_key","request_id":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}},"exampleType":"examples"}},"exampleType":"examples"},"e4a94e33-acdc-4226-b0dd-73e8d7885f00":{"description":"The key is valid but can't do this. `not_in_plan`: the operation is not included in your\norganisation's plan and add-ons, whatever the key's own permissions. `insufficient_scope`:\nyour plan and add-ons include the operation, but the key doesn't have the permission it\nneeds.\n","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"insufficient_scope":{"title":"insufficient_scope","summary":"insufficient_scope","value":{"type":"https://docs.osaconnection.com/errors#insufficient_scope","title":"Insufficient scope","status":403,"detail":"This key doesn't have the claims:write permission.","code":"insufficient_scope","request_id":"0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e"}},"not_in_plan":{"title":"not_in_plan","summary":"not_in_plan","value":{"type":"https://docs.osaconnection.com/errors#not_in_plan","title":"Not in plan","status":403,"detail":"Member invitations are not included in your organisation's plan and add-ons.","code":"not_in_plan","request_id":"1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f"}}},"exampleType":"examples"}},"exampleType":"examples"},"da10eb3f-26ad-45ba-a25f-5b3b687a5b01":{"description":"The export already exists (`duplicate_export`). In the key's environment (test or live),\nyou already have an export with this `reference`. Send a corrected roof as a new version\nof that export instead. `existing_export_id` and `existing_export_url` always point to an\nexport your key can read.\n","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"duplicate_export":{"title":"duplicate_export","summary":"duplicate_export","value":{"type":"https://docs.osaconnection.com/errors#duplicate_export","title":"Duplicate export","status":409,"detail":"You already have an export with reference ORDER-1042. Send a corrected roof as a new version of it.","code":"duplicate_export","request_id":"4a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d","existing_export_id":"3f0c8a6e-5b1d-4c0e-9a77-2f6d1e4b8c90","existing_export_url":"https://api.osaconnection.com/v1/esx-exports/3f0c8a6e-5b1d-4c0e-9a77-2f6d1e4b8c90"}}},"exampleType":"examples"}},"exampleType":"examples"},"9551f731-b8b6-4c1f-a959-98d6873fe6c4":{"description":"The body is larger than 1 MB (`payload_too_large`).","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"payload_too_large":{"title":"payload_too_large","summary":"payload_too_large","value":{"type":"https://docs.osaconnection.com/errors#payload_too_large","title":"Payload too large","status":413,"detail":"Request bodies are limited to 1 MB.","code":"payload_too_large","request_id":"1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e"}}},"exampleType":"examples"}},"exampleType":"examples"},"06b1cc3f-4091-4b80-9ce8-380b4564dd16":{"description":"The export can't be built from this request. `validation_failed` has two causes. The request\nis badly shaped: `errors` points at each field, with no `check` or `severity`, and the roof\nchecks did not run. Or the roof has at least one critical problem: `errors` lists every\nproblem the checks found, warnings included, each with its `check` and `severity`. A\ncritical problem can stop the later checks on its structure, so check again after\ncorrecting it. `idempotency_key_reused`: the `Idempotency-Key` was already used with a\ndifferent request.\n","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"validation_failed":{"title":"validation_failed","summary":"validation_failed (a critical problem, with a warning beside it)","value":{"type":"https://docs.osaconnection.com/errors#validation_failed","title":"Validation failed","status":422,"detail":"The roof can't be built. It has 1 critical problem and 1 warning.","code":"validation_failed","request_id":"7d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a","errors":[{"pointer":"/input/structures/0/edges/2","check":2,"severity":"error","detail":"edge `ridge` joins point `g`, which does not exist"},{"pointer":"/input/structures/0/edges/7","check":3,"severity":"minor","detail":"Edge `stray` (unclassified) lies on no face. It is left out of the roof."}]}},"validation_failed_shape":{"title":"validation_failed_shape","summary":"validation_failed (the request's shape; no roof checks ran)","value":{"type":"https://docs.osaconnection.com/errors#validation_failed","title":"Validation failed","status":422,"detail":"The request has 1 invalid field.","code":"validation_failed","request_id":"9a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d","errors":[{"pointer":"/input/structures/0/faces/0","detail":"must NOT have additional properties (low_egde)"}]}},"idempotency_key_reused":{"title":"idempotency_key_reused","summary":"idempotency_key_reused","value":{"type":"https://docs.osaconnection.com/errors#idempotency_key_reused","title":"Idempotency key reused","status":422,"detail":"This Idempotency-Key was already used with a different request.","code":"idempotency_key_reused","request_id":"8e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b"}}},"exampleType":"examples"}},"exampleType":"examples"},"19779cea-feb7-4462-b33b-def05c633341":{"description":"Too many requests for this key (`rate_limited`). Wait for the number of seconds in\n`Retry-After`, then retry.\n","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","required":true,"schema":{"type":"integer","minimum":1},"examples":{"seconds":{"summary":"Retry in 12 seconds","value":12}}},"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate_limited":{"title":"rate_limited","summary":"rate_limited","value":{"type":"https://docs.osaconnection.com/errors#rate_limited","title":"Rate limited","status":429,"detail":"This key has exceeded 300 requests per minute.","code":"rate_limited","request_id":"9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f"}}},"exampleType":"examples"}},"exampleType":"examples"},"6484bf8d-04f2-482e-8a28-008766115a81":{"description":"Something failed on OSA's side (`internal_error`). Retry with exponential backoff; for\n`POST` requests, reuse the same `Idempotency-Key`. If it persists, contact OSA with the\n`request_id`.\n","headers":{"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"internal_error":{"title":"internal_error","summary":"internal_error","value":{"type":"https://docs.osaconnection.com/errors#internal_error","title":"Internal error","status":500,"detail":"Something went wrong on our side. Retry later.","code":"internal_error","request_id":"2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f"}}},"exampleType":"examples"}},"exampleType":"examples"},"702f7cc8-442c-4bd9-b50d-5c8ed3ad9ea2":{"description":"The export provider could not be reached, or failed, while OSA was sending it a roof or a\ncorrected version, or asking it for the ESX (`export_provider_unavailable`). Nothing was\ncreated or charged; for a corrected version the export may now be `failed`, as its\nendpoint says. Wait for the number of seconds in `Retry-After`, then send the same\nrequest again; for a roof or a version, use the same `Idempotency-Key`.\n","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","required":true,"schema":{"type":"integer","minimum":1},"examples":{"seconds":{"summary":"Retry in 12 seconds","value":12}}},"X-Request-Id":{"description":"The id of this request. Quote it to OSA support. On error responses it equals\n`request_id` in the body.\n","required":true,"schema":{"type":"string"},"examples":{"request_id":{"summary":"A request id","value":"7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b"}}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"An RFC 9457 problem details object. Match on `code`, which is stable; `title` and\n`detail` are for people and may change. Quote `request_id` when contacting support.\n","required":["type","title","status","detail","code","request_id"],"properties":{"type":{"type":"string","format":"uri","description":"A link to this error's documentation.","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short summary of the error.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"What went wrong in this request.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"code":{"type":"string","description":"The stable error code. `malformed_request` (400); `invalid_key` (401);\n`insufficient_scope`, `not_in_plan` (403); `not_found` (404); `duplicate_claim`,\n`claim_already_accepted`, `already_member`, `invitation_pending`, `duplicate_export`,\n`export_not_ready` (409); `payload_too_large` (413); `validation_failed`,\n`idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,\n`adjuster_not_accepting`, `environment_mismatch` (422); `rate_limited` (429);\n`internal_error` (500); `export_provider_unavailable` (503). Open list:\nnew values may be added; treat an unknown value as an error you don't specifically\nhandle, by its HTTP `status`.\n","enum":["malformed_request","invalid_key","insufficient_scope","not_in_plan","not_found","duplicate_claim","claim_already_accepted","already_member","invitation_pending","duplicate_export","export_not_ready","payload_too_large","validation_failed","idempotency_key_reused","unknown_osaid","adjuster_not_a_member","adjuster_not_accepting","environment_mismatch","rate_limited","internal_error","export_provider_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"The id of this request. Quote it when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed`, each invalid field, parameter or header.","items":{"type":"object","description":"One problem. Exactly one of `pointer`, `parameter` or `header` says where.","required":["detail"],"properties":{"detail":{"type":"string","description":"What is wrong with it.","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"pointer":{"type":"string","description":"JSON Pointer to a body field, for example `/loss/date`. Empty for the whole body.","uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"parameter":{"type":"string","description":"The name of a query or path parameter, for example `limit`.","uniqueKey":"errors.items.[INDEX].parameter","typeLabel":"string"},"header":{"type":"string","description":"The name of a request header, for example `Idempotency-Key`.","uniqueKey":"errors.items.[INDEX].header","typeLabel":"string"},"check":{"type":"integer","description":"For a roof problem, the number of the check.","uniqueKey":"errors.items.[INDEX].check","typeLabel":"integer"},"severity":{"type":"string","description":"For a roof problem, how serious it is; a request is refused only when at least\none is `error`. Open list: new values may be added; treat an unknown value as\n`major`.\n","enum":["error","major","minor"],"uniqueKey":"errors.items.[INDEX].severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"existing_claim_id":{"type":"string","format":"uuid","description":"For `duplicate_claim`, the id of the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_id","typeLabel":"string\u003cuuid>"},"existing_claim_url":{"type":"string","format":"uri","description":"For `duplicate_claim`, the API link to the claim that already exists. Always a claim your key can read.","uniqueKey":"existing_claim_url","typeLabel":"string\u003curi>"},"existing_export_id":{"type":"string","format":"uuid","description":"For `duplicate_export`, the id of the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_id","typeLabel":"string\u003cuuid>"},"existing_export_url":{"type":"string","format":"uri","description":"For `duplicate_export`, the API link to the export that already exists. Always an export your key can read.","uniqueKey":"existing_export_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"export_provider_unavailable":{"title":"export_provider_unavailable","summary":"export_provider_unavailable","value":{"type":"https://docs.osaconnection.com/errors#export_provider_unavailable","title":"Export provider unavailable","status":503,"detail":"The export provider could not be reached. Nothing was charged. Try again shortly.","code":"export_provider_unavailable","request_id":"6c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"9b781e2e-5e0e-429f-9213-466c560b5271":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"osa_live_… or osa_test_…","description":"Send your API key as a bearer token: `Authorization: Bearer osa_live_…`.\nKeys are opaque; each belongs to exactly one partner. Keys starting with `osa_test_`\nreach only test claims and test accounts. The scopes listed on each operation are the\npermissions the key needs. A key's permissions are set when it is issued and can be\nchanged by OSA on request, never beyond what your plan and add-ons include.\n`GET /v1/me` always shows the current set.\n","scopes":["esx-exports:create"],"schemeName":"apiKey"}}},"servers":{"b67ade9b-36f1-4418-bc39-53e2c9b9ca47":{"url":"https://api.osaconnection.com","description":"Production. Live and test keys both use this host; the key decides which data you reach."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"osa_live_… or osa_test_…","description":"Send your API key as a bearer token: `Authorization: Bearer osa_live_…`.\nKeys are opaque; each belongs to exactly one partner. Keys starting with `osa_test_`\nreach only test claims and test accounts. The scopes listed on each operation are the\npermissions the key needs. A key's permissions are set when it is issued and can be\nchanged by OSA on request, never beyond what your plan and add-ons include.\n`GET /v1/me` always shows the current set.\n","scopes":["esx-exports:create"],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your API key as a bearer token: `Authorization: Bearer osa_live_…`.\nKeys are opaque; each belongs to exactly one partner. Keys starting with `osa_test_`\nreach only test claims and test accounts. The scopes listed on each operation are the\npermissions the key needs. A key's permissions are set when it is issued and can be\nchanged by OSA on request, never beyond what your plan and add-ons include.\n`GET /v1/me` always shows the current set.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"onestopadjuster","siteName":"One Stop Adjuster","title":"Send a roof to be built into an ESX - One Stop Adjuster","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T06:52:33.252Z","originalFileLocation":"api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Checks the roof, sends it to the export provider to be built, and records the export. The answer comes before the build finishes: 202 with the export, usually status: processing, and its warnings. Poll GET /v1/esx-exports/{id} until it is ready, then ask for the file with POST /v1/esx-exports/{id}/download. Sending a roof is not charged; asking for its ESX is, whether or not it has warnings, so look at clean and major_warnings first. Refused only for a critical problem. The request\u0026#x27;s shape is validated first, then the roof checks run, whether or not you checked the roof with POST /v1/esx-exports/checks. A badly shaped request, or a roof with a critical problem (severity: error), answers 422 validation_failed and nothing is recorded. For a roof problem, errors lists every problem found, critical or not, each with its pointer, check, severity and detail. A critical problem can stop the later checks on its structure, so check again after correcting it. Every other problem is a warning: the ESX is built anyway, and the export lists each warning and what OSA did about it. One export per reference. Within the key\u0026#x27;s environment (test or live), a reference you have already used fails with 409 duplicate_export, which names the existing export. Send a corrected roof to that export with POST /v1/esx-exports/{id}/versions. If the export provider is unavailable. The answer is 503 export_provider_unavailable: nothing was created or charged. Send the same request again, with the same Idempotency-Key. Test keys. An export sent with an osa_test_ key is a test export (test: true), built on a test system and never charged. A key sees only exports of its own environment. Retries. Idempotency-Key is required. Retrying the same request (same method, path and body) with the same key within 24 hours returns the same status code with the export\u0026#x27;s current state, and creates nothing new. The same key with a different request fails with 422 idempotency_key_reused.\">\u003cmeta data-mint-head name=\"application-name\" content=\"One Stop Adjuster\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a roof to be built into an ESX - One Stop Adjuster\">\u003cmeta data-mint-head property=\"og:description\" content=\"Checks the roof, sends it to the export provider to be built, and records the export. The answer comes before the build finishes: 202 with the export, usually status: processing, and its warnings. Poll GET /v1/esx-exports/{id} until it is ready, then ask for the file with POST /v1/esx-exports/{id}/download. Sending a roof is not charged; asking for its ESX is, whether or not it has warnings, so look at clean and major_warnings first. Refused only for a critical problem. The request\u0026#x27;s shape is validated first, then the roof checks run, whether or not you checked the roof with POST /v1/esx-exports/checks. A badly shaped request, or a roof with a critical problem (severity: error), answers 422 validation_failed and nothing is recorded. For a roof problem, errors lists every problem found, critical or not, each with its pointer, check, severity and detail. A critical problem can stop the later checks on its structure, so check again after correcting it. Every other problem is a warning: the ESX is built anyway, and the export lists each warning and what OSA did about it. One export per reference. Within the key\u0026#x27;s environment (test or live), a reference you have already used fails with 409 duplicate_export, which names the existing export. Send a corrected roof to that export with POST /v1/esx-exports/{id}/versions. If the export provider is unavailable. The answer is 503 export_provider_unavailable: nothing was created or charged. Send the same request again, with the same Idempotency-Key. Test keys. An export sent with an osa_test_ key is a test export (test: true), built on a test system and never charged. A key sees only exports of its own environment. Retries. Idempotency-Key is required. Retrying the same request (same method, path and body) with the same key within 24 hours returns the same status code with the export\u0026#x27;s current state, and creates nothing new. The same key with a different request fails with 422 idempotency_key_reused.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"One Stop Adjuster\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://onestopadjuster.mintlify.site/_mintlify/api/og/v2?division=ESX+exports\u0026amp;title=Send+a+roof+to+be+built+into+an+ESX\u0026amp;description=Checks+the+roof%2C+sends+it+to+the+export+provider+to+be+built%2C+and+records+the+export.+The%0Aanswer+comes+before+the+build+finishes%3A+%60202%60+with+the+export%2C+usually\u0026amp;theme=fe3856ebfba9b9487f8a0719\u0026amp;signature=07102581a034741fb3b955fcae11e0c0587087e8e6d24f0a1e33761fec5f829b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send a roof to be built into an ESX - One Stop Adjuster\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Checks the roof, sends it to the export provider to be built, and records the export. The answer comes before the build finishes: 202 with the export, usually status: processing, and its warnings. Poll GET /v1/esx-exports/{id} until it is ready, then ask for the file with POST /v1/esx-exports/{id}/download. Sending a roof is not charged; asking for its ESX is, whether or not it has warnings, so look at clean and major_warnings first. Refused only for a critical problem. The request\u0026#x27;s shape is validated first, then the roof checks run, whether or not you checked the roof with POST /v1/esx-exports/checks. A badly shaped request, or a roof with a critical problem (severity: error), answers 422 validation_failed and nothing is recorded. For a roof problem, errors lists every problem found, critical or not, each with its pointer, check, severity and detail. A critical problem can stop the later checks on its structure, so check again after correcting it. Every other problem is a warning: the ESX is built anyway, and the export lists each warning and what OSA did about it. One export per reference. Within the key\u0026#x27;s environment (test or live), a reference you have already used fails with 409 duplicate_export, which names the existing export. Send a corrected roof to that export with POST /v1/esx-exports/{id}/versions. If the export provider is unavailable. The answer is 503 export_provider_unavailable: nothing was created or charged. Send the same request again, with the same Idempotency-Key. Test keys. An export sent with an osa_test_ key is a test export (test: true), built on a test system and never charged. A key sees only exports of its own environment. Retries. Idempotency-Key is required. Retrying the same request (same method, path and body) with the same key within 24 hours returns the same status code with the export\u0026#x27;s current state, and creates nothing new. The same key with a different request fails with 422 idempotency_key_reused.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://onestopadjuster.mintlify.site/_mintlify/api/og/v2?division=ESX+exports\u0026amp;title=Send+a+roof+to+be+built+into+an+ESX\u0026amp;description=Checks+the+roof%2C+sends+it+to+the+export+provider+to+be+built%2C+and+records+the+export.+The%0Aanswer+comes+before+the+build+finishes%3A+%60202%60+with+the+export%2C+usually\u0026amp;theme=fe3856ebfba9b9487f8a0719\u0026amp;signature=07102581a034741fb3b955fcae11e0c0587087e8e6d24f0a1e33761fec5f829b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/onestopadjuster/fl-QmoE10LJchaxP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"One Stop Adjuster\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#01729D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.osaconnection.com/#organization\",\"name\":\"One Stop Adjuster\",\"url\":\"https://docs.osaconnection.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/onestopadjuster/LWybYtOm0TEXmFtz/logo/light.svg?fit=max\u0026auto=format\u0026n=LWybYtOm0TEXmFtz\u0026q=85\u0026s=251d9f975a12c805ed521778fe92ea6f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.osaconnection.com#website\",\"name\":\"One Stop Adjuster\",\"url\":\"https://docs.osaconnection.com\",\"publisher\":{\"@id\":\"https://docs.osaconnection.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx#webpage\",\"url\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx\",\"name\":\"Send a roof to be built into an ESX\",\"description\":\"Checks the roof, sends it to the export provider to be built, and records the export. The answer comes before the build finishes: 202 with the export, usually status: processing, and its warnings. Poll GET /v1/esx-exports/{id} until it is ready, then ask for the file with POST /v1/esx-exports/{id}/download. Sending a roof is not charged; asking for its ESX is, whether or not it has warnings, so look at clean and major_warnings first. Refused only for a critical problem. The request's shape is validated first, then the roof checks run, whether or not you checked the roof with POST /v1/esx-exports/checks. A badly shaped request, or a roof with a critical problem (severity: error), answers 422 validation_failed and nothing is recorded. For a roof problem, errors lists every problem found, critical or not, each with its pointer, check, severity and detail. A critical problem can stop the later checks on its structure, so check again after correcting it. Every other problem is a warning: the ESX is built anyway, and the export lists each warning and what OSA did about it. One export per reference. Within the key's environment (test or live), a reference you have already used fails with 409 duplicate_export, which names the existing export. Send a corrected roof to that export with POST /v1/esx-exports/{id}/versions. If the export provider is unavailable. The answer is 503 export_provider_unavailable: nothing was created or charged. Send the same request again, with the same Idempotency-Key. Test keys. An export sent with an osa_test_ key is a test export (test: true), built on a test system and never charged. A key sees only exports of its own environment. Retries. Idempotency-Key is required. Retrying the same request (same method, path and body) with the same key within 24 hours returns the same status code with the export's current state, and creates nothing new. The same key with a different request fails with 422 idempotency_key_reused.\",\"dateModified\":\"2026-11-30T06:52:33.252Z\",\"isPartOf\":{\"@id\":\"https://docs.osaconnection.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"ESX exports\",\"item\":\"https://docs.osaconnection.com/api-reference/esx-exports/check-a-roof-without-building-it\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send a roof to be built into an ESX\",\"item\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx#apireference\",\"headline\":\"Send a roof to be built into an ESX\",\"name\":\"Send a roof to be built into an ESX\",\"description\":\"Checks the roof, sends it to the export provider to be built, and records the export. The answer comes before the build finishes: 202 with the export, usually status: processing, and its warnings. Poll GET /v1/esx-exports/{id} until it is ready, then ask for the file with POST /v1/esx-exports/{id}/download. Sending a roof is not charged; asking for its ESX is, whether or not it has warnings, so look at clean and major_warnings first. Refused only for a critical problem. The request's shape is validated first, then the roof checks run, whether or not you checked the roof with POST /v1/esx-exports/checks. A badly shaped request, or a roof with a critical problem (severity: error), answers 422 validation_failed and nothing is recorded. For a roof problem, errors lists every problem found, critical or not, each with its pointer, check, severity and detail. A critical problem can stop the later checks on its structure, so check again after correcting it. Every other problem is a warning: the ESX is built anyway, and the export lists each warning and what OSA did about it. One export per reference. Within the key's environment (test or live), a reference you have already used fails with 409 duplicate_export, which names the existing export. Send a corrected roof to that export with POST /v1/esx-exports/{id}/versions. If the export provider is unavailable. The answer is 503 export_provider_unavailable: nothing was created or charged. Send the same request again, with the same Idempotency-Key. Test keys. An export sent with an osa_test_ key is a test export (test: true), built on a test system and never charged. A key sees only exports of its own environment. Retries. Idempotency-Key is required. Retrying the same request (same method, path and body) with the same key within 24 hours returns the same status code with the export's current state, and creates nothing new. The same key with a different request fails with 422 idempotency_key_reused.\",\"url\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx\",\"mainEntityOfPage\":{\"@id\":\"https://docs.osaconnection.com/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx#webpage\"},\"dateModified\":\"2026-11-30T06:52:33.252Z\",\"publisher\":{\"@id\":\"https://docs.osaconnection.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.osaconnection.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"One Stop Adjuster\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"One Stop Adjuster\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx.md","siteName":"One Stop Adjuster","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API reference","groups":[{"group":"Claims","pages":[{"title":"Send a claim to an adjuster","openapi":"POST /v1/claims","href":"/api-reference/claims/send-a-claim-to-an-adjuster"},{"title":"List and poll claims","openapi":"GET /v1/claims","href":"/api-reference/claims/list-and-poll-claims"},{"title":"Get a claim","openapi":"GET /v1/claims/{id}","href":"/api-reference/claims/get-a-claim"},{"title":"Offer a claim to another adjuster","openapi":"POST /v1/claims/{id}/assignment","href":"/api-reference/claims/offer-a-claim-to-another-adjuster"}]},{"group":"Members","pages":[{"title":"Invite a person to your organisation","openapi":"POST /v1/members/invitations","href":"/api-reference/members/invite-a-person-to-your-organisation"},{"title":"List your members and invitations","openapi":"GET /v1/members","href":"/api-reference/members/list-your-members-and-invitations"},{"title":"Withdraw a pending invitation","openapi":"DELETE /v1/members/invitations/{osa_id}","href":"/api-reference/members/withdraw-a-pending-invitation"}]},{"group":"Account","pages":[{"title":"Check your API key","openapi":"GET /v1/me","href":"/api-reference/account/check-your-api-key"},{"title":"Check the service is up","openapi":"GET /v1/health","href":"/api-reference/health/check-the-service-is-up"}]},{"group":"ESX exports","pages":[{"title":"Check a roof without building it","openapi":"POST /v1/esx-exports/checks","description":"Runs the checks that `POST /v1/esx-exports` runs, on the same body, and answers with every\nproblem found. No export is recorded and the roof is not kept; nothing is sent to the\nexport provider or charged, so check as often as you like. The `reference` is not checked\nfor duplicates.\n\n**The request's shape comes first.** A misspelt or unknown field, a wrong type or a value\nout of range answers `422 validation_failed`, with `errors` pointing at each field, and the\nroof checks do not run. Rules the schema cannot express (a scale missing or not allowed, a\nrepeated id, heights given two ways or on some points only, an overhang on an edge that is\nnot an eave or a rake, a coordinate more than 1,000,000 plan units either way) are roof\nproblems of check 1, critical, and answer `200` with `buildable: false`.\n\n**Severities.** `error` is critical: the roof cannot be built and would be refused, so\n`buildable` is `false`. `major` and `minor` are warnings: the roof would be built anyway,\nand `detail` says what OSA would do. A critical problem can stop the later checks on its\nstructure, so check again after correcting it.\n\n**Checking first is optional.** `POST /v1/esx-exports` always runs the checks again.\n","href":"/api-reference/esx-exports/check-a-roof-without-building-it"},{"title":"Send a roof to be built into an ESX","openapi":"POST /v1/esx-exports","href":"/api-reference/esx-exports/send-a-roof-to-be-built-into-an-esx"},{"title":"List exports","openapi":"GET /v1/esx-exports","description":"Lists the exports you sent, ordered by `updated_at` and then `id`, oldest change first.\nFilter by `status`, or look one up by your `reference`.\n\n**This list does not refresh the status.** It shows each export as last recorded and does\nnot ask the export provider. Poll `GET /v1/esx-exports/{id}` for an export you are waiting\non, and use this list to catch up or to reconcile.\n\n**Catching up.** As for claims: set `updated_since` (inclusive) to the latest `updated_at`\nyou have processed minus about one minute, follow `next_cursor` until it is `null`, and\nde-duplicate by `id`.\n\nA key lists only exports of its own environment. Unknown query parameters are rejected with\n`422 validation_failed`.\n","href":"/api-reference/esx-exports/list-exports"},{"title":"Get an export","openapi":"GET /v1/esx-exports/{id}","href":"/api-reference/esx-exports/get-an-export"},{"title":"Send a corrected roof for an export","openapi":"POST /v1/esx-exports/{id}/versions","href":"/api-reference/esx-exports/send-a-corrected-roof-for-an-export"},{"title":"Ask for the ESX file","openapi":"POST /v1/esx-exports/{id}/download","href":"/api-reference/esx-exports/ask-for-the-esx-file"}]}]}]},"basePath":"","title":"Send a roof to be built into an ESX - One Stop Adjuster","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}