Beta Versions
Certain WorkOS features may be available only in the beta version of the SDK. Beta versions have the-beta.* suffix, for example,
3.2.0-beta.1. For more information on how to use beta
versions, refer to the README in the GitHub repository.
Releases
June 18, 2026
v7.2.0
Latest June 18, 2026
Bug Fixes
Miscellaneous Chores
- commit publishing fixes (c7ba478)
- #401 feat(generated)!: regenerate from spec (11 changes)
⚠️ Breaking
- pipes:
- SDK surface change:
Pipes.createDataIntegrationTokenwas renamed toPipes.getAccessToken
Features
- authorization:
- Added model
ReplaceGroupRoleAssignmentEntry - Added model
ReplaceGroupRoleAssignments - Added model
DeleteGroupRoleAssignmentsByCriteria - Added endpoint
POST /authorization/groups/{group_id}/role_assignments - Added endpoint
PUT /authorization/groups/{group_id}/role_assignments - Added endpoint
DELETE /authorization/groups/{group_id}/role_assignments - Added endpoint
GET /authorization/groups/{group_id}/role_assignments/{role_assignment_id} - Added endpoint
DELETE /authorization/groups/{group_id}/role_assignments/{role_assignment_id} - client:
- Added model
ClientApiToken - Added model
ClientApiTokenResponse - Added service
Client - connect:
- Added
auth_methodtoConnectedAccount - Added
api_key_last_4toConnectedAccount - Added enum
ConnectedAccountAuthMethod - groups:
- Added model
CreateGroupRoleAssignment - Added model
GroupRoleAssignment - Added model
GroupRoleAssignmentList - Added model
GroupRoleAssignmentResource - organization_membership:
- Added model
UserOrganizationMembershipList - Added model
UserOrganizationMembershipListListMetadata - pipes:
- Added model
DataIntegrationCredentials - Added model
DataIntegrationConfigurationResponse - Added model
DataIntegrationConfigurationListResponse - Added model
ConfigureDataIntegrationBody - Added
auth_methodstoDataIntegrationsListResponseData - Added
auth_methodtoDataIntegrationsListResponseDataConnectedAccount - Added
api_key_last_4toDataIntegrationsListResponseDataConnectedAccount - Added enum
DataIntegrationCredentialsCredentialsType - Added enum
DataIntegrationsListResponseDataAuthMethods - Added enum
DataIntegrationsListResponseDataConnectedAccountAuthMethod - Added service
PipesProvider - user_management:
- Added model
UserInviteList - Added model
UserInviteListListMetadata - Made
AuthorizationCodeSessionAuthenticateRequest.client_secretoptional - Made
RefreshTokenSessionAuthenticateRequest.client_secretoptional - widgets:
- Added
widgets:pipes:managetoWidgetSessionTokenScopes
Fixes
- organization_membership:
- Changed response of
UserManagementOrganizationMembership.listfromUserOrganizationMembershiptoUserOrganizationMembershipList - user_management:
- Changed response of
UserManagementInvitations.listfromUserInvitetoUserInviteList
June 17, 2026
v7.1.0
June 17, 2026
Miscellaneous Chores
- #397 feat(generated)!: regenerate from spec (5 changes)
⚠️ Breaking
- api_keys:
- Made
expires_atrequired in API key models - directory_sync:
- Removed model
DsyncDeactivated - Removed model
DsyncDeactivatedData - Removed model
DsyncDeactivatedDataDomain - Removed enum
DsyncDeactivatedDataType - Removed enum
DsyncDeactivatedDataState - radar:
- Removed
domain_sign_up_rate_limitfromRadarStandaloneResponseControl - user_management:
- Removed
return_tofromRevokeSession
Features
- api_keys:
- Added model
ExpireApiKey - Added model
ApiKeyUpdated - Added model
ApiKeyUpdatedData - Added model
ApiKeyUpdatedDataOwner - Added model
UserApiKeyUpdatedDataOwner - Added model
ApiKeyUpdatedDataPreviousAttribute - Added endpoint
POST /api_keys/{id}/expire - audit_logs:
- Added
SnowflaketoAuditLogConfigurationLogStreamType - connect:
- Added
nametoUserObject - directory_sync:
- Added model
DsyncTokenCreated - Added model
DsyncTokenCreatedData - Added model
DsyncTokenRevoked - Added model
DsyncTokenRevokedData - user_management:
- Added
nameto user management models - webhooks:
- Added
api_key.updatedtoCreateWebhookEndpointEvents - Added
api_key.updatedtoUpdateWebhookEndpointEvents
May 28, 2026
v7.0.1
May 28, 2026
May 26, 2026
v7.0.0
May 26, 2026
Miscellaneous Chores
- deps: update googleapis/release-please-action action to v5 (#389) (f973f21)
- deps: update shivammathur/setup-php action to v2.37.0 (#388) (f9e113f)
- use shared workos/renovate-config preset (99aad6c)
- #392 feat(generated)!: regenerate from spec (10 changes)
⚠️ Breaking
- user_management: Remove organization membership methods from UserManagement service
- Removed
listOrganizationMemberships,createOrganizationMembership,getOrganizationMembership,updateOrganizationMembership,deleteOrganizationMembership,deactivateOrganizationMembership, andreactivateOrganizationMembershipmethods - These methods have been moved to the new
OrganizationMembershipService - Change to
getAuthorizationUrl()parameterscreenHintfromUserManagementAuthenticationScreenHinttoRadarStandaloneAssessRequestActiontype - Removed
UserManagementAuthenticationScreenHintenum - user_management: Remove
UserManagementOrganizationMembershipGroupsservice - Removed
$workos->userManagementOrganizationMembershipGroups()accessor listOrganizationMembershipGroups()has been moved to the newOrganizationMembershipService- radar: Remove device fingerprint and bot score from RadarStandaloneAssessRequest
- Removed
deviceFingerprintparameter fromRadar.createAttempt()method - Removed
botScoreparameter fromRadar.createAttempt()method - Removed
deviceFingerprintandbotScorefields fromRadarStandaloneAssessRequestmodel - Removed deprecated enum values from
RadarStandaloneAssessRequestAction:Login,Signup,SignUp2,SignUp3,SignIn2,SignIn3 - Changed enum values in
RadarStandaloneAssessRequestAction:SignUpfrom 'sign up' to 'sign-up',SignInfrom 'sign in' to 'sign-in' - Removed enum values from
RadarStandaloneResponseControl:CredentialStuffing,IpSignUpRateLimit - radar: Rename Radar list enums
- Renamed
RadarActiontoRadarListAction - Renamed
RadarTypetoRadarListType - audit_logs: Rename audit log models for consistency
- Renamed
AuditLogActionJsontoAuditLogAction - Renamed
AuditLogExportJsontoAuditLogExport - Renamed
AuditLogExportJsonStatetoAuditLogExportState - Renamed
AuditLogSchemaJsontoAuditLogSchema - Renamed
AuditLogSchemaJsonActortoAuditLogSchemaActorInput - Renamed
AuditLogSchemaJsonTargettoAuditLogSchemaTargetInput - Renamed
AuditLogsRetentionJsontoAuditLogsRetention createSchema()method parameter types changed:AuditLogSchemaActor→AuditLogSchemaActorInput,AuditLogSchemaTarget→AuditLogSchemaTargetInput- webhooks: Rename webhook endpoint models and update status field type
- Renamed
WebhookEndpointJsontoWebhookEndpoint - Renamed
WebhookEndpointJsonStatustoWebhookEndpointStatus - Changed
UpdateWebhookEndpoint.statusfield type fromWebhookEndpointJsonStatustoWebhookEndpointStatus - Updated webhook event enums: added
PIPES_CONNECTED_ACCOUNT_CONNECTED,PIPES_CONNECTED_ACCOUNT_DISCONNECTED,PIPES_CONNECTED_ACCOUNT_REAUTHORIZATION_NEEDEDevents - authorization: Update Authorization API with new filters and remove search parameter
- Added
resourceId,resourceExternalId,resourceTypeSlugfilter parameters tolistRoleAssignments() - Added
roleSlugfilter parameter tolistRoleAssignmentsForResourceByExternalId()andlistRoleAssignmentsForResource() - Removed
searchparameter fromlistResources()method - vault: Replace hand-maintained
WorkOS\Vaultclass with generatedWorkOS\Service\Vault - The old
WorkOS\Vaultclass (lib/Vault.php) with client-side encrypt/decrypt helpers has been removed $workos->vault()now returnsWorkOS\Service\Vaultwith a different API surface- New generated methods:
createDataKey(),createDecrypt(),createRekey(),listKv(),createKv(),getName(),getKv(),updateKv(),deleteKv(),listKvMetadata(),listKvVersions()
Features
- organization_membership: Introduce OrganizationMembershipService with membership and group operations
- New service
OrganizationMembershipServicewith methods:listOrganizationMemberships(),createOrganizationMembership(),getOrganizationMembership(),updateOrganizationMembership(),deleteOrganizationMembership(),deactivateOrganizationMembership(),reactivateOrganizationMembership(), andlistOrganizationMembershipGroups() - Accessible via
$workos->organizationMembership() - Replaces functionality previously in
UserManagementandUserManagementOrganizationMembershipGroupsservices - vault: Add new Vault service for encrypted key-value storage
- New
Vaultservice with methods:createDataKey(),createDecrypt(),createRekey(),listKv(),createKv(),getName(),getKv(),updateKv(),deleteKv(),listKvMetadata(), andlistKvVersions() - Support for encrypted object storage and management with key rotation
- New models:
CreateDataKeyResponse,DecryptResponse,ObjectMetadata,ObjectModel,ObjectSummary,ObjectWithoutValue,ObjectVersion,VersionListResponse - New enum:
VaultOrderfor sort direction - Accessible via
$workos->vault() - api_keys: Add expires_at field to API key models and creation methods
- Added
expires_atfield toApiKey,OrganizationApiKey,OrganizationApiKeyWithValue,UserApiKey,UserApiKeyWithValuemodels - Added
expires_atfield toApiKeyCreatedDataandApiKeyRevokedDataevent data models - Added optional
expiresAtparameter tocreateOrganizationApiKey()andcreateUserApiKey()methods - Support for setting API key expiration timestamps
- applications: Update ApplicationCredentialsListItem and NewConnectApplicationSecret field types
- Changed
ApplicationCredentialsListItem.lastUsedAtfield type from?stringto?\DateTimeImmutable - Changed
NewConnectApplicationSecret.lastUsedAtfield type from?stringto?\DateTimeImmutable - pipes: Add connected account event models and related types
- New models for pipe events:
PipeConnectedAccount,PipesConnectedAccountConnected,PipesConnectedAccountDisconnected,PipesConnectedAccountReauthorizationNeeded - New enum:
PipeConnectedAccountStatewith valuesconnectedandneeds_reauthorization - Support for monitoring data integration connection status changes
May 11, 2026
v6.0.2
May 11, 2026
May 7, 2026
v6.0.1
May 7, 2026
May 7, 2026
v6.0.0
May 7, 2026
6.0.0 (2026-05-06)
⚠ BREAKING CHANGES
- user_management: Add user API keys and update ordering enum
- api_keys: Restructure API key models and rename ordering enum
- vault: Rename BYOK key provider enum and add vault key deleted event
- authorization: Rename RoleAssignment to UserRoleAssignment
Features
- Add API docs generation and llms.txt index (#382) (ae03f03)
- api_keys: Restructure API key models and rename ordering enum (1bb2fe4)
- authorization: Rename EventsOrder to PaginationOrder (1bb2fe4)
- authorization: Rename RoleAssignment to UserRoleAssignment (1bb2fe4)
- directory_sync: Add name field to directory users (1bb2fe4)
- sso: Add full name support to user profiles (1bb2fe4)
- user_management: Add user API keys and update ordering enum (1bb2fe4)
- user_management: Add user context to organization memberships (1bb2fe4)
- vault: Rename BYOK key provider enum and add vault key deleted event (1bb2fe4)
Bug Fixes
April 28, 2026
v5.2.1
April 28, 2026
April 27, 2026
v5.2.0
April 27, 2026
April 20, 2026
v5.1.0
April 20, 2026
April 14, 2026
v5.0.3
April 14, 2026
April 14, 2026
v5.0.2
April 14, 2026
April 13, 2026
v5.0.1
April 13, 2026
April 13, 2026
v5.0.0
April 13, 2026
5.0.0 (2026-04-13)
Top-Level Notices
- v5 is a major SDK redesign centered on an instantiated
WorkOSclient with service accessors like$workos->sso(),$workos->userManagement(), and$workos->authorization(). Direct use of many legacy top-level service classes and transport internals has been removed or renamed. - The minimum runtime is now PHP 8.2. The SDK now depends on
guzzlehttp/guzzle:^7,paragonie/halite:^5.1, andext-curl:^8.2. - Responses and resources are now typed, generated models, pagination now uses
PaginatedResponse, and named arguments are strongly recommended because many method signatures changed in v5. - The v5 release also expands and reorganizes the SDK surface across areas like Authorization, Audit Logs, Feature Flags, Organization Domains, Connect, Events, Pipes, Radar, API Keys, Session Manager, PKCE, Webhooks, and Vault helpers.
Migration Guide
- For upgrade steps, renamed APIs, and side-by-side examples for moving from v4 to v5, see [V5_MIGRATION_GUIDE](docs/V5_MIGRATION_GUIDE.md).
Miscellaneous Chores
March 9, 2026
v4.32.0
March 9, 2026
March 6, 2026
v4.31.0
March 6, 2026
4.31.0 (2026-03-06)
Features
- Add directoryManaged to OrganizationMembership (#334) (1451af1)
- Add RBAC environment roles API support (#338) (31fb41d)
- Add RBAC permissions API support (#337) (dd7dca2)
- api: Return state field for directory users (#27) (250887e)
- Introduce a dedicated PaginatedResource object (#316) (a3ccfde)
- workos-php: Add
connectiontogetAuthorizationUrl(#29) (ade7019)
Bug Fixes
Miscellaneous Chores
February 17, 2026
4.30.1
February 17, 2026
What's Changed
- Add custom_attributes field to OrganizationMembership by @ajworkos in #318
- Configure Renovate by @renovate[bot] in #319
- Update peter-evans/create-pull-request action to v8 by @renovate[bot] in #327
- fix revokeSession api call format by @kkoch986 in #328
- Bump version to 4.30.1 by @workos-sdk-automation[bot] in #329
New Contributors
- @ajworkos made their first contribution in #318
- @renovate[bot] made their first contribution in #319
- @kkoch986 made their first contribution in #328
Full Changelog: 4.30.0...4.30.1
January 21, 2026
4.30.0
January 21, 2026
What's Changed
- Add context7.json to repo by @nicknisi in #314
- Implement Authkit Sessions by @birdcar in #315
- Bump version to 4.30.0 by @workos-sdk-automation[bot] in #317
New Contributors
- @birdcar made their first contribution in #315
- @workos-sdk-automation[bot] made their first contribution in #317
Full Changelog: v4.29.0...4.30.0
December 3, 2025
v4.29.0
December 3, 2025
What's Changed
- Add Organization Feature Flags & Vault Support by @blobaugh in #299
- Fixed deprecation notices in tests by @blobaugh in #300
- Fix PHP 8.4 deprecation: Add explicit nullable type hints by @blobaugh in #309
- Fix incomplete Portal intent documentation and add validation by @blobaugh in #310
- Add
rolesto directory user and SSO profile by @kendallstrautman in #311 - Fix test assertion by @kendallstrautman in #313
- Bump version v4.29.0 by @kendallstrautman in #312
Full Changelog: v4.28.0...v4.29.0
November 21, 2025
v4.28.0
November 21, 2025
What's Changed
- Added support for schema creation and existance checking by @blobaugh in #301
- Add ability to resend invitation by @antn in #307
New Contributors
Full Changelog: v4.27.0...v4.28.0
September 24, 2025
v4.27.0
September 24, 2025
What's Changed
- Fix small bug in DirectorySync by @gcarvelli in #291
- Add getEnvVariable utility method to fix Laravel config caching issue by @nicknisi in #293
- Adds multiple roles support to OrganizationMembership Create and Update by @csrbarber in #302
- Version bump to 4.27.0 by @csrbarber in #304
New Contributors
- @csrbarber made their first contribution in #302
Full Changelog: v4.26.0...v4.27.0
June 23, 2025
v4.26.0
June 23, 2025
What's Changed
- Added support for custom scopes (https://github.com/workos/workos-php/pull/289)
Full Changelog: v4.25.0...v4.26.0
June 17, 2025
v4.25.0
June 17, 2025
What's Changed
- Add
permissionsattribute to Role by @MrCrayfish in #287
New Contributors
- @MrCrayfish made their first contribution in #287
Full Changelog: v4.24.0...v4.25.0
May 22, 2025
v4.24.0
May 22, 2025
What's Changed
- Fixes $roleSlug behavior on updateOrganizationMembership (no longer required) (#278)
- Adds $roleSlug to createOrganizationMembership (#278)
- Adds $email to updateUser (#285)
April 25, 2025
v4.23.0
April 25, 2025
What's Changed
- Structured responses to webhook events by @bradenkeith in #265
- IDE & Typehint improvements by @bradenkeith in #264
- Pin third-party actions to currently used SHA by @nickcollisson-workos in #275
- Add customAttributes field to SSO Profile by @mattgd in #276
New Contributors
- @bradenkeith made their first contribution in #265
- @nickcollisson-workos made their first contribution in #275
Full Changelog: v4.22.0...v4.23.0
March 21, 2025
v4.22.0
March 21, 2025
What's Changed
- Add
metadatasupport (#268) - Add external_id support for organizations (#270)
- Add external_id support for users (#267)
- Add
emailstandard attribute toDirectoryUser(#261) - Mark
emails,job_title, andusernamestandard attributes as deprecated. Enable the equivalent auto-mapped custom attributes instead (#261)
New Contributors
Full Changelog: v4.21.0...v4.22.0
March 14, 2025
v4.21.0
March 14, 2025
February 21, 2025
v4.20.0
February 21, 2025
What's Changed
- add update organization membership by @jameslcarpino in #256
New Contributors
Full Changelog: v4.19.0...v4.20.0
February 20, 2025
v4.19.0
February 20, 2025
What's Changed
- added
lastSignInAtto user (https://github.com/workos/workos-php/pull/257)
Full Changelog: v4.18.0...v4.19.0
January 14, 2025
v4.18.0
January 14, 2025