Skip to content

DeepL API key must be sent in the HTTP authorisation header #869

@catilgan-nextension

Description

@catilgan-nextension

According to the "Breaking changes (Changes Notices)" of March 2025 in the DeepL API documentation, the API key must be send in an HTTP authorisation header, instead of the POST body data.

In current implementation of wagtail_localize/machine_translators/deepl.py, we receive a 403 - Forbidden answer from the DeepL API.

You will no longer be able to authenticate a request to any endpoint by sending an API key in a query parameter. Instead, send your API key in an HTTP header named Authorization .

Refer to DeepL API Documentation for further explanation: https://developers.deepl.com/docs/resources/breaking-changes-change-notices/march-2025-deprecating-get-requests-to-translate-and-authenticating-with-auth_key#change-notice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions