# GetActiveDoc method

Returns the handle of the current app.

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qReturn | { "qType": "Doc", "qHandle": &lt;handle of the app&gt; }<br>If no app is opened, an error message is returned:<br>{ "jsonrpc": "2.0", "id": 2, "error": { "code": 1007, "parameter": "No active document", "message": "App invalid" } } | [ObjectInterface](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-objectinterface.htm) |

## See also

[Create and open an app](https://help.qlik.com/en-US/sense-developer/May2025/csh/engineapi/create-and-open-app)