---
updatedAt: 2025-08-25T12:23:19.000Z
agentTools:
  projectIndex: https://developer.varda.ag/llms.txt
---

# Returns the merged geometry of the provided boundaries.

This endpoint returns the merged geometry of the provided boundaries. The list of boundaries must be specified in the format: <pre>boundary_ids=<UUID_1>,<UUID_2> .</pre> <b>Note: Upto a max of 10 boundaries can be provided as an input.</b>

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Field ID API",
    "x-visibility": "public",
    "description": "API endpoints to integrate with the Global FieldID system.\nProtected by OAuth2.0 client credentials",
    "contact": {
      "email": "support@varda.ag"
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.varda.ag/fid/v1",
      "description": "Global FieldID API"
    }
  ],
  "security": [
    {
      "Varda-JWT": []
    }
  ],
  "tags": [
    {
      "name": "Utilities",
      "description": ""
    }
  ],
  "paths": {
    "/merged-geometry": {
      "get": {
        "tags": [
          "Utilities"
        ],
        "summary": "Returns the merged geometry of the provided boundaries.",
        "operationId": "get_merged_geometry",
        "description": "This endpoint returns the merged geometry of the provided boundaries. The list of boundaries must be specified in the format: <pre>boundary_ids=<UUID_1>,<UUID_2> .</pre> <b>Note: Upto a max of 10 boundaries can be provided as an input.</b>",
        "parameters": [
          {
            "$ref": "#/components/parameters/AcceptLanguageHeader"
          },
          {
            "in": "query",
            "name": "boundary_ids",
            "description": "The UUIDs of the boundaries to merge.\n",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": ""
          }
        ],
        "responses": {
          "200": {
            "description": "A polygon containing the merged boundary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Polygon"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Varda-JWT": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "A JWT access token is required. See [Requesting Access Tokens](https://developer.varda.ag/docs/request-access-token)."
      }
    },
    "parameters": {
      "AcceptLanguageHeader": {
        "name": "Accept-Language",
        "in": "header",
        "description": "Language and locale to return the response in",
        "required": false,
        "schema": {
          "type": "string"
        },
        "examples": {
          "en": {
            "summary": "English",
            "value": "en"
          },
          "pt": {
            "summary": "Portuguese",
            "value": "pt"
          }
        }
      }
    },
    "schemas": {
      "APIError": {
        "type": "object",
        "properties": {
          "error": {
            "required": [
              "title",
              "status",
              "detail"
            ],
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "example": "string"
              },
              "status": {
                "type": "number",
                "example": 0
              },
              "detail": {
                "type": "string",
                "example": "string"
              }
            }
          }
        }
      },
      "GeoJsonObject": {
        "description": "GeoJSON object\nThe coordinate reference system for all GeoJSON coordinates is a geographic coordinate reference system, using the World Geodetic System 1984 (WGS 84) datum, with longitude and latitude units of decimal degrees. This is equivalent to the coordinate reference system identified by the Open Geospatial Consortium (OGC) URN An OPTIONAL third-position element SHALL be the height in meters above or below the WGS 84 reference ellipsoid. In the absence of elevation values, applications sensitive to height or depth SHOULD interpret positions as being at local ground or sea level.\n",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3"
        },
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Polygon",
              "MultiPolygon",
              "Point",
              "MultiPoint",
              "LineString",
              "MultiLineString",
              "GeometryCollection",
              "Feature",
              "FeatureCollection"
            ]
          }
        },
        "required": [
          "type"
        ],
        "discriminator": {
          "propertyName": "type"
        }
      },
      "Geometry": {
        "description": "Abstract type for all GeoJSON object except Feature and FeatureCollection\n",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3"
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/GeoJsonObject"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "Point",
                  "MultiPoint",
                  "LineString",
                  "MultiLineString",
                  "Polygon",
                  "MultiPolygon",
                  "GeometryCollection"
                ]
              }
            },
            "required": [
              "type"
            ],
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "GeometryElement": {
        "description": "Abstract type for all GeoJSON 'Geometry' object the type of which is not 'GeometryCollection'\n",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3"
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/Geometry"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "Point",
                  "MultiPoint",
                  "LineString",
                  "MultiLineString",
                  "Polygon",
                  "MultiPolygon"
                ]
              }
            },
            "required": [
              "type"
            ],
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "Feature": {
        "description": "GeoJSON 'Feature' object",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3.2"
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/GeoJsonObject"
          },
          {
            "type": "object",
            "required": [
              "geometry",
              "properties"
            ],
            "properties": {
              "geometry": {
                "allOf": [
                  {
                    "nullable": true
                  },
                  {
                    "$ref": "#/components/schemas/Geometry"
                  }
                ]
              },
              "properties": {
                "type": "object",
                "nullable": true
              },
              "id": {
                "oneOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            }
          }
        ]
      },
      "FeatureCollection": {
        "description": "GeoJSON FeatureCollection object",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3.3"
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/GeoJsonObject"
          },
          {
            "type": "object",
            "required": [
              "features"
            ],
            "properties": {
              "features": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Feature"
                }
              }
            }
          }
        ]
      },
      "Position": {
        "description": "Note: Global FieldID API allows 3 values to be provided but 3rd one is not used.\nGeoJSon fundamental geometry construct.\nA position is an array of numbers. There MUST be two or more elements. The first two elements are longitude and latitude, or easting and northing, precisely in that order and using decimal numbers. Altitude or elevation MAY be included as an optional third element.\nImplementations SHOULD NOT extend positions beyond three elements because the semantics of extra elements are unspecified and ambiguous. Historically, some implementations have used a fourth element to carry a linear referencing measure (sometimes denoted as \"M\") or a numerical timestamp, but in most situations a parser will not be able to properly interpret these values. The interpretation and meaning of additional elements is beyond the scope of this specification, and additional elements MAY be ignored by parsers.\n",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3.1.1"
        },
        "type": "array",
        "minItems": 2,
        "maxItems": 3,
        "items": {
          "type": "number"
        }
      },
      "LinearRing": {
        "description": "A linear ring is a closed LineString with four or more positions.\nThe first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical.\nA linear ring is the boundary of a surface or the boundary of a hole in a surface.\nA linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.\n",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3.1.6"
        },
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Position"
        },
        "minItems": 4
      },
      "Polygon": {
        "description": "GeoJSON Polygon",
        "externalDocs": {
          "url": "https://tools.ietf.org/html/rfc7946#section-3.1.6"
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/GeometryElement"
          },
          {
            "type": "object",
            "required": [
              "coordinates"
            ],
            "properties": {
              "coordinates": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LinearRing"
                },
                "minLength": 1
              }
            }
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```