> For the complete documentation index, see [llms.txt](https://docs.live-eo.com/surfacescout/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.live-eo.com/surfacescout/surfacescout-api/get-insights-export.md).

# Get insights export

One of the main use case identified so far is about getting access programmatically to insights generated in SurfaceScout in order to create tickets in ERP systems

The API endpoint to use is the following one

[`POST https://api.surfacescout.live-eo.com/insights/geojson`](broken://pages/86ec26c77b1b5e634158cb83a621c377da769eb4)

the endpoint is also available for csv.

**Headers**

<a class="button secondary">Copy</a>

```
Authorization: Bearer <token>
Content-Type: application/geojson           # or application/geo+json
Accept: application/json                 # or application/geo+json
```

**Required Fields**:

* `criticality`: low, medium, hig
* `createdTo`: date in ISO 8601 format.
* `createdFrom` ISO 8601 format.
* `status`: new, escalated, in progress, closed, reopened

**GeoJson Format Example**

```
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "insightId": "550e8400-e29b-41d4-a716-446655440002",
        "timestepBefore": "2024-01-15",
        "timestepAfter": "2024-02-15",
        "mapLink": "https://www.google.com/maps/search/?api=1&query=23.16676929357106,57.85571911720045",
        "distanceToAsset": 25.3,
        "criticality": "high",
        "status": "new",
        "caseId": "550e8400-e29b-41d4-a716-446655440003",
        "caseTitle": "Case Title Example",
        "delivery": "delivery-123",
        "changeType": "Leakage",
        "detectedBy": "Patrol",
        "createdAt": "2024-01-15",
        "imageBefore": "https://example.com/image1",
        "imageAfter": "https://example.com/image2",
        "imageBeforeId": "550e8400-e29b-41d4-a716-446655440000",
        "imageAfterId": "550e8400-e29b-41d4-a716-446655440001",
        "mediaIds": "550e8400-e29b-41d4-a716-446655440004;550e8400-e29b-41d4-a716-446655440005"
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              -122.4194,
              37.7749
            ],
            [
              -122.4194,
              37.7759
            ],
            [
              -122.4184,
              37.7759
            ],
            [
              -122.4184,
              37.7749
            ],
            [
              -122.4194,
              37.7749
            ]
          ]
        ]
      }
    }
  ]
}
```


---

# 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.live-eo.com/surfacescout/surfacescout-api/get-insights-export.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.
