Skip to content

Fix DeepL API auth to use Authorization header instead of legacy query/body params#815

Merged
ManlyMarco merged 1 commit intobbepis:masterfrom
markruler:master
Mar 6, 2026
Merged

Fix DeepL API auth to use Authorization header instead of legacy query/body params#815
ManlyMarco merged 1 commit intobbepis:masterfrom
markruler:master

Conversation

@markruler
Copy link
Copy Markdown
Contributor

DeepL deprecated passing auth_key as URL query parameter and POST body parameter in November 2025. Migrate to the required Authorization header method (DeepL-Auth-Key) per official API documentation.

ref: https://developers.deepl.com/docs/resources/breaking-changes-change-notices/november-2025-deprecation-of-legacy-auth-methods
fix #803

…y/body params

DeepL deprecated passing auth_key as URL query parameter and POST body
parameter in November 2025. Migrate to the required Authorization header
method (DeepL-Auth-Key) per official API documentation.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the DeepL Legitimate (authenticated) translation endpoint from the deprecated auth_key query/body parameter authentication to the required Authorization: DeepL-Auth-Key header method, as mandated by DeepL's January 15, 2026 deprecation of legacy auth methods (issue #803).

Changes:

  • Removed auth_key from URL templates and form body parameters
  • Added Authorization header with DeepL-Auth-Key scheme to HTTP requests
  • Switched from PostAsync (which created a redundant, unused HttpRequestMessage) to SendAsync using the properly configured request object

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ManlyMarco ManlyMarco merged commit d7fe056 into bbepis:master Mar 6, 2026
4 checks passed
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.

DeepLLegitimate endpoint no longer working after authentication method deprecation

3 participants