Skip to content

fix: replace organization_billing with organization_plan_details#737

Open
abdelrahman-zaki wants to merge 6 commits into
kinde-oss:mainfrom
abdelrahman-zaki:main
Open

fix: replace organization_billing with organization_plan_details#737
abdelrahman-zaki wants to merge 6 commits into
kinde-oss:mainfrom
abdelrahman-zaki:main

Conversation

@abdelrahman-zaki

@abdelrahman-zaki abdelrahman-zaki commented May 19, 2026

Copy link
Copy Markdown
Contributor

Updated docs to replace organization_billing with organization_plan_details, standardize subnav for Account API examples, and remove Management API portal-link examples across source and generated LLM docs.

Summary by CodeRabbit

Summary by CodeRabbit

  • Documentation
    • Refined self-serve portal guidance for organizations and users, including authorized-member self-management wording and Return URL fallback behavior.
    • Standardized non-SDK portal-link deep-linking: renamed the optional parameter to subnav and updated examples to use organization_plan_details.
    • Removed prior “Kinde Management API” portal-link generation instructions, keeping Account API/access-token flows and updated SDK example references.
    • Updated API key deep-linking guidance to use subnav=api_keys via the Account API, including casing clarifications.

@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: aeb4695c-725c-43be-b104-0bae04696d68

📥 Commits

Reviewing files that changed from the base of the PR and between b90c30d and d4a8efe.

📒 Files selected for processing (4)
  • public/llms-full.txt
  • src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx
  • src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx
  • src/content/docs/manage-your-apis/add-manage-api-keys/self-serve-api-keys.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • public/llms-full.txt

Walkthrough

This PR updates self-serve portal documentation to use subnav, changes the example section to organization_plan_details, removes Kinde Management API link-generation examples, and documents Account API query-based deep links for organizations, users, and API keys.

Changes

Self-Serve Portal Navigation Documentation Update

Layer / File(s) Summary
Source portal guidance
src/content/docs/build/self-service-portal/*, src/content/docs/manage-your-apis/add-manage-api-keys/self-serve-api-keys.mdx
Updates portal generation guidance, renames sub_nav to subnav, removes Management API examples, and documents Account API redirects with subNav/subnav casing.
Generated documentation summaries
public/_llms-txt/*, public/llms-full.txt
Propagates the revised Account API flow, parameter names, supported portal section examples, user setup guidance, and SDK import path.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested labels: Update doc

Suggested reviewers: tamalchowdhury, onderay

Poem

🐰 I hopped through docs and changed a name,
Swapped JSON for queries, neat in the frame.
Billing and API keys now follow the sign,
With subnav links hopping in line.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches a real change in the docs, though it only highlights one of several related documentation updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@abdelrahman-zaki
abdelrahman-zaki marked this pull request as ready for review May 19, 2026 08:12
@abdelrahman-zaki
abdelrahman-zaki requested a review from a team as a code owner May 19, 2026 08:12

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@public/llms-full.txt`:
- Line 1148: Replace the misspelled word "generting" with "generating" in the
user-facing sentence that reads "dynamically generting the URL (see below)"
inside the docs content (search for that exact phrase to locate the text block
describing SDK vs Management API portal link generation).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8c494170-1757-40e6-ba10-6a95aa9f583c

📥 Commits

Reviewing files that changed from the base of the PR and between b3f604c and 2be7519.

📒 Files selected for processing (4)
  • public/_llms-txt/build.txt
  • public/llms-full.txt
  • src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx
  • src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx

Comment thread public/llms-full.txt Outdated

@panosatkinde panosatkinde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a place in the documentation where we list all the possible values of the sub_nav parameter?

@panosatkinde

Copy link
Copy Markdown
Contributor

I now see that we have it here for the Account API case.

For the Management API case, we don't even have the portal links generation in the public documentation here

@panosatkinde panosatkinde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Provide text where you specify that the actual set of valid values for the sub_nav are listed here: https://docs.kinde.com/kinde-apis/frontend/#tag/self-serve-portal/get/account_api/v1/portal_link

  2. Provide text where you mention that both subnav and sub_nav are accepted as the key of the parameter.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx (1)

112-128: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Parameter name is inconsistent between examples (subnav vs sub_nav).

Line 112 documents subnav, but Line 127 still uses sub_nav in the request body example. This inconsistency is likely to mislead implementers and cause invalid requests unless explicitly intentional per endpoint.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx`
around lines 112 - 128, The docs show inconsistent parameter names for the
portal endpoint: "subnav" in the description but "sub_nav" in the POST
/api/v1/portal/generate_url request body example; update the content so the
parameter name is consistent across the page (choose the actual API parameter
used by POST /api/v1/portal/generate_url and replace all occurrences of the
alternate form), and ensure the example JSON and the prose both use that same
symbol (e.g., use "sub_nav" everywhere or "subnav" everywhere to match the real
endpoint).
♻️ Duplicate comments (2)
public/llms-full.txt (2)

1148-1148: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Typo still present: generting should be generating.

The typo "dynamically generting the URL" was flagged in a previous review but remains uncorrected in line 1148.

✏️ Proposed fix
- This can also be used as a fallback URL if you decide to use the SDK method of dynamically generting the URL (see below).
+ This can also be used as a fallback URL if you decide to use the SDK method of dynamically generating the URL (see below).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@public/llms-full.txt` at line 1148, Fix the typo in the documentation phrase
"dynamically generting the URL" by replacing "generting" with "generating" so
the sentence reads "dynamically generating the URL"; update the occurrence of
that exact string in the text (near the SDK method description and the sentence
referencing the fallback URL) to ensure consistency.

1148-1148: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Inconsistent parameter names between Account API and Management API examples.

Same issue as in the organization portal section: the "Optional parameters" list documents subnav, but the Management API request body example uses "sub_nav": "profile". Please ensure both APIs are documented with their correct parameter names.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@public/llms-full.txt` at line 1148, The Account API example documents
optional param `subnav` while the Management API request body uses `sub_nav`
(and both mention `return_url`), so verify the actual parameter names used by
each endpoint (/account_api/v1/portal_link and POST /api/v1/portal/generate_url)
and make them consistent in the docs: update the "Optional parameters" list and
the Management API JSON example so both use the correct, matching keys (e.g.,
`subnav` vs `sub_nav` and `return_url`) and ensure the examples reference the
same parameter names developers should send.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@public/llms-full.txt`:
- Line 1139: The docs show inconsistent parameter names: change the "Optional
parameters" list and examples so they explicitly state the naming
conventions—SDK/JS helpers use camelCase (e.g., subNav / subnav in PortalLink or
client SDK examples) while the Management API payload uses snake_case
(`sub_nav`); update the "Optional parameters" bullet to show both variants and
ensure the POST /api/v1/portal/generate_url request body example uses `sub_nav`
(snake_case) and add a short note referencing SDK usage (PortalLink / fetch
example) to avoid confusion.

---

Outside diff comments:
In `@src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx`:
- Around line 112-128: The docs show inconsistent parameter names for the portal
endpoint: "subnav" in the description but "sub_nav" in the POST
/api/v1/portal/generate_url request body example; update the content so the
parameter name is consistent across the page (choose the actual API parameter
used by POST /api/v1/portal/generate_url and replace all occurrences of the
alternate form), and ensure the example JSON and the prose both use that same
symbol (e.g., use "sub_nav" everywhere or "subnav" everywhere to match the real
endpoint).

---

Duplicate comments:
In `@public/llms-full.txt`:
- Line 1148: Fix the typo in the documentation phrase "dynamically generting the
URL" by replacing "generting" with "generating" so the sentence reads
"dynamically generating the URL"; update the occurrence of that exact string in
the text (near the SDK method description and the sentence referencing the
fallback URL) to ensure consistency.
- Line 1148: The Account API example documents optional param `subnav` while the
Management API request body uses `sub_nav` (and both mention `return_url`), so
verify the actual parameter names used by each endpoint
(/account_api/v1/portal_link and POST /api/v1/portal/generate_url) and make them
consistent in the docs: update the "Optional parameters" list and the Management
API JSON example so both use the correct, matching keys (e.g., `subnav` vs
`sub_nav` and `return_url`) and ensure the examples reference the same parameter
names developers should send.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3b400da2-2c0a-4676-81b9-9c31840199b1

📥 Commits

Reviewing files that changed from the base of the PR and between 2be7519 and c46e8f7.

📒 Files selected for processing (4)
  • public/_llms-txt/build.txt
  • public/llms-full.txt
  • src/content/docs/build/self-service-portal/self-serve-portal-for-orgs.mdx
  • src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx
✅ Files skipped from review due to trivial changes (1)
  • src/content/docs/build/self-service-portal/self-serve-portal-for-users.mdx

Comment thread public/llms-full.txt Outdated

@panosatkinde panosatkinde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the public/_llms-txt/build.txt still refers to sub_nav.

@dtoxvanilla1991 dtoxvanilla1991 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. 3 comments. 📓

@github-actions github-actions Bot added sdk security and privacy Anything security and privacy related labels Jul 14, 2026
abdelrahman-zaki and others added 2 commits July 14, 2026 10:02
…er usage and enhance AI summary for organization portal configuration

@dtoxvanilla1991 dtoxvanilla1991 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@panosatkinde panosatkinde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to this PR https://gitea.kinde.sh/kinde/kinde/pulls/689 which has been closed, we support only "subnav" and the documentation page https://docs.kinde.com/build/self-service-portal/self-serve-portal-for-orgs/ needs to be corrected so that it talks about subnav and not sub_nav.

@panosatkinde panosatkinde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk security and privacy Anything security and privacy related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants