---
updatedAt: 2026-08-18T17:17:32.000Z
agentTools:
  projectIndex: https://docs.raptormaps.com/llms.txt
---

# GET S3 link for KML file

Retrieve signed url for kml

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Next Gen APIs",
    "description": "These are the next generation of apis for Raptor Maps. They are currently under development and should be treated as such as they won't always work.",
    "version": "0.1.0"
  },
  "paths": {
    "/solar_inspections/{inspection_id}/exports/kml": {
      "get": {
        "tags": [
          "File Exports"
        ],
        "summary": "GET S3 link for KML file",
        "description": "Retrieve signed url for kml",
        "operationId": "export_kml",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "inspection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Inspection Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Signed URL",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeographicalFileExportReady"
                }
              }
            }
          },
          "202": {
            "description": "Processing Export",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeographicalFileExportGenerating"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GeographicalFileExportGenerating": {
        "properties": {
          "inspection_id": {
            "type": "integer",
            "title": "Inspection ID"
          },
          "status": {
            "type": "string",
            "title": "Plaintext status of the export"
          },
          "message": {
            "type": "string",
            "title": "Description of the export status"
          }
        }
      },
      "GeographicalFileExportReady": {
        "properties": {
          "inspection_id": {
            "type": "integer",
            "title": "Inspection ID"
          },
          "download_url": {
            "type": "string",
            "title": "URL of file for download"
          },
          "status": {
            "type": "string",
            "title": "Plaintext status of the export"
          },
          "message": {
            "type": "string",
            "title": "Description of the export status"
          }
        }
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "servers": [
    {
      "description": "Production server",
      "url": "https://api.raptormaps.com/v2"
    }
  ]
}
```