NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #1418 most downloaded on PyPI
WorkOS Python Client
Latest stable
10.9.0
Last release 21 days ago
13 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
185 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Added support for provider_scopes query param
provider_scopes query param (https://github.com/workos/workos-python/pull/454)Full Changelog: https://github.com/workos/workos-python/compare/v5.22.0...v5.23.0
Add email as option to UserManagement.update_user
Add warnings field to FGA check / query response by @atainter in https://github.com/workos/workos-python/pull/442
Full Changelog: https://github.com/workos/workos-python/compare/v5.20.2...v5.21.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Avoid decoding jwt twice by @na-ka-na in https://github.com/workos/workos-python/pull/440
Full Changelog: https://github.com/workos/workos-python/compare/v5.20.1...v5.20.2
Convert context into query string for FGA queries by @stanleyphu in https://github.com/workos/workos-python/pull/438
Full Changelog: https://github.com/workos/workos-python/compare/v5.20.0...v5.20.1
Add custom_attributes field to SSO Profile
Allow organization_id to be optional on Connection for OAuth connections
organization_id to be optional on Connection for OAuth connections (#432)Full Changelog: v5.19.0...v5.19.1
Added password_reset.succeeded event type
password_reset.succeeded event type (https://github.com/workos/workos-python/pull/429)Full Changelog: https://github.com/workos/workos-python/compare/v5.18.1...v5.19.0
Use AsyncSession class for async load_sealed_session
Full Changelog: https://github.com/workos/workos-python/compare/v5.18.0...v5.18.1
Loosen dependency version constraints by @mrcljx in #424
load_sealed_session in #425Full Changelog: https://github.com/workos/workos-python/compare/v5.17.0...v5.18.0
Mark emails, job_title, and username standard attributes as deprecated. Enable the equivalent auto-mapped custom attributes instead
email standard attribute to DirectoryUseremails, job_title, and username standard attributes as deprecated. Enable the equivalent auto-mapped custom attributes instead (#413)Full Changelog: https://github.com/workos/workos-python/compare/v5.16.0...v5.17.0
Add metadata and external id to users and organizations from https://github.com/workos/workos-python/pull/420
Full Changelog: https://github.com/workos/workos-python/compare/v5.15.1...v5.16.0
Add missing list of workos module public symbols to allow importing like from workos import WorkOSClient
workos module public symbols to allow importing like from workos import WorkOSClient (#415)Full Changelog: https://github.com/workos/workos-python/compare/v5.15.0...v5.15.1
Fixed handling access tokens with aud claim
Add intent_options parameter on Portal.generate_link() method by @jonatascastro12 in https://github.com/workos/workos-python/pull/406
intent_options parameter on Portal.generate_link() method by @jonatascastro12 in https://github.com/workos/workos-python/pull/406Adjust dependency version pinning to allow for more cryptography versions
cryptography versions (#404)Full Changelog: https://github.com/workos/workos-python/compare/v5.13.0...v5.13.1
Added strip_customer_id parameter to update_organization
Allows proxies to be properly set via environment variables (#398). If you use the standard HTTP proxy environment variables (e.g. HTTPS_PROXY), it's
HTTPS_PROXY), it's recommend to verify there's no behavior change in your environment and adjust them if needed.Full Changelog: https://github.com/workos/workos-python/compare/v5.12.0...v5.12.1
Support screen_hint in user_management.get_authorization_url by @faroceann in https://github.com/workos/workos-python/pull/396
Full Changelog: https://github.com/workos/workos-python/compare/v5.11.1...v5.12.0
Update dependency versions pinning
Full Changelog: https://github.com/workos/workos-python/compare/v5.11.0...v5.11.1
Add GET /organization/:orgId/roles API support
Full Changelog: https://github.com/workos/workos-python/compare/v5.10.0...v5.11.0
Propagate ConflictExceptions properly by @mattgd in https://github.com/workos/workos-python/pull/389
Full Changelog: https://github.com/workos/workos-python/compare/v5.9.0...v5.10.0
fix: backport SSO Profile custom_attributes to 5.9.x (5.9.1) by @claude[bot] in https://github.com/workos/workos-python/pull/677
Full Changelog: https://github.com/workos/workos-python/compare/v5.9.0...v5.9.1
Add options to Connection resource and add sso.update_connection() in https://github.com/workos/workos-python/pull/386
options to Connection resource and add sso.update_connection() in https://github.com/workos/workos-python/pull/386Full Changelog: https://github.com/workos/workos-python/compare/v5.8.0...v5.9.0
Added prompt option to the User Management get_authorization_url method
prompt option to the User Management get_authorization_url method (#383)Add widgets module and widget get token API endpoint
Add oauth_tokens to AuthkitAuthenticationResponse in https://github.com/workos/workos-python/pull/378
oauth_tokens to AuthkitAuthenticationResponse in https://github.com/workos/workos-python/pull/378Full Changelog: https://github.com/workos/workos-python/compare/v5.5.1...v5.6.0
Update pydantic and mypy dependencies #374
Full Changelog: https://github.com/workos/workos-python/compare/v5.5.0...v5.5.1
Add "role" to profile in https://github.com/workos/workos-python/pull/372
Full Changelog: https://github.com/workos/workos-python/compare/v5.4.4...v5.5.0
Fix dsync.activated event parsing for Events API when domains present #369
Full Changelog: https://github.com/workos/workos-python/compare/v5.4.3...v5.4.4
Add missing organization membership webhook events to union #366
Full Changelog: https://github.com/workos/workos-python/compare/v5.4.2...v5.4.3
Add missing organization membership types to Event type union #363
Full Changelog: https://github.com/workos/workos-python/compare/v5.4.1...v5.4.2
Fix authentication error payload by @PaulAsjes in https://github.com/workos/workos-python/pull/360
Full Changelog: https://github.com/workos/workos-python/compare/v5.4.0...v5.4.1
## Added * Add domain_verification intent
domain_verification intent (https://github.com/workos/workos-python/pull/358)Added support for authentication.sso_failed and authentication.oauth_failed events
authentication.sso_failed and authentication.oauth_failed events (#355)Added Directory.metadata field providing user and group counts information https://github.com/workos/workos-python/pull/352
Directory.metadata field providing user and group counts information https://github.com/workos/workos-python/pull/352Full Changelog: https://github.com/workos/workos-python/compare/v5.1.0...v5.2.0
Added certificate_renewal intent for Admin Portal by @alisherry https://github.com/workos/workos-python/pull/340
certificate_renewal intent for Admin Portal by @alisherry https://github.com/workos/workos-python/pull/340Fix bug for user_management.create_user() and user_management.create_organization_membership() and improve testing
Adjust base_url parsing for build_url_with_query_params, which fixes get_authorization_url
base_url parsing for build_url_with_query_params, which fixes get_authorization_url (#342)Full Changelog: https://github.com/workos/workos-python/compare/v5.0.0...v5.0.1
The v5 release is a major rewrite to add typing and improve consistency across the SDK. There are several breaking changes, which we recommend careful…
The v5 release is a major rewrite to add typing and improve consistency across the SDK. There are several breaking changes, which we recommend carefully testing before upgrading the SDK in production.
asyncio support added to several feature modules including Directory Sync, Events, Organizations, SSO, and User Management# Previous client setup
import workos
workos.api_key = "sk_1234"
workos.client_id="client_1234"
# New client instantiation
from workos import WorkOSClient
workos_client = WorkOSClient(
api_key="sk_1234", client_id="client_1234"
)
# Previous usage
workos.client.directory_sync.list_users(
"directory_123", "group_456", 10
)
# New usage
workos_client.directory_sync.list_users(
directory_id="directory_123",
group_id="group_456",
limit=10
)
.dict() method. See the example below:# Previous implementation
user = workos.client.user_management.get_user(user_id="user_123")
email = user["email"]
# New implementation
user = workos_client.user_management.get_user(user_id="user_123")
email = user.email
# Alternatively, the user object can be converted to a dictionary
user = workos_client.user_management.get_user(user_id="user_123")
user_dictionary = user.dict()
email = user["email"]
all_connections = []
for connection in workos_client.sso.list_connections():
all_connections.append(connection)
All unique ID parameters have to be suffixed with _id for clarity, this introduced a number of breaking changes listed in the feature sections below
Order for list methods has been removed in favor of the PaginationOrder string literal. Instead of specifying Order.desc or Order.asc, use the literal strings desc and asc, respectively.
organization argument renamed to organization_idAuditLogEvent TypedDict from workos.types.audit_logsactors argument has been removed. Use actor_names and actor_ids instead.organization argument renamed to organization_iddirectory_sync.delete_directory() → directory argument renamed to directory_id
directory_sync.get_directory() → directory argument renamed to directory_id
directory_sync.get_group() → group argument renamed to group_id
directory_sync.get_user() → user argument renamed to user_id
directory_sync.list_groups()
directory_sync.list_groups() has been removed. directory_sync.list_groups_v2() has been renamed to directory_sync.list_groups().directory argument renamed to directory_iduser argument renamed to user_iddirectory_sync.list_users()
directory_sync.list_users() has been removed. directory_sync.list_users_v2() has been renamed to directory_sync.list_users().directory argument renamed to directory_idgroup argument renamed to group_idmfa.verify_factor() has been removed. Use mfa.verify_challenge() instead.organizations.list_organizations() has been removed. organizations.list_organizations_v2() is now organizations.list_organizations().organizations.create_organization() now takes payload contents as separate arguments:# Previous implementation
organization = workos_client.organizations.create_organization(
{
"name": "Foo Corp",
"domain_data": [
{
"domain": "foo-corp.com",
"state": "pending",
}
],
}
)
# New implementation
create_organization_payload = {
"name": "Foo Corp",
"domain_data": [
{
"domain": "foo-corp.com",
"state": "pending",
}
],
}
organization = workos_client.organizations.create_organization(
**create_organization_payload
)
organization argument renamed to organization_idorganization argument renamed to organization_idorganization argument renamed to organization_idpasswordless.create_session() now takes payload contents as separate arguments:# Previous implementation
passwordless_session = workos_client.passwordless.create_session({
"email": "marcelina@example.com",
"type": "MagicLink",
})
# New implementation
passwordless_session = workos_client.passwordless.create_session(
email="marcelina@example.com",
type="MagicLink",
)
id argument renamed to session_idorganization argument renamed to organization_idsso.list_connections() has been removed. sso.list_connections_v2() has been renamed to sso.list_connections().organization argument renamed to organization_idconnection argument renamed to connection_iddomains argument has been removed. Use the organization argument instead.connection argument renamed to connection_idorganization argument renamed to organization_idconnection argument renamed to connection_idaccessToken argument renamed to access_tokenprovider argument of type UserManagementProviderType is now a string literal instead of an enumsession argument renamed to session_id# Previous implementation
user = workos_client.user_management.create_user(
{
"email": "marcelina@example.com",
"password": "i8uv6g34kd490s",
"first_name": "Marcelina",
"last_name": "Davis",
}
)
# New implementation
create_user_payload = {
"email": "marcelina@example.com",
"password": "i8uv6g34kd490s",
"first_name": "Marcelina",
"last_name": "Davis",
}
user = workos_client.user_management.create_user(**create_user_payload)
user_management.update_user() now takes payload contents as separate arguments:# Previous implementation
user = workos_client.user_management.update_user(
user_id="user_01EHQ7ZGZ2CZVQJGZ5ZJZ1ZJGZ",
payload={"first_name": "Marcelina", "last_name": "Davis", "email_verified": True},
)
# New implementation
update_user_payload = {
"first_name": "Marcelina",
"last_name": "Davis",
"email_verified": True,
}
user = workos_client.user_management.update_user(
user_id="user_01EHQ7ZGZ2CZVQJGZ5ZJZ1ZJGZ",
**update_user_payload,
)
user_management.send_password_reset_email() has been removed. Use user_management.create_password_reset() instead.user_management.send_magic_auth_code() has been removed. Use user_management.create_magic_auth() instead.This release contains breaking changes. Exercise caution when utilizing the beta release as it may contain bugs. Changes are not guaranteed to be non-…
This is beta release of the next major version of the WorkOS Python SDK, which adds typing and asyncio support, among other smaller improvements. Full release notes and a migration guide are TBD.
This release contains breaking changes. Exercise caution when utilizing the beta release as it may contain bugs. Changes are not guaranteed to be non-breaking between beta releases.
Full Changelog: https://github.com/workos/workos-python/compare/v4.13.0...v5.0.0-beta1
feat: add get_profile_and_token_from_id_token for OIDC ID token exchange (4.16.0 backport) by @jonatascastro12 in https://github.com/workos/workos-pyt
Full Changelog: https://github.com/workos/workos-python/compare/v4.15.0...v4.16.0
Make name optional when updating an organization
name optional when updating an organization (#311)Add organization_id parameter to authenticate_with_refresh_token
organization_id parameter to authenticate_with_refresh_token (#296)### Added * Support for Apple OAuth
Marked the allow_profiles_outside_organization Organization option as deprecated
Add PKCE parameters to User Management authentication methods
Added support for totp_secret on user_management. enroll_auth_factor
totp_secret on user_management. enroll_auth_factor (#273)user_management.find_invitation_by_token method (#274)### Added - Added role to Directory User
role to Directory User (https://github.com/workos/workos-python/pull/267)Deprecation notice for the send_password_reset_email method in favor of create_password_reset
inviter_user_id to invitation object returned by API (#268)get_email_verification, get_password_reset, and create_password_reset (#268)send_password_reset_email method in favor of create_password_reset (#268)Add JWKS and logout methods by @PaulAsjes in https://github.com/workos/workos-python/pull/265
Full Changelog: https://github.com/workos/workos-python/compare/v4.6.0...v4.7.0
Deprecation notice for the send_magic_auth_code method in favor of create_magic_auth
Add domain_data to Organizations Create and Update methods to replace the now deprecated domains parameter
domain_data to Organizations Create and Update methods to replace the now deprecated domains parameter (#257)Allow passing in organization_id into the Events API as a parameter https://github.com/workos/workos-python/pull/259
organization_id into the Events API as a parameter https://github.com/workos/workos-python/pull/259Fix string interpolation when building MFA URLs in https://github.com/workos/workos-python/pull/254
Full Changelog: https://github.com/workos/workos-python/compare/v4.3.0...v4.3.1
Added optional role_slug parameter to send invitation payload to specify a user's organization membership role when inviting
Added configurable request timeout
### Added - Added session management api
Added impersonator data to User Management authentication responses
impersonator data to User Management authentication responses (#237)Role parameter to User Management OrganizationMembership API, and new PUT endpoint for User Management OrganizationMembership API
One column per quarter.