feat: Add Waitlists API support - #1689
Merged
aksman-dev merged 2 commits intoAug 31, 2026
Merged
Conversation
Adds the waitlists REST API surface to userManagement: list/get waitlists, list/create entries on a waitlist (including the default alias), and approve/deny/delete waitlist entries. Fixes AUTH-6719
Contributor
Greptile SummaryAdds the waitlists REST API surface to User Management.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "fix: Return a plain list from listWaitli..." | Re-trigger Greptile |
The endpoint is not paginated, so an AutoPaginatable return would refetch the already-complete response on autoPagination(). Follows the listItContacts precedent for non-paginated list endpoints.
m0tzy
approved these changes
Aug 31, 2026
aksman-dev
deleted the
feature/auth-6719-node-sdk-support-for-waitlists
branch
August 31, 2026 18:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the waitlists REST API surface to
workos.userManagement:listWaitlists()—GET /user_management/waitlists(single page; the endpoint is not paginated and its cursors are alwaysnull)getWaitlist(waitlistId)—GET /user_management/waitlists/:id(accepts thedefaultalias for the environment's default waitlist)listWaitlistEntries(waitlistId, options?)—GET /user_management/waitlists/:id/entrieswithstate/emailfilters and standard paginationcreateWaitlistEntry(waitlistId, payload)—POST /user_management/waitlists/:id/entrieswithadditionalFieldsandsendConfirmationEmail; idempotent for duplicate emailsapproveWaitlistEntry(waitlistEntryId)—POST /user_management/waitlist_entries/:id/approvedenyWaitlistEntry(waitlistEntryId)—POST /user_management/waitlist_entries/:id/denydeleteWaitlistEntry(waitlistEntryId)—DELETE /user_management/waitlist_entries/:idMethod shapes, field names, and nullability follow the published OpenAPI spec (workos/openapi-spec
spec/open-api-spec.yamlas of ed12feb):WaitlistEntrywithapproved_at, optionaladditional_fields, nullablewaitlist_id, and thesend_confirmation_emailcreate param. Follows the existing invitations patterns (interface +*Responsepair, serializer modules,AutoPaginatablelists, path-param-first method signatures).Test plan
npm run typecheck,npm run lint,npm run build— cleannpx jest src/user-management/user-management.spec.ts— 167 tests pass, including new coverage for all seven methods: URL construction, query-param serialization (state/emailfilters), body serialization (additional_fields,send_confirmation_email), thedefaultwaitlist alias, approve/deny state transitions, and the 422user_already_existserror pathFixes AUTH-6719