Repository navigation
API: refuse an invitation with SEAT_REQUIRED when every paid seat is taken - #2133
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 17:44
davidmckayv
force-pushed
the
seat-required-spec
branch
5 times, most recently
from
November 24, 2026 19:55
8eb292a to
2d7e5f3
Compare
…taken An organization on OpenBot Cloud's per-member plan holds only the seats it paid for, so inviting one more person needs another seat first. createOrganizationInvitation now declares a 402 SEAT_REQUIRED problem for that case, and problems gain an optional addSeatUrl: where an owner or an admin adds a seat in the browser, coming back to OpenBot to send the invitation. Additive only. Bundle and the app, phone and Recorder clients regenerated.
Every response now declares the request id header, and the SEAT_REQUIRED 402 on createOrganizationInvitation was added beside that rule without it.
davidmckayv
force-pushed
the
seat-required-spec
branch
from
November 24, 2026 20:16
2d7e5f3 to
3327133
Compare
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.
On OpenBot Cloud's per-member plan an organization holds only the seats it paid for. Once it has paid, inviting one more person needs another seat first, and today that refusal reaches the person as "That couldn't be done just now. Try again." This is the API side: the invite operation declares the refusal, with where an admin adds the seat. Additive only.
What changed
createOrganizationInvitationdeclares a 402SEAT_REQUIREDproblem (SeatRequiredresponse): every seat the organization paid for is taken, nothing was invited. Its example's detail is the sentence a person reads: "Each member is $5 a month. Add a seat to invite someone."Problemgains an optionaladdSeatUrl(string or null, uri-reference): onSEAT_REQUIRED, where an owner or an admin adds one more seat in the browser, coming back to OpenBot to send the invitation. Null for anyone who can't add a seat.The bundle and the app, phone and Recorder clients are regenerated. No screen changes here.
Checks run locally
bun run api:lint: valid.breakingagainst main's bundle with--fail-on WARNand the accepted list: no breaking changes. The changelog is info only: the new 402 and the new optional property.bun run api:generaterun again leaves no diff (bundle and client drift clean).bun test api/(client boundary and every spec test) and the deprecations test pass.