skillfed

authentik-client

authentik

authentik-client v2026.5.6 227.2K downloads/30d#9,183 on PyPI
Permissive license MIT Active released

What it is and what it does

authentik-client is an auto-generated Python wrapper around authentik's REST API, built from OpenAPI specification. It provides typed classes and methods to interact with authentik's admin endpoints (apps, files, settings, system info), authenticator management (Duo, email, SMS, endpoint), and other identity platform features. The package handles HTTP communication via urllib3 and request/response serialization through pydantic, abstracting away raw HTTP details.

You configure it with an API host and bearer token, then instantiate API class instances (like AdminApi or AuthenticatorsApi) and call methods that map directly to authentik's REST endpoints. It's designed for developers building Python applications that need to programmatically manage authentik deployments, configure authenticators, or query system state—typical use cases include automation scripts, integration layers, and admin dashboards.

Use it for:

  • Automate authentik user and app provisioning in deployment pipelines or infrastructure-as-code workflows
  • Build Python admin dashboards or CLI tools that query and modify authentik settings and authenticators
  • Integrate authentik identity management into third-party applications that need to check system status or configure MFA
  • Write integration tests that set up and tear down authentik state programmatically
  • Sync authenticator configurations (Duo, email, SMS) across multiple authentik instances

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client library for the authentik identity and access management API, auto-generated from OpenAPI specification to provide typed access to authentik's admin, authenticator, and system endpoints.

Yes. The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It's the official generated client for authentik's API and is suitable for any Python project that needs to interact with authentik programmatically. Install it if you're automating authentik administration or integrating it into a larger system.

Install

authentik-client on PyPI

pip

pip install authentik-client

uv

uv add authentik-client

poetry

poetry add authentik-client

Installing authentik-client

Before you install

Low install friction with four lightweight runtime dependencies (urllib3, python-dateutil, pydantic, typing-extensions). Active maintenance with a release 23 days ago. Requires Python 3.9+.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.

Quickstart

pip install authentik-client

import os
import authentik_client
from authentik_client.rest import ApiException

configuration = authentik_client.Configuration(
    host="/api/v3",
    access_token=os.environ["BEARER_TOKEN"]
)

with authentik_client.ApiClient(configuration) as api_client:
    api_instance = authentik_client.AdminApi(api_client)
    response = api_instance.admin_apps_list()
    print(response)

Requires Python 3.9+. Must have a running authentik instance and a valid bearer token in the BEARER_TOKEN environment variable.

Verify before relying

  • Whether the generated client is kept in sync with authentik server releases and how version mismatches are handled
  • Stability guarantees for the auto-generated API surface across minor version updates

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 4 — urllib3, python-dateutil, pydantic, typing-extensions
Maintenance actively maintained — 23 days since the last release
First released
Downloads 227,178/month — #9,183 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: authentik_client-2026.5.6-py3-none-any.whl

Keywords: OpenAPI, OpenAPI-Generator, authentik

Tags

authentik api clientidentity management pythonopenapi generated clientauthentik admin apiiam api python clientauthentication management sdkauthentik rest client
identity-managementopenapi-generatedrest-client

More WWW/HTTP packages