# General Translation Python SDKs: get_version_id
URL: https://generaltranslation.com/en-US/docs/python/reference/functions/get-version-id.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Read the pinned translation version id in General Translation Python. API reference for get_version_id.

Returns the version id configured for the current source, or `None` when none is set. The version id pins which published translation version the app loads.

## Overview [#overview]

Call `get_version_id` with no arguments. It reads the value from the active [`I18nManager`](/docs/python/reference/classes/i18n-manager).

```python
from gt_flask import get_version_id  # or: from gt_fastapi import get_version_id, or: from gt_i18n import get_version_id

version = get_version_id()
```

Signature:

```python
get_version_id() -> str | None
```

*Note: It reads the active manager, so [`initialize_gt`](/docs/python/reference/functions/initialize-gt) (or [`set_i18n_manager`](/docs/python/reference/functions/set-i18n-manager)) must run first, otherwise it raises `RuntimeError`.*

## How it works [#how-it-works]

- **Reads the manager.** It returns the manager's `version_id`, set from the `version_id` argument or the `_versionId` config key.
- **Optional.** Returns `None` when no version id was configured.

## Parameters [#parameters]

`get_version_id` takes no parameters.

## Returns [#returns]

**Type** `str | None`

The configured version id, or `None`.

## Example [#example]

```python
from gt_i18n import get_version_id

get_version_id()  # e.g., "v_abc123" or None
```

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
