Adopt preferred repository-scoped REST routes - #50
Merged
Merged
Conversation
This was referenced Aug 29, 2026
necolas
added a commit
that referenced
this pull request
Aug 29, 2026
Keep the named-ref lookup on the latest PR #50 stack. Preserve commit target-ref options without a deprecation.
Base automatically changed from
necolas/sdk-standard-fields-and-params
to
dev
September 8, 2026 18:18
Route preferred SDK calls through the unversioned, repository-scoped API. Keep exact legacy credential requests for deprecated call shapes. Add repository-name credential options and route coverage across TypeScript, Python, and Go. Keep the API-version options as deprecated no-ops.
Use the normalized repository name when selecting the JWT claim. Preserve the legacy repository ID or organization claim when repoName contains only whitespace.
necolas
force-pushed
the
necolas/sdk-rest-routes-additive
branch
from
September 8, 2026 18:22
66194dd to
6dd2cf1
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.
Why
Notion could not use the canonical repository delete route during integration because the docs described that route while the SDK still called a deprecated
/api/v1route. The same integration exposed confusion between a public repository name and an internal repository ID.Credential operations need a repository name on the canonical repository-scoped route, while the legacy create operation accepts an internal repository ID. Reusing the old field for the new meaning would silently change existing programs.
Scope
/apiroutes and repository-scoped/api/repos/{repo_name}routes.repoNameoptions across TypeScript, Python, and Go.repoNameand omitrepo_id.repoId.repoNameis absent.apiVersionas an accepted deprecated no-op.repoId.Tradeoffs
Blast Radius
This changes HTTP routes for preferred calls in all three SDK packages. Legacy credential input keeps its previous wire behavior.
This PR is stacked on #47. Merge #47, retarget this PR to
main, and require the main-branch CI result before merge. Package versions and public documentation follow in the release work.Verification
GIT_STORAGE_KEY_PATHwas available.