Skip to main content
POST
Check a roof without building it

Authorizations

Authorization
string
header
required

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

Body

application/json

The roof and its property, exactly as you would send them to be built.

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.

Example:
property
object
required

The property the roof is on.

claim_number
string

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.

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.

Example:

Response

The roof checks ran. buildable says whether the roof would be built; problems lists every problem found, critical or not.

The result of checking a roof. No export is recorded and the roof is not kept, and nothing is charged.

buildable
boolean
required

false when any problem is an error: the roof would be refused.

problems
object[]
required

Every problem the checks found, critical or not, each with its severity. A critical problem can stop the later checks on that structure, so check again after correcting it.