> For the complete documentation index, see [llms.txt](https://docs.mapsindoors.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mapsindoors.com/sdks-and-frameworks/integration-api/integration-api-access/access-with-swagger.md).

# Access with Swagger

#### Getting started using swagger​ <a href="#getting-started-using-swagger" id="getting-started-using-swagger"></a>

The Integration API can be accessed using our [swagger](https://integration.mapsindoors.com/doc/index.html) frontend. The first thing you want to do is to log in. This is done by pressing Authorize:

<figure><img src="https://2554025873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYZLXDaaclvaSK6Q7eigW%2Fuploads%2Fgit-blob-7fcc4fbcb690efb195a03a2ce28dfae709359daf%2FSwaggerLogin%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

After this, a confirmation window will be shown. Everything is already prefilled here, so **do not change the `client_id` and `client_secret` input fields — just press Authorize**, and you will be lead to the MapsIndoors authorization service.

<figure><img src="https://2554025873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYZLXDaaclvaSK6Q7eigW%2Fuploads%2Fgit-blob-a6a9a30456693ea5dd2b07c84059a3a4ae15e4ee%2FSwaggerLogin2.png?alt=media" alt=""><figcaption></figcaption></figure>

Once logged in you can start using the Integration API. Each endpoint will grouped by function like "Categories" and "Geodata". Each of these groups offer a number endpoints that allow you to get existing data, create new data, change existing data or delete data. There are examples of each of these for you to look at, but not that this is a read-only sample solution

> ***NOTE:*** ⚠️ The sample solution is read-only. If you replace the APIkey with you own can CAN write to your own data.

We use the four standard HTTP methods to access Mapsindoors data:

* **GET** for getting data. (Marked with blue color)
* **POST** for creating new data (Marked with green color)
* **PUT** for updating existing data (Marked with yellow color)
* **DELETE** for deleting data (Marked with red color)

When you change data (using PUT) you'll need to inform us what you want to change, so you MUST include an Id. What happens to the fields you leave out differs per endpoint, and on most endpoints they are cleared. See [Updating Data](https://docs.mapsindoors.com/sdks-and-frameworks/integration-api/updating-data.md) before you change data. When creating **new** data (using POST) you´ll need to include ALL data needed for the given object type (but **not** an Id - that will be assigned for you). Otherwise the call will result in a 400 Bad Request (and feedback on what's wrong).

> ***NOTE:*** ⚠️
>
> * The sample solution is read-only. If you replace the APIkey with your own, you can CAN write to your own data.
> * ALL POST and PUT endpoints takes arrays of objects, so even if you only want to change one object you still need to surround it in brackets: "\[ {JSON model} ]"


---

# 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.mapsindoors.com/sdks-and-frameworks/integration-api/integration-api-access/access-with-swagger.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.
