Skip to content

chore: point key links at /api-credentials - #40

Merged
lenzhq merged 1 commit into
mainfrom
chore/api-credentials-url
Aug 17, 2026
Merged

chore: point key links at /api-credentials#40
lenzhq merged 1 commit into
mainfrom
chore/api-credentials-url

Conversation

@lenzhq

@lenzhq lenzhq commented Aug 17, 2026

Copy link
Copy Markdown
Owner

lenz.io renamed /api-integration/api-credentials. The page holds API keys and OAuth connected apps, and the old path read like an integration landing page rather than a credentials manager (it was the likeliest reason several B2B ad landing pages pointed their CTA there instead of the setup wizard).

What changed

Runtime strings users actually see

  • errors.py — the 401 remediation hint attached to every auth error
  • client.py — the missing-key error
  • webhooks.py ×3 — the webhook-secret errors

The one that's visible as a redirect

  • cli/commands.py _dashboard_url()lenz login opens this in a browser, so it is the one place a user would watch the hop happen.

Plus README, the FastAPI webhook example, and two tests.

Not urgent for anyone already installed

lenz.io keeps a permanent 302 from the old path, specifically because published versions of this package hard-code /api-integration in runtime strings and can never be updated. Nothing breaks; this just stops new releases pointing at a redirect.

openapi.json is deliberately untouched

It is generated from the Lenz repo (make regenmanage.py emit_openapi), and the upstream description change is in the corresponding Lenz PR. Regenerating here before that merges would produce a file that doesn't match. Follow-up: run make regen once the Lenz change lands.

Rides along with whatever ships next — no dedicated release needed.

🤖 Generated with Claude Code

https://claude.ai/code/session_016A7nD9KjjwujFHr17SBybh

lenz.io renamed /api-integration to /api-credentials: the page holds API keys
AND OAuth connected apps, and the old path read like an integration landing
page rather than a credentials manager.

Touches the runtime strings users actually see — the 401 remediation hint, the
missing-key error, and the three webhook-secret errors — plus _dashboard_url(),
which `lenz login` OPENS IN A BROWSER, so it is the one that would visibly
take someone to a redirect.

Not urgent for anyone already installed: lenz.io keeps a permanent 302 from the
old path precisely because published versions of this package hard-code it and
can never be updated. This just stops new releases pointing at a redirect.

openapi.json is deliberately untouched — it is generated from the Lenz repo via
`make regen`, so it picks the new wording up on the next regeneration rather
than being hand-edited here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016A7nD9KjjwujFHr17SBybh
@lenzhq
lenzhq requested a review from paveljor as a code owner August 17, 2026 09:06
@lenzhq
lenzhq merged commit f22bcbb into main Aug 17, 2026
9 checks passed
@lenzhq
lenzhq deleted the chore/api-credentials-url branch August 17, 2026 09:07
lenzhq added a commit that referenced this pull request Aug 17, 2026
lenz.io renamed /api-integration to /api-credentials and now calls the page
'API credentials' rather than 'API Integration' — the page holds API keys AND
OAuth connected apps. That text lives in the API description
(lenz/api/public_api.py), which is upstream of this file.

Generated with `make regen` against Lenz main at 8d058f71 (the merge commit of
lenzhq/Lenz#279), so this reflects merged main rather than a branch.

Diff is one line: the info.description blob, two path occurrences and two
name occurrences. No other drift — the snapshot was otherwise already in sync.

Deliberately NOT bundled into the code PR (#40): regenerating before the Lenz
change merged would have published a spec naming a URL that still 404'd.


Claude-Session: https://claude.ai/code/session_016A7nD9KjjwujFHr17SBybh

Co-authored-by: Lenz <support@lenz.io>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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