---
title: InfoApi
summary: Java SDK: the Info operations, 1 method, each with its parameters, result and a complete example.
order: 19
languages: [java]
sdk-package: Java SDK · nl.bimbase.bimworks.sdk
link-terms: true
---

# InfoApi

[[page:reference/sdk/java|Java SDK]] · `nl.bimbase.bimworks.sdk.api` · class · 1 method

General information about the instance

Construct it with the client of [[page:reference/sdk/java#connect|the connect step]]: `new InfoApi(client)`. Each method is one operation of the [[page:api|API part]], where it runs on its page.

<table class="dense">
<thead><tr><th>Method</th><th>Operation</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>[[page:reference/sdk/java/infoapi#getapplicationversion|getApplicationVersion]]</code></td><td>[[openapi:GetApplicationVersion]]</td><td>The BIM.works version of the instance</td></tr>
</tbody>
</table>

## `getApplicationVersion` {#getapplicationversion}

```java
public GetApplicationVersion200Response getApplicationVersion() throws ApiException
```

The BIM.works version of the instance. The version of BIM.works the instance runs, to check compatibility. No credential needed.

<table class="dense">
<tbody>
<tr><th>Operation</th><td>[[openapi:GetApplicationVersion]] · <code>POST /openapi/info/GetApplicationVersion</code></td></tr>
<tr><th>Scope</th><td>none: callable before logging in</td></tr>
</tbody>
</table>

### Parameters

None: the operation takes no request.

### Returns

<code>[[page:reference/sdk/java/models#GetApplicationVersion200Response|GetApplicationVersion200Response]]</code> — The version

### Example

```java
import nl.bimbase.bimworks.sdk.api.InfoApi;
import nl.bimbase.bimworks.sdk.client.ApiClient;

public class Example {
    public static void main(String[] args) throws Exception {
        // 1. Connect to BIM.works (GetApplicationVersion needs no login)
        ApiClient client = new ApiClient();
        client.updateBaseUri("BIM_WORKS_ADDRESS/openapi");

        // 2. The request
        // (GetApplicationVersion takes no request)

        // 3. The call
        var result = new InfoApi(client).getApplicationVersion();

        // 4. The result
        System.out.println(client.getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(result));
    }
}
```
