Developers
The vPlan AR API
Read your floor plans from your own software: list your projects, get each room’s measured area, wall area, openings, finishes and recorded damage, pull room-by-room measurement sheets wall run by wall run, check stairs against the model codes, and download the same PDF plan set and DXF, IFC, glTF, OBJ and XML files the editor exports. The API is part of the Business plan. With the projects:write scope it can also create projects from plan JSON, rename them and fill in their details; drawing and deleting stay in the app. Building a product other vPlan users will connect? Start with Integrations: how a connection works and sample responses for the sample house.
Authentication
Create a key in the web app under Settings → API & Developer. It is shown once; copy it then. Send it with every request as a bearer token. A key works with the projects of the account that made it, and stops working when it is revoked, when it expires, or when the account leaves the Business plan. You can have ten active keys.
curl https://vplan.ai/api/v1 \
-H "Authorization: Bearer vp_live_..."
{ "version": "v1", "key": { "scopes": ["projects:read", "exports:read"], "expires_at": "2027-01-07T15:20:00Z" }, ... }Scopes and expiry
When you create a key, choose what it may do. Give an integration only the scopes it needs:
projects:read: List projects, read each one’s measured summary, room-by-room measurements (JSON, CSV or Excel) and plan JSON.projects:write: Create projects from plan JSON, rename them and edit their details (client, address, claim number and the rest). Never deletes.exports:read: Download files: the PDF plan set, DXF, IFC, glTF, OBJ, MTL and XML.
A request outside the key’s scopes gets 403 with the code insufficient_scope. Keys made before scopes existed can read projects and download exports; no existing key can write, so make a new key with projects:write when you need it. Each key also has a lifetime, chosen when you make it: 30 days, 90 days, 1 year, never (90 days unless you pick another). Settings shows when each key expires and flags keys with less than 14 days left. Once a key has expired, requests with it get 401 with the code key_expired: create a new key and swap it in. GET /api/v1 returns the key’s scopes and expires_at (null when it never expires), so your software can warn you ahead of time.
Endpoints
| Request | Scope | Returns |
|---|---|---|
| GET /api/v1 | any | Checks your key; says its scopes and expiry and lists the endpoints. |
| GET /api/v1/projects | projects:read | Your projects, most recently changed first. |
| POST /api/v1/projects | projects:write | Creates a project from plan JSON; returns its id, name and created_at. |
| GET /api/v1/projects/{id} | projects:read | A project’s details and measured summary. |
| PATCH /api/v1/projects/{id} | projects:write | Renames a project or changes its details. |
| GET /api/v1/projects/{id}/plan | projects:read | Each level’s floor plan as JSON. |
| GET /api/v1/projects/{id}/measurements | projects:read | Room-by-room measurements as JSON, CSV or Excel. |
| GET /api/v1/projects/{id}/export/pdf | exports:read | The PDF plan set. |
| GET /api/v1/projects/{id}/export/{format} | exports:read | The plan as a DXF, IFC, GLB, OBJ, MTL or XML file. |
Listing projects
GET /api/v1/projects returns up to limit projects (1 to 100, default 50), most recently changed first. Pass updated_since (an ISO 8601 time) to fetch only what changed since your last sync. When there are more, next_before is set; pass it back as before for the next page. An example:
curl "https://vplan.ai/api/v1/projects?limit=2&updated_since=2026-10-01T00:00:00Z" \
-H "Authorization: Bearer $VPLAN_KEY"
{
"data": [
{ "id": "9c1e...", "name": "12 Elm St", "created_at": "2026-10-02T14:03:11Z",
"updated_at": "2026-10-07T09:41:52Z", "total_area_m2": 122.6, "wall_count": 14 }
],
"next_before": null
}Project summary
GET /api/v1/projects/{id} returns the project’s details (client, property address, date, inspector and reference number as entered), its levels, and every room measured the way the editor’s takeoffs and reports measure it: area by square-footage category (Gross Living Area apart from garage, below-grade, unfinished and covered space), floor area less openings, ceiling height, length and width, wall area before and after doors and windows, baseboard length, door and window counts, finishes and recorded damage. Stairs come with their IRC or IBC checks. Lengths are metres and areas square metres, with square feet alongside the areas. An example, shortened:
{
"id": "9c1e...", "name": "12 Elm St",
"levels": [{ "id": "L1", "name": "Main Level", "elevation_m": 0, "ceiling_height_m": 2.74 }],
"totals": { "rooms": 7, "gross_living_area_m2": 122.6, "gross_living_area_sqft": 1319.7, ... },
"rooms": [
{ "name": "Kitchen", "level": "Main Level", "category": "living", "area_m2": 31.2, "area_sqft": 335.8,
"ceiling_height_m": 2.74, "wall_area_net_m2": 54.7, "baseboard_m": 19.8, "doors": 2, "windows": 1,
"floor_finish": "White oak, straight", "damage": "condition Damaged; severity Moderate; types Water", ... }
],
"stairs": [{ "type": "straight", "code": "irc", "risers": 14, "checks": [{ "kind": "riser", "status": "ok", ... }] }]
}Plan JSON
GET /api/v1/projects/{id}/plan returns each level’s plan in vPlan’s own format: walls, rooms, doors, windows, openings, furniture, stairs and annotations in metres, already brought up to the current format. Each level carries its elevation, ceiling height and its placement in the project’s shared frame.
Creating and updating projects
With a key that has the projects:write scope, POST /api/v1/projects creates a project in your account from plan JSON in the shape Plan JSON returns, so a plan drawn in your own software, or one read from another project, can be opened in vPlan. Send a name (up to 120 characters), optional metadata (the project details below), and either a single plan or levels. Each level has its plan and elevation_ft (needed when there are several), and may have an id, name, ceiling_height_ft (default: the plan’s ceiling height), transform and active (the level the editor opens on; default: the one at elevation 0, else the lowest). Other fields a plan response carries, such as order and updated_at, are ignored. The answer is 201 with the new project’s id:
curl -X POST https://vplan.ai/api/v1/projects \
-H "Authorization: Bearer $VPLAN_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 3f8e2c1a-6b0d-4e5f-9a7c-2d1b0e4f6a90" \
-d '{
"name": "12 Elm St",
"metadata": { "propertyAddress": "12 Elm St", "referenceNumber": "CLM-20417" },
"plan": {
"walls": [
{ "id": "w1", "start": { "x": 0, "y": 0 }, "end": { "x": 4, "y": 0 }, "thickness": 0.15 },
{ "id": "w2", "start": { "x": 4, "y": 0 }, "end": { "x": 4, "y": 3 }, "thickness": 0.15 },
...
],
"rooms": [{ "id": "r1", "customLabel": "Kitchen",
"boundary": [{ "x": 0, "y": 0 }, { "x": 4, "y": 0 }, { "x": 4, "y": 3 }, { "x": 0, "y": 3 }] }],
"doors": [{ "id": "d1", "wallId": "w1", "position": { "x": 2, "y": 0 }, "width": 0.9,
"swingAngle": 0, "source": "native" }]
}
}'
HTTP/1.1 201 Created
Location: /api/v1/projects/9c1e...
{ "id": "9c1e...", "name": "12 Elm St", "created_at": "2026-10-09T15:20:00Z" }Every plan is checked before anything is saved:
- Each wall needs
id,start,endandthickness; each room an id and aboundaryof three or more corners; doors, windows and openings an id, theirwallId, position and width, plus a door’sswingAngleandsourceand a window’s or opening’swallAngle(a window’ssourcetoo). Everything else is optional. Ids must be unique within each list. - Numbers must be finite, and coordinates within 10,000 m of the plan’s origin. Text fields have length limits, and fields with a fixed set of values (door types, furniture types, damage and so on) take only those values. A wrong value is refused with 400
bad_requestnaming the field, such as`plan.walls[2].start.x` must be a finite number. - Fields vPlan doesn’t know are dropped. Mood board links must be http(s), and uploaded image paths are dropped (a new project has no uploads).
- Values worked out from the geometry are worked out again: each wall’s length and angle, each room’s area, centre and bounds (and its label when you send none), and the plan’s bounds and total area.
- The body may be up to 5 MB, with up to 20 levels and, per level, 5,000 walls, 1,000 rooms, 2,000 each of doors, windows and openings, 3,000 pieces of furniture and 200 stairs. A larger body gets 413
too_large.
The project is saved the way the web editor saves a new one, so it opens in the editor and your webhooks get project.created.
Retries. Send an Idempotency-Key header (up to 255 visible characters; a new UUID per project works well) so that a retried request can’t create the project twice. For a day, the same key with the same body answers 201 with the same project and an Idempotent-Replayed: true header, and creates nothing. The same key with a different body gets 422 idempotency_mismatch, and a retry while the first request is still running gets 409 conflict with a Retry-After. Keys are per account.
PATCH /api/v1/projects/{id} renames one of your projects and changes its details. Send name, metadata or both; in metadata, send only the fields to change. A field set to null or an empty string is removed, and fields you don’t send stay as they are. Anything else in the body is refused. The plan itself is edited in the app. Projects in other accounts, including team projects someone else owns, answer 404.
curl -X PATCH https://vplan.ai/api/v1/projects/9c1e... \
-H "Authorization: Bearer $VPLAN_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "12 Elm Street", "metadata": { "referenceNumber": "CLM-20417-B", "notes": null } }'
{ "id": "9c1e...", "name": "12 Elm Street",
"metadata": { "propertyAddress": "12 Elm St", "referenceNumber": "CLM-20417-B" },
"updated_at": "2026-10-09T15:24:10Z" }The project details, each a string with its longest length:
clientName: the client or customer, up to 200 characters.clientContact: the client’s phone or email, up to 200 characters.propertyAddress: the property or site address, up to 300 characters.projectDate: the project or claim date, as YYYY-MM-DD, up to 10 characters.inspectorName: the inspector, agent or preparer, up to 200 characters.propertyType: the property type, such as Residential or Commercial, up to 100 characters.referenceNumber: the reference, job or insurance claim number, up to 100 characters.notes: free-form notes, several lines allowed, up to 5,000 characters.
A change fires project.updated to your webhooks. Writes count toward the 60 requests a minute, and each key can also make 10 writes a minute (20 per account). Requests refused as invalid don’t count toward the write limit.
Room-by-room measurements
GET /api/v1/projects/{id}/measurements returns the editor’s Measurement Sheets as data: every room on every level, in the order estimators key them in (rooms by name within each level, Bedroom 2 before Bedroom 10), with totals per level and for the project. The numbers are the same as the finish takeoff’s. Every length is in metres (to the millimetre) and every area in square metres (to 0.01 m²); units is the plan’s own, imperial or metric, so you can show them the way its owner does. Each room has its id and name and:
ceiling_height_m: The room’s ceiling height.floor_area_m2: Floor area less stair and open-to-below openings in it.ceiling_area_m2: Ceiling area.perimeter_m: The whole outline, open sides included.wall_area_gross_m2, openings_area_m2, wall_area_net_m2: Wall area to the ceiling, the doors, windows and openings in it, and what is left.baseboard_m: Wall length less doors, openings and floor-level windows.doors, windows: How many of each are in the room’s walls.walls[]: Each wall run of the outline, numbered clockwise from the corner nearest the top left: number, kind (wall, part_open or open_side), length_m, wall_length_m (the part with a wall behind it) and its gross, openings and net areas.openings[]: Each door, window and cased opening: id, kind (door, window or opening), mark as on the plan sheets (null for openings), type, wall (the run it is in), width_m, height_m and a window’s sill_m.
curl https://vplan.ai/api/v1/projects/9c1e.../measurements \
-H "Authorization: Bearer $VPLAN_KEY"
{
"id": "9c1e...", "name": "12 Elm St", "updated_at": "2026-10-07T09:41:52Z", "units": "imperial",
"levels": [{
"id": "L1", "name": "Main Level", "order": 0, "elevation_m": 0,
"totals": { "rooms": 7, "floor_area_m2": 122.6, "wall_area_net_m2": 301.4, "perimeter_m": 118.2, ... },
"rooms": [{
"id": "r1", "name": "Kitchen", "ceiling_height_m": 2.438, "floor_area_m2": 12, "ceiling_area_m2": 12,
"perimeter_m": 14, "wall_area_gross_m2": 34.14, "openings_area_m2": 3.32, "wall_area_net_m2": 30.82,
"baseboard_m": 13.086, "doors": 1, "windows": 1,
"walls": [{ "number": 1, "kind": "wall", "length_m": 4, "wall_length_m": 4, "wall_area_gross_m2": 9.75,
"openings_area_m2": 1.86, "wall_area_net_m2": 7.9 }, ...],
"openings": [{ "id": "d1", "kind": "door", "mark": "D01", "type": "Single", "wall": 1,
"width_m": 0.914, "height_m": 2.032, "sill_m": null }, ...]
}]
}],
"totals": { "rooms": 7, ... }
}format=csv returns the same sheet as one CSV file laid out room by room (a Room line, its Wall lines, then its doors, windows and openings; UTF-8 with a byte order mark), and format=xlsx an Excel workbook that adds a Room totals tab: the files Export → Measurement Sheets downloads in the editor. They are in feet, square feet and LF, or metres and square metres, set by units=imperial or metric (default: the plan’s units). Every format needs the projects:read scope.
curl -OJ "https://vplan.ai/api/v1/projects/9c1e.../measurements?format=xlsx&units=metric" \
-H "Authorization: Bearer $VPLAN_KEY"Exports
GET /api/v1/projects/{id}/export/{format} returns a file with a download name, made by the same exporters as the editor. Every level is included unless you pass level=active. The 3D formats take floors, ceilings, furniture and finishes as true or false.
dxf: AutoCAD DXF. Several levels: stacked in the aligned project frame (default) or side by side with layout=sideBySide. units=imperial (default) or metric.ifc: IFC4 for Revit, ArchiCAD and other BIM tools; element ids stay the same from one export to the next, so a re-import updates.glb: Binary glTF 3D model: walls cut at doors and windows, floors, furniture, finishes as materials.obj: Wavefront OBJ of the same model; mtl is its material file.xml: Rooms, walls, doors and windows with dimensions in feet (units=metric for metres), the property address and every level.
curl -OJ "https://vplan.ai/api/v1/projects/9c1e.../export/dxf?units=metric" \
-H "Authorization: Bearer $VPLAN_KEY"PDF plan set
GET /api/v1/projects/{id}/export/pdf returns the plan set as a PDF file (application/pdf, with a download name), printed by the same server renderer as the editor’s Export → PDF on Business: a true-scale sheet per level with room tags, dimensions and door and window tags, a cover sheet when there are several levels, the room table, the project details and your branding in the title block, and the project’s photos with their links. If the project has sheets laid out in the Sheets view, those are printed as laid out. Choosing levels, paper or scale prints the generated set with those settings instead.
level: active for the active level only. Default: every level.levels: Level ids, comma-separated (the ids are in the plan JSON).paper: letter, legal, tabloid, archC, archD, a4, a3 or a1. Default: Letter, or A4 with units=metric.scale: auto (default), or a drawing scale for the units: 1/2in, 3/8in, 1/4in, 3/16in, 1/8in, 3/32in, 1/16in; metric 1:50, 1:75, 1:100, 1:200, 1:500.units: imperial (default) or metric.template: The title block: standard (default), adjuster, realtor or architect.photos: false leaves out the photo pages. Default: true.sheets: false prints the generated set even when the project has its own sheets.
curl -OJ "https://vplan.ai/api/v1/projects/9c1e.../export/pdf?paper=tabloid&scale=1/4in" \
-H "Authorization: Bearer $VPLAN_KEY"The 3D view is drawn in the browser, so API PDFs don’t include it. Printing takes several seconds, so each key can print 10 PDFs every 10 minutes and each account 20. A PDF larger than 4.3 MB can’t be returned (413, too_large); leave out the photos with photos=false or print fewer levels. Reports (scope, estimate, square footage) and the printed measurement sheets are made in the app for now; the measurements themselves are above.
Webhooks
Add an endpoint under Settings → API & Developer → Webhooks and choose its events. vPlan sends it a POST with a JSON body when one happens, from the web editor or the iOS app:
project.created: a project was saved for the first time.project.updated: its plan, levels, name or details changed; at most one every 10 minutes per project, since the editor saves as you work.export.completed: a PDF, DXF, 3D model or other export was made, with its format.webhook.test: sent by the “Send test event” button.
Fetch the details with the API: events carry the project’s id, name and API URL, not the whole plan. An example:
POST https://example.com/vplan-webhook
vPlan-Event: project.updated
vPlan-Event-Id: 5b0e... (the same on every retry: use it to drop duplicates)
vPlan-Delivery: 9a41...
vPlan-Signature: t=1791490000,v1=4f6c...
{ "id": "5b0e...", "type": "project.updated", "created_at": "2026-10-08T17:01:02Z",
"data": { "project": { "id": "9c1e...", "name": "12 Elm St", "created_at": "...", "updated_at": "...",
"url": "https://vplan.ai/api/v1/projects/9c1e..." } } }Check the signature before trusting a request. It is an HMAC-SHA256, keyed with the endpoint’s signing secret (Reveal secret in Settings), of the timestamp, a dot and the raw body. Refuse it when it doesn’t match or the timestamp is more than five minutes old:
import { createHmac, timingSafeEqual } from 'crypto';
function verify(secret, header, rawBody) {
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest();
const given = Buffer.from(v1, 'hex');
return given.length === expected.length && timingSafeEqual(given, expected);
}Answer with any 2xx status within 10 seconds; do slow work afterwards. Anything else, a redirect or no answer is retried after 1 minute, 10 minutes, 1 hour and 6 hours, then given up. An endpoint that fails 15 sends in a row is turned off until you turn it back on. Endpoints must be public HTTPS URLs. Settings shows each endpoint’s recent deliveries, and Roll secret replaces the signing secret at once. You can have five endpoints.
Errors and limits
Errors are JSON with a code and a message: {"error":{"code":"not_found","message":"No project with that id."}}. 401 means the key is missing, wrong or revoked (unauthorized) or has expired (key_expired); 403 that the account is not on Business (forbidden) or the key lacks the endpoint’s scope (insufficient_scope); 404 that the project doesn’t exist or isn’t yours; 400 a bad parameter or body; 409 a create still running under the same Idempotency-Key (conflict); 413 a PDF too large to return or a body too large to accept (too_large); 422 an Idempotency-Key used with another body (idempotency_mismatch); 429 too many requests, with a Retry-After header. Each key can make 60 requests a minute, 10 of them writes (20 writes per account), and print 10 PDFs every 10 minutes (20 per account).
Questions or something you need that isn’t here? Contact us. Sample responses to build against are on Integrations.