Fix DeepL API auth to use Authorization header instead of legacy query/body params#815
Merged
ManlyMarco merged 1 commit intobbepis:masterfrom Mar 6, 2026
Merged
Conversation
…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.
There was a problem hiding this comment.
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_keyfrom URL templates and form body parameters - Added
Authorizationheader withDeepL-Auth-Keyscheme to HTTP requests - Switched from
PostAsync(which created a redundant, unusedHttpRequestMessage) toSendAsyncusing the properly configured request object
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ManlyMarco
approved these changes
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DeepL deprecated passing
auth_keyas 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