Skip to content

[Flagship] Document app-scoped API tokens - #32851

Open
roerohan wants to merge 8 commits into
productionfrom
flagship/app-scoped-tokens
Open

[Flagship] Document app-scoped API tokens#32851
roerohan wants to merge 8 commits into
productionfrom
flagship/app-scoped-tokens

Conversation

@roerohan

@roerohan roerohan commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

Document Flagship app-scoped API tokens. Customers can now create a token that only evaluates or manages the Flagship apps they select, instead of every app in the account.

  • Add a 2026-08-24 changelog entry.
  • Add a how-to at /flagship/api-tokens/ for account-wide and app-scoped tokens.
  • Point SDK and get-started token mentions at the new page.

This PR does not change client-side evaluation guidance. A dedicated client key is follow-up work.

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@roerohan
roerohan requested review from a team, akshitsinha and palashgo as code owners August 19, 2026 09:15
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Review

⚠️ 1 warning, 💡 1 suggestion found in commit 08f0c0e.

👉 Fix in your agent 👈
Fix the following review findings in PR #32851 (https://github.com/cloudflare/cloudflare-docs/pull/32851).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
  or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit — the bot reads PR comments when a new
push triggers a review, so skip comments posted after the push will be missed.

---

## Style Guide Review

### Warnings (1)

#### SG-7b8b3abd8e29 · MDX docs should use <TypeScriptExample> for TypeScript/JS code blocks
- **File:** `src/content/docs/flagship/api-tokens.mdx` line 92
- **Issue:** Line 92 starts a raw ` ```ts ` fenced block in a docs MDX file.
- **Fix:** Replace the raw TypeScript fence with the `<TypeScriptExample>` component.

### Suggestions (1)

#### SG-a76481c4e0b6 · Bullet lists should have at least three items or be written as prose
- **File:** `src/content/docs/flagship/api-tokens.mdx` line 111
- **Issue:** The Next steps section contains a two-item bullet list (lines 111–112).
- **Fix:** Consider rewriting the two Next steps as prose sentences instead of a bullet list.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

No code review issues found.

Conventions

No convention issues found.

Style Guide Review

Warnings (1)
File Issue
flagship/api-tokens.mdx line 92 MDX docs should use for TypeScript/JS code blocks — Line 92 starts a raw ```ts fenced block in a docs MDX file. Fix: Replace the raw TypeScript fence with the <TypeScriptExample> component.
Suggestions (1)
File Issue
flagship/api-tokens.mdx line 111 Bullet lists should have at least three items or be written as prose — The Next steps section contains a two-item bullet list (lines 111–112). Fix: Consider rewriting the two Next steps as prose sentences instead of a bullet list.
Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/changelog/ @cloudflare/pm-changelogs, @cloudflare/product-owners
/src/content/docs/flagship/ @roerohan, @palashgo, @akshitsinha, @abhishekkankani, @thebongy, @cloudflare/product-owners

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Comment thread src/content/changelog/flagship/2026-08-20-app-scoped-tokens.mdx Outdated

@irvinebroque irvinebroque 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.

see chat

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 21, 2026

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://flagship-app-scoped-tokens-cloudflare-docs.cloudflare-docs.workers.dev (commit 08f0c0e)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://515c5335-cloudflare-docs.cloudflare-docs.workers.dev 08f0c0e 2026-08-21T11:19:18.561Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2fdb20d1-cloudflare-docs.cloudflare-docs.workers.dev 67cb27b 2026-08-21T11:01:12.487Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://82587f92-cloudflare-docs.cloudflare-docs.workers.dev d8bb18d 2026-08-21T10:42:56.996Z Visit the dashboard ↗
  • Build: In progress 🔵

View logs ↗
55ae8d1 2026-08-21T10:28:46.841Z View logs ↗

@roerohan
roerohan requested a review from irvinebroque August 21, 2026 10:32
Add a changelog for 2026-08-19, a how-to for creating tokens scoped to a single Flagship app, and update the client SDK warning so browsers can use Flagship App Evaluate instead of an account-wide token.
Rewrite the token page around the dashboard flow: Entire Account vs Specified Flagship apps, then pick the app and a Flagship App permission.
Add the dashboard deeplink that opens Specified Flagship apps with Flagship App Evaluate selected.
Mirror the app-scoped deeplink with a plain Account API tokens link for the account-wide flow.
Keep app-scoped tokens documented for server-side least privilege. Restore the client SDK warning and drop any guidance that puts tokens in the browser.
@roerohan
roerohan force-pushed the flagship/app-scoped-tokens branch from d8bb18d to 67cb27b Compare August 21, 2026 10:49
This release is app-scoped tokens only. Client-side evaluation is follow-up work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants