Exporter API
Floor plans
Home ReportReferences
Floor plans
Home ReportReferences
  1. Floor plans
  • Get Started
  • References
    • Space types
    • Fixed furniture classes
    • Available Languages
  • Floor plan
    POST
  1. Floor plans

Floor plan

Production
https://api.cubi.casa
Production
https://api.cubi.casa
POST
/exporter/floorplan/{model_ID}
Export floor plans and define their design.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Path Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Success
Bodyapplication/json

🟠400Bad Request
🟢200Success
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --globoff 'https://api.cubi.casa/exporter/floorplan/43185a14-0224-478b-a5e3-c4bf9bb080e7' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "exports": [
    {
      "loc": "en",
      "singleFloor": {
        "backgroundColor": "#ffffff",
        "backgroundOpacity": 1,
        "dpi": 144,
        "format": "png",
        "layout": {
          "left": 0.1,
          "top": 0.1,
          "width": 0.80,
          "height": 0.7
        },
        "overlay": {
          "overlayLabels": [
            {
              "type": "image",
              "url": "https://customerlogo.s3.amazonaws.com/874a0627-f62a-408f-8def-1f50f58d805b",
              "layout": {
                "left": 0.025,
                "width": 0.1875,
                "height": 0.075,
                "bottom": 0.03
              }
            },
            {
              "type": "compass",
              "url": "https://s3.us-east-2.amazonaws.com/cubi.casa.exporter.logos/compass/compass-caret-N.svg",
              "layout": {
                "right": 0.025,
                "width": 0.04,
                "height": 0.04,
                "bottom": 0.03
              }
            },
            {
              "type": "text",
              "font": "Montserrat",
              "fontStyle": "normal",
              "fontWeight": "regular",
              "alignment": "middle",
              "color": "#888888",
              "lineHeight": 0.0125,
              "layout": {
                "width": 0.5,
                "bottom": 0.03
              },
              "text": {
                "en": [
                  "Floor Plan Created By Cubicasa App. Measurements Deemed Highly Reliable But Not Guaranteed."
                ]
              }
            },
            {
            "type": "address",
            "addressComponents": [
                "number",
                " ",
                "street",
                ", ",
                "suite",
                "BR",
                "city",
                ", ",
                "regionCode",
                " ",
                "postalCode"
                ],
                        "alignment": "start",

                "layout": {
                    "height": 0.05,
                    "top": 0.03,
                    "left":0.03
                }
            },
            {
              "type": "totalArea",
              "alignment": "middle",
              "lineHeight": 0.012,
              "layout": {
                "width": 0.3,
                "bottom": 0.08
              }
            }
          ]
        },
        "resolution": {
          "height": 3000,
          "width": 4000
        }
      },
      "zip": false
    },
    {
      "compose": {
        "backgroundColor": "#ffffff",
        "backgroundOpacity": 1,
        "dpi": 72,
        "format": "png",
        "layout": {
          "left": 0.1,
          "top": 0.1,
          "width": 0.8,
          "height": 0.7
                  },
        "overlay": {
          "overlayLabels": [
            {
              "type": "image",
              "url": "https://customerlogo.s3.amazonaws.com/874a0627-f62a-408f-8def-1f50f58d805b",
              "layout": {
                "left": 0.025,
                "width": 0.1875,
                "height": 0.075,
                "bottom": 0.03
              }
            },
            {
              "type": "compass",
              "url": "https://s3.us-east-2.amazonaws.com/cubi.casa.exporter.logos/compass/compass-caret-N.svg",
              "layout": {
                "right": 0.025,
                "width": 0.04,
                "height": 0.04,
                "bottom": 0.03
              }
            },
            {
              "type": "text",
              "font": "Montserrat",
              "fontStyle": "normal",
              "fontWeight": "regular",
              "alignment": "middle",
              "color": "#888888",
              "lineHeight": 0.0125,
              "layout": {
                "width": 0.5,
                "bottom": 0.03
              },
              "text": {
                "en": [
                  "Floor Plan Created By Cubicasa App. Measurements Deemed Highly Reliable But Not Guaranteed."
                ]
              }
            },
            {
            "type": "address",
            "addressComponents": [
                "number",
                " ",
                "street",
                ", ",
                "suite",
                "BR",
                "city",
                ", ",
                "regionCode",
                " ",
                "postalCode"
                ],
                "alignment": "start",
                "layout": {
                    "height": 0.05,
                    "top": 0.03,
                    "left":0.03
                }
            },
            {
              "type": "totalArea",
              "alignment": "middle",
              "lineHeight": 0.012,
              "layout": {
                "width": 0.3,
                "bottom": 0.115
              }
            }
          ]
        },
        "resolution": {
          "height": 3000,
          "width": 4000
        }
      },
      "loc": "en",
      "zip": false
    }
    
  
  ],
  "globalModelOptions": {
    "area": true,
    "areaSpecification": "NATotalArea",
    "dimensions": {
      "imperialRounding": "inches",
      "markers": false,
      "metersDecimals": 2,
      "text": true
    },
    "elementStyles": {
      "Column": {
        "style": {
          "fill": "#17324d",
          "fill-opacity": 1,
          "stroke": "#17324d",
          "stroke-width": 1
        }
      },
      "Door": {
        "style": {
          "fill": "#ffffff",
          "fill-opacity": 1,
          "stroke": "#17324d",
          "stroke-opacity": 1,
          "stroke-width": 1.2
        }
      },
      "FixedFurniture": {
        "style": {
          "fill": "#ffffff",
          "fill-opacity": 0,
          "stroke": "#17324d",
          "stroke-opacity": 1,
          "stroke-width": 1
        },
        "typeStyle": {
          "Fan": {
            "fill": "#ffffff",
            "fill-opacity": 0.7,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Misc": {
            "fill": "none",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-dasharray": "5, 5",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "WallCabinet": {
            "fill": "#ffffff",
            "fill-opacity": 0,
            "stroke": "#17324d",
            "stroke-dasharray": "5, 5",
            "stroke-opacity": 1,
            "stroke-width": 1
          }
        }
      },
      "Railing": {
        "style": {
          "fill": "#ffffff",
          "fill-opacity": 0,
          "stroke": "#17324d",
          "stroke-opacity": 1,
          "stroke-width": 1
        }
      },
      "Space": {
        "spaceTypeStyle": {
          "Balcony": {
            "fill": "#DEE3E6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Bedroom": {
            "fill": "#c9cbcc",
            "fill-opacity": 1,
            "stroke": "#c9cbcc",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "CarPort": {
            "fill": "#ffffff",
            "fill-opacity": 1,
            "stroke": "#000000",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Court": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Courtyard": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "CoveredDeck": {
            "fill": "#DEE3E6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "CoveredPatio": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "CoveredTerrace": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "CrawlSpace": {
            "fill": "#ffffff",
            "fill-opacity": 1,
            "stroke": "#000000",
            "stroke-dasharray": "5, 5, 1, 5",
            "stroke-opacity": 0.5,
            "stroke-width": 1
          },
          "Deck": {
            "fill": "#DEE3E6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Elevated": {
            "fill": "transparent",
            "fill-opacity": 1,
            "stroke": "#000000",
            "stroke-dasharray": "5, 5",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "FullBath": {
            "fill": "#d7edfb",
            "fill-opacity": 1,
            "stroke": "#d7edfb",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Garden": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "HalfBath": {
            "fill": "#d7edfb",
            "fill-opacity": 1,
            "stroke": "#d7edfb",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Laundry": {
            "fill": "#d7edfb",
            "fill-opacity": 1,
            "stroke": "#d7edfb",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Outdoor": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Patio": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Porch": {
            "fill": "#DEE3E6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "RoofTop": {
            "fill": "#DEE3E6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Sauna": {
            "fill": "#d7edfb",
            "fill-opacity": 1,
            "stroke": "#d7edfb",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "ScreenedBalcony": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "ScreenedPorch": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "ScreenedTerrace": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "SwimmingPool": {
            "fill": "#fffdfd",
            "fill-opacity": 1,
            "stroke": "#fffdfd",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Terrace": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Toilet": {
            "fill": "#d7edfb",
            "fill-opacity": 1,
            "stroke": "#d7edfb",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Veranda": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          },
          "Yard": {
            "fill": "#e5f5e6",
            "fill-opacity": 1,
            "stroke": "#17324d",
            "stroke-opacity": 1,
            "stroke-width": 1
          }
        },
        "style": {
          "fill": "#eff1f2",
          "fill-opacity": 1,
          "stroke": "#eff1f2",
          "stroke-opacity": 1,
          "stroke-width": 1
        }
      },
      "Stairs": {
        "style": {
          "fill": "transparent",
          "fill-opacity": 0,
          "stroke": "#17324d",
          "stroke-opacity": 1
        }
      },
      "Wall": {
        "style": {
          "fill": "#17324d",
          "fill-opacity": 1,
          "stroke": "#17324d",
          "stroke-linejoin": "round",
          "stroke-opacity": 1,
          "stroke-width": 1
        }
      },
      "Window": {
        "style": {
          "fill": "#ffffff",
          "fill-opacity": 1,
          "stroke": "#17324d",
          "stroke-opacity": 1,
          "stroke-width": 1
        }
      }
    },
    "floorLabelStyle": {
      "color": "#17324d",
      "font": "Montserrat",
      "fontStyle": "normal",
      "fontWeight": "regular",
      "textCase": "title"
    },
    "lineMeasurementLabelStyle": {
      "color": "#17324d",
      "font": "Montserrat",
      "fontStyle": "normal",
      "fontWeight": "regular",
      "textCase": "title"
    },
    "materialLibrary": "assets/defaultMaterials.svg",
    "noDimensionsForSpaceTypes": [
      "SwimmingPool",
      "OpenToBelow"
    ],
    "noDimensionsForSpaces": [
      "SwimmingPool",
      "OpenToBelow"
    ],
    "noFloorLabelInSingleFloorCompose": true,
    "noLabelsAndDimensionsForSpaceTypes": [
      "Undefined",
      "Outdoor",
      "CrawlSpace"
    ],
    "noLabelsAndDimensionsForSpaces": [
      "Undefined",
      "Outdoor",
      "Below150cm",
      "Closet"
    ],
    "showScaleIndicator": false,
    "showSpaceLabels": true,
    "spaceLabelStyle": {
      "color": "#17324d",
      "font": "Montserrat",
      "fontStyle": "normal",
      "fontWeight": "regular",
      "textCase": "title"
    },
    "swingDoorOpeningAngle": 90,
    "totalAreaLabelStyle": {
      "color": "#17324d",
      "font": "Montserrat",
      "fontStyle": "normal",
      "fontWeight": "regular",
      "textCase": "title"
    },
    "unit": "ft"
  },
  "region_code": "us",
  "zipExports": false
}'
Response Response Example
200 - PNG images
{
    "0": {
        "png": [
            "https://s3-us-west-2.amazonaws.com/cubi.casa.exporter.output/ecb4df1cc129c8ec3aef9ed2cc6f345/Some address_0.png"
        ]
    }
}
Modified at 2026-11-20 09:10:43
Previous
Available Languages
Built with