Skip to content

fix: consolidate API key settings URL into a single constant#140

Merged
somanshreddy merged 1 commit into
mainfrom
05-12-fix_api_key_settings_url
May 12, 2026
Merged

fix: consolidate API key settings URL into a single constant#140
somanshreddy merged 1 commit into
mainfrom
05-12-fix_api_key_settings_url

Conversation

@somanshreddy
Copy link
Copy Markdown
Collaborator

@somanshreddy somanshreddy commented May 12, 2026

Description

The old /settings/api path no longer exists in the HeyGen web app. All error hints and auth guidance in the CLI were linking users to a dead page when they needed to generate or manage API keys.

This PR:

  • Replaces the broken URL with https://app.heygen.com/settings?nav=API (confirmed working via the pacific frontend codebase)
  • Extracts the URL as APIKeySettingsURL in internal/errors so all four usage sites (auth help text, env-var auth error, file auth error, insufficient_credit hint) reference a single constant
  • Adds the billing link to the insufficient_credit error hint, which previously only suggested heygen user me get without telling users where to purchase credits

Testing

  • make test passes (all assertions updated to match new URL)
  • Manually verified https://app.heygen.com/settings?nav=API opens the API key settings modal in the web app

🤖 Generated with Claude Code

The old /settings/api path no longer exists. Replace all occurrences
with the working https://app.heygen.com/settings?nav=API URL and
extract it as APIKeySettingsURL in internal/errors so every hint
references the same constant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@somanshreddy somanshreddy force-pushed the 05-12-fix_api_key_settings_url branch from b988d88 to 5c70db9 Compare May 12, 2026 20:25
@somanshreddy somanshreddy merged commit f5794eb into main May 12, 2026
9 checks passed
@somanshreddy somanshreddy deleted the 05-12-fix_api_key_settings_url branch May 12, 2026 22:23
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.

1 participant