Skip to content

docs: document personal access tokens - #1226

Merged
RiskeyL merged 10 commits into
release/1.20.0from
docs/personal-access-tokens
Nov 18, 2026
Merged

RiskeyL merged 10 commits into
release/1.20.0from
docs/personal-access-tokens

Conversation

@RiskeyL

@RiskeyL RiskeyL commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Documents personal access tokens for Dify 1.20.0, in English, Chinese, and Japanese. A member creates a token on their account page, and a CI job or coding agent uses it with difyctl to run apps and set up integrations without a sign-in.

Changes

  • New page, Use a Personal Access Token (cli/personal-access-tokens): when to use a token instead of a sign-in, which commands each scope allows, how to give the token to difyctl, and troubleshooting. It sits with the CI page in a new Automate group in the CLI navigation.
  • Personal Settings (self-host): a new Personal Access Tokens section on creating, changing, replacing, and deleting a token. Manage Members gets a note that a role change or removal also applies to the member's tokens.
  • CLI pages: the CI page, Overview, Get Started, Manage Your Sign-In, and Create and Update Apps from DSL Files point to tokens where the reader chooses how a job signs in. Get Started drops its Before You Start section: the two server switches are on by default in 1.20.0, and Overview already routes readers on 1.17.x or earlier. Configuration updates the DIFY_TOKEN and DIFY_WORKSPACE_ID rows. Results, Errors, and Exit Codes updates the rate limit and the invalid bearer row, and adds a workspace not found row.
  • Environment variables: SECRET_KEY and the Dify CLI and Programmatic API section cover tokens. OPENAPI_ENABLED now defaults to true (feat(api): enable OpenAPI by default dify#46606), and the ENABLE_OAUTH_BEARER default is corrected from false to true, so the section says the CLI and tokens are on by default.
  • Glossary and termbase: rows for personal access token and the account page's token labels.
  • CLI rule pack: content ownership for tokens.

Verification

  • Behavior claims were traced in langgenius/dify at 2dd75069d6. A fact-check of this round's 19 claims found one mismatch, the workspace not found row, which is fixed. The claims were re-checked against main at 733454eae3; the only change that touched the docs is the OPENAPI_ENABLED default.
  • Link check: 0 broken links, 0 broken anchors. Format checks (English and CJK): 0 violations. Parity: 11 pages OK. Termbase in sync with the glossary.
  • The environment variable verifier was not run: it does not read the *.defaults files yet. This change adds and removes no variables.

Notes for reviewers

  • The note "Personal access tokens are available from Dify 1.20.0." on the token page is temporary. Remove it once Dify Cloud runs 1.20.0.
  • The Cloud copy of Personal Settings is not in this PR. It follows Cloud's release.
  • release/1.20.0 is merged into this branch. One conflict, the SECRET_KEY warning, keeps the release branch's wording plus the sentence that restoring the key recovers personal access tokens.
  • The OPENAPI_ENABLED default was verified on dify main; dify has no 1.20.0 branch or tag yet, so confirm the release includes it.
  • The token dialog in the product links to /cli/personal-access-tokens (fix(web): point PAT "How to use it" link to the CLI PAT docs dify#46604), so that path must not change.

Closes DC-431

Copilot AI balanced review requested due to automatic review settings November 17, 2026 10:01

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

…al-access-tokens

# Conflicts:
#	en/self-host/deploy/configuration/environments.mdx
#	ja/self-host/deploy/configuration/environments.mdx
#	zh/self-host/deploy/configuration/environments.mdx

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Copilot AI balanced review requested due to automatic review settings November 18, 2026 04:56

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@RiskeyL
RiskeyL merged commit 70f65cf into release/1.20.0 Nov 18, 2026
2 of 3 checks passed
@RiskeyL
RiskeyL deleted the docs/personal-access-tokens branch November 18, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants