Create a roof measurement from an address with the RoofStruct API

One POST turns an address into a RoofStruct measurement, ready to draw, with a link straight into the builder. The request, the response, the errors, and wiring it to new leads.

3 min read

POST https://roofstruct.com/api/v1/projects (part of the RoofStruct API) with an address creates a new measurement in your RoofStruct account and returns its ID and an editor_url that opens the builder on it. Hook it to your CRM's "new lead" or "new job" event, and the measurement is waiting by the time someone sits down to draw the roof.

It creates an empty measurement: the address, a name and optional coordinates. The roof is still drawn in RoofStruct, on satellite imagery or your own drone or phone photo.

The request

curl -X POST https://roofstruct.com/api/v1/projects \
  -H "Authorization: Bearer rs_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "address": "1428 Elm Street, Springfield, IL 62704",
    "name": "Hartley re-roof",
    "latitude": 39.7817,
    "longitude": -89.6501
  }'
Field Required Notes
address Yes Up to 300 characters
name No Defaults to the address; up to 200 characters
latitude, longitude No Numbers, given together or not at all

If your CRM already geocoded the address, pass the coordinates.

The response

A 201 Created with the new measurement:

{
  "data": {
    "id": "6f1c...",
    "reference": "...",
    "name": "Hartley re-roof",
    "address": "1428 Elm Street, Springfield, IL 62704",
    "latitude": 39.7817,
    "longitude": -89.6501,
    "created_at": "2026-11-03T14:02:11Z",
    "updated_at": "2026-11-03T14:02:11Z",
    "app_url": "https://roofstruct.com/.../projects/6f1c...",
    "editor_url": "https://roofstruct.com/.../projects/6f1c.../editor"
  }
}

Save id on the CRM record; you'll use it to read the numbers later. Put editor_url on the job as a link, so whoever measures goes straight to the builder.

Read the numbers back

Once the roof is drawn:

curl https://roofstruct.com/api/v1/projects/6f1c.../measurements \
  -H "Authorization: Bearer rs_live_..."

Before anything is drawn, measurements is null. Once lines exist but the drawing has no scale, calibrated is false and every size is null. To avoid polling, add a webhook for Measurement Sent; when the drawing is done and someone clicks Send Now, the numbers come to you.

Errors

Status Code What to do
400 invalid_parameter Address missing or too long, or only one coordinate given
400 invalid_json The body isn't valid JSON
402 project_limit_reached The plan's measurement limit is reached; archive old ones or change plan
409 key_owner_missing The person who made the key left the account; make a new key
429 rate_limited Wait for Retry-After

Wiring it to new leads

The pattern is the same in any CRM or automation tool that can call a URL:

  1. Trigger: a lead or job is created with an address.
  2. Call: POST /v1/projects with the address and the customer's name as name.
  3. Write back: store id and editor_url on the lead.
  4. Later: a Measurement Sent webhook, or a read of /v1/projects/{id}/measurements, fills in the squares and lengths.

Where you trip

  • Creating duplicates. A retried call creates a second measurement. Check the lead for a stored id before calling, or search with GET /v1/projects?address=... first.
  • Half a coordinate. latitude without longitude is rejected. Send both or neither.
  • Expecting a measured roof. The call creates the measurement; drawing the roof is still a person's job.
  • Leads without a real address. "TBD" and phone numbers make measurements nobody can find. Only call it once the address is filled in.

Developer docs: Create a project and Limits in the RoofStruct API reference.

Keep reading

Tool comparisons

How much does a roof measurement report cost in 2026?

Roof measurement reports are mostly priced per roof, commercial above residential. Dated prices, the three pricing models, what moves the price and when measuring it yourself wins.

11 min read