> For the complete documentation index, see [llms.txt](https://docs.sov.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sov.ai/api-reference/token-auth.md).

# Token Auth

**Module:** `sovai.token_auth`

## Functions

### `token_auth()`

```python
def token_auth(token: str, version: Optional[str] = None)
```

Authenticates using a token, saves it, and verifies it.

**Parameters**

| Parameter | Type  | Description                                                                                               |
| --------- | ----- | --------------------------------------------------------------------------------------------------------- |
| `token`   | `str` | API authentication token version: Optional version parameter for column exclusions (e.g., 'p72', 'sovai') |

***
