> For the complete documentation index, see [llms.txt](https://docs.multiset.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.multiset.ai/fundamentals/rest-api-docs/map-upload/360-video-upload.md). Agents can also search and read this documentation through its [MCP server](https://docs.multiset.ai/~gitbook/mcp).

# 360 Video Upload

Upload a 360° video (raw Insta360 .insv or a stitched equirectangular .mp4) as a MultiSet VPS map via the REST API.

360° videos are uploaded through the **same multipart flow** as every other scan ([POST `/v2/vps/map`](https://docs.multiset.ai/fundamentals/rest-api-docs/map-upload.md), upload the parts, then `/complete-upload/{id}`). What changes is the file you package and the `source` object you send when you create the map.

There are two routes, depending on what your camera produces:

| Capture                                               | What goes in the `.zip`         | `provider`        | `fileType` |
| ----------------------------------------------------- | ------------------------------- | ----------------- | ---------- |
| **Insta360** (X4, X5, X6) or **Antigravity A1** drone | One raw `.insv` file            | `insta360`        | `360`      |
| **Any other 360 camera** (stitched video)             | One equirectangular `.mp4` file | `equirectangular` | `360`      |

Upload the **raw `.insv`** whenever you have it. MultiSet stitches it server-side, which preserves more detail than re-ingesting a vendor's stitch. For how to record a capture that reconstructs well, see [360 Videos](https://docs.multiset.ai/fundamentals/third-party-scans/360-videos.md).

## What to upload

A **single `.zip`** containing **exactly one video file** at the root of the archive:

* `.insv` for the Insta360 route, exported straight from the camera or the Insta360 app, unstitched.
* `.mp4` for the equirectangular route: monoscopic, a full 360° × 180° frame, **exactly 2:1**, H.264 or H.265. See [Equirectangular MP4 file requirements](https://docs.multiset.ai/fundamentals/third-party-scans/360-videos/equirectangular-mp4.md#file-requirements).

One video produces one map. The `.zip` must be **50 GB or smaller**, and your plan may set a lower upload size and a maximum video duration. To map a larger site, record several captures, upload each as its own map, and join them with a [MapSet](https://docs.multiset.ai/fundamentals/rest-api-docs/mapset.md).

```bash
zip capture.zip VID_20261107_101512_00_001.insv
```

{% hint style="warning" %}
Flat, single-lens and stereoscopic (over-under or side-by-side) footage is rejected, and so is an `.mp4` whose aspect ratio is not exactly 2:1.
{% endhint %}

## `source` object

Raw Insta360 `.insv` (also Antigravity A1):

```json
"source": {
  "provider": "insta360",
  "fileType": "360",
  "coordinateSystem": "RHS",
  "metadata": {
    "extension": "insv",
    "mode": "indoor",
    "scanType": "ground",
    "hasMarker": true,
    "assets": ["pano", "splat"]
  }
}
```

Stitched equirectangular `.mp4`:

```json
"source": {
  "provider": "equirectangular",
  "fileType": "360",
  "coordinateSystem": "RHS",
  "metadata": {
    "extension": "mp4",
    "mode": "outdoor",
    "scanType": "drone",
    "hasMarker": false,
    "assets": ["pano", "panoMask"]
  }
}
```

| Field                | Value                               | Notes                                                                                                                                                                                                                                                                                                    |
| -------------------- | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `provider`           | `"insta360"` \| `"equirectangular"` | `insta360` for a raw `.insv` (Insta360 cameras and the Antigravity A1), `equirectangular` for a stitched `.mp4` from any other camera. Any other provider with `fileType: "360"` is rejected with `400`.                                                                                                 |
| `fileType`           | `"360"`                             | A string, not a number.                                                                                                                                                                                                                                                                                  |
| `coordinateSystem`   | `"RHS"`                             |                                                                                                                                                                                                                                                                                                          |
| `metadata.extension` | `"insv"` \| `"mp4"`                 | The container inside the `.zip`. Optional, but recommended: if omitted, the pipeline inspects the uploaded file to decide.                                                                                                                                                                               |
| `metadata.mode`      | `"indoor"` \| `"outdoor"`           | Scene preset for reconstruction. Defaults to `indoor`.                                                                                                                                                                                                                                                   |
| `metadata.scanType`  | `"ground"` \| `"drone"`             | The capture rig. `ground` covers hand-held and tripod captures, `drone` covers body-mounted rigs, which are re-levelled before processing. Defaults to `ground`.                                                                                                                                         |
| `metadata.hasMarker` | `true` \| `false`                   | Whether a printed ChArUco board is visible in the capture. `false` skips marker detection and metric rescaling (about 15 minutes faster), so set the scale afterwards with [Map Scale](https://docs.multiset.ai/fundamentals/rest-api-docs/map-scale.md). Omit it to let the pipeline attempt detection. |
| `metadata.assets`    | `["pano", "panoMask", "splat"]`     | Optional extras, see [Optional assets](#optional-assets).                                                                                                                                                                                                                                                |

{% hint style="warning" %}
The `metadata` keys are a closed set. Any key not listed above (for example `hasPoses` or `crs`) is rejected with `400` rather than ignored.
{% endhint %}

### Optional assets

360 video is the only input that can produce every [output asset](https://docs.multiset.ai/fundamentals/maps/output-asset.md). The mesh and point cloud are always built, and you can also request:

| Value      | What you get                                                                                                                               |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `pano`     | A [360° Virtual Tour](https://docs.multiset.ai/fundamentals/maps/output-asset/360-virtual-tour.md) built from frames of the video          |
| `panoMask` | Person masks for each panorama, so people in the capture can be hidden. Requires `pano`: `["panoMask"]` on its own is rejected with `400`. |
| `splat`    | A [Gaussian Splat](https://docs.multiset.ai/fundamentals/maps/output-asset/gaussian-splat.md) render of the space                          |

Omit `assets`, or send `[]`, and no extras are built. Each extra adds processing time.

{% hint style="warning" %}
**`assets` is read once, at map creation**, and cannot be added later. If you want a tour or a splat, request it now, otherwise you will have to upload the video again as a new map.
{% endhint %}

## Step 1: create the map

```bash
curl --location 'https://api.multiset.ai/v2/vps/map?resumable=true' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
--data '{
    "mapName": "Warehouse Walkthrough",
    "fileSize": 8589934592,
    "partSize": 16777216,
    "coordinates": {
        "latitude": 12.9130,
        "longitude": 77.6392,
        "altitude": 920.0
    },
    "source": {
        "provider": "insta360",
        "fileType": "360",
        "coordinateSystem": "RHS",
        "metadata": {
            "extension": "insv",
            "mode": "indoor",
            "scanType": "ground",
            "hasMarker": true,
            "assets": ["pano", "splat"]
        }
    }
}'
```

`fileSize` is the size of the `.zip` in bytes. 360 videos are large, so this example uses the **resumable** flow, which lets you continue an interrupted upload instead of starting over. For a stitched `.mp4`, set `provider` to `"equirectangular"` and `metadata.extension` to `"mp4"`.

```json
{
  "message": "Multipart upload initialised",
  "mapCode": "MAP_QQYKIBHXZE01",
  "mapId": "67e12d4bff7ecf561f2f8a0c"
}
```

## Step 2: upload the parts

Split the `.zip` into `partSize` chunks, request presigned URLs for them with `POST /v2/vps/map/sign-part` (up to 100 part numbers per call), and `PUT` each chunk to its URL with `Content-Type: application/zip`:

```bash
curl --request PUT '<SIGNED_URL>' \
--header 'Content-Type: application/zip' \
--upload-file part-0001
```

If the connection drops, call `GET /v2/vps/map/list-parts/{mapId}` to see which parts arrived and upload only the missing ones. See [Resumable upload](https://docs.multiset.ai/fundamentals/rest-api-docs/map-upload.md#resumable-upload) for the full sequence.

## Step 3: complete the upload

```bash
curl --location --request POST 'https://api.multiset.ai/v2/vps/map/complete-upload/<MAP_ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
--data '{}'
```

The map then enters the processing queue. Allow up to an hour for a 360 video. Once its status is **active**, the map is available for VPS queries.

## After processing

* **Set metric scale** if you sent `hasMarker: false` or the capture had no printed ChArUco marker (usually the case for drone captures). See [Map Scale](https://docs.multiset.ai/fundamentals/rest-api-docs/map-scale.md).
* **Fetch the tour** if you requested `pano`. See [360° Virtual Tour (Pano)](https://docs.multiset.ai/fundamentals/rest-api-docs/pano-360-virtual-tour.md).

See the [Map Upload overview](https://docs.multiset.ai/fundamentals/rest-api-docs/map-upload.md) for the full OpenAPI specs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.multiset.ai/fundamentals/rest-api-docs/map-upload/360-video-upload.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
