Repository navigation
feat: manage team API tokens - #75
Merged
Merged
Conversation
bjarn
force-pushed
the
feat/team-api-tokens
branch
from
October 29, 2026 22:05
f80c3d0 to
f766193
Compare
bjornftw
approved these changes
Oct 30, 2026
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.
What changed
Non-breaking. Suggested version: 3.3.0 (minor). Stacked on the project API tokens PR; retarget to
mainafter that one merges.team().apiTokens(), aTeamApiTokenssub-resource for the team's API tokens:list(),iterate(),create(body)anddelete(tokenId). It followsteam().invites(): each method has the usual overloads with and withoutListTeamApiTokensQueryandRequestOptions, validates the token ID before sending, and uses the team token.createcreates a token that can only have abilities that the requesting token has. It copies the requesting token's IP allowlist, and it can't outlive the requesting token (expiresAtdefaults to the requesting token's expiry). The token value is only returned once (data().token());TeamApiTokenSecret.toString()prints it as[redacted].deletemakes a token stop working immediately. A token can only delete tokens whose abilities it also has.TeamApiTest: every operation is now checked.The generated types for these operations come with the PR below this one; this PR changes no generated files.
Usage
Checks
./gradlew checkGeneratedTypeswith the latest spec: up to date (231 files)./gradlew clean build --no-daemonon JDK 17: passed (111 tests, 0 failures)./gradlew clean build --no-daemonon JDK 24: passed (111 tests, 0 failures)Automatic-Module-Name: co.lettermintpresent, no okhttp bundledNot run locally
./gradlew checkstyleMain checkstyleTest: the build has no checkstyle tasks, and the workflow ignores the result (|| true).Suggested release tag
v3.3.0, after the whole stack has merged.