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

# InfoApi

[[page:reference/sdk/typescript|TypeScript SDK]] · `@bimworks/sdk` · class · 1 method

General information about the instance

Construct it with the client of [[page:reference/sdk/typescript#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/typescript/infoapi#getapplicationversion|getApplicationVersion]]</code></td><td>[[openapi:GetApplicationVersion]]</td><td>The BIM.works version of the instance</td></tr>
</tbody>
</table>

## `getApplicationVersion` {#getapplicationversion}

```typescript
getApplicationVersion(): Promise<GetApplicationVersion200Response>
```

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/typescript/models#GetApplicationVersion200Response|GetApplicationVersion200Response]]</code> — The version

### Example

```typescript
import { Configuration, GetApplicationVersion200ResponseToJSON, InfoApi } from "@bimworks/sdk";

// 1. Connect to BIM.works (GetApplicationVersion needs no login)
const client = new Configuration({ basePath: "BIM_WORKS_ADDRESS/openapi" });

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

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

// 4. The result
console.log(JSON.stringify(GetApplicationVersion200ResponseToJSON(result), null, 2));
```
