DuolingoDMH

DuolingoDMH API versioning and deprecation policy

This page explains how the DuolingoDMH API changes over time, so that agents and integrations built on /api/v1 keep working. Every API response links here with Link: </developers/versioning>; rel="deprecation" (RFC 9745).

Current version

  • v1 at /api/v1: stable. No endpoint or parameter of v1 is deprecated.
  • Contract version 1.1.0, reported as version by GET /api/v1 and as info.version in openapi.json.

How the API is versioned

The major version is part of the URL path. The contract version follows semantic versioning: the minor number grows when something is added, the patch number when something is fixed.

  • Non-breaking changes ship in the current version: new endpoints, new optional parameters, new response fields, new error codes and new headers.
  • Breaking changes only ship under a new major path such as /api/v2: removing or renaming an endpoint, parameter or field, changing a type or the meaning of a value, or making an optional parameter required.
  • Write clients that ignore unknown fields and headers, and that branch on the error code rather than on the message text.

How deprecation is announced

When an endpoint is deprecated, every response from it carries:

Deprecation: @1798761600
Sunset: Sun, 31 Oct 2027 00:00:00 GMT
Link: </api/v2/plans>; rel="successor-version", </developers/versioning>; rel="deprecation"
  • Deprecation (RFC 9745): the date from which the endpoint is deprecated, as @ and Unix seconds.
  • Sunset (RFC 8594): the date after which the endpoint may stop responding.
  • Link with rel="successor-version": the endpoint to move to, when there is one.
  • The operation is marked deprecated: true in openapi.json and listed in the changelog below.

Timeline

  • The Sunset date is at least 180 days after the Deprecation date, and never earlier.
  • When a new major version ships, the previous one keeps working for at least 180 days.
  • After the Sunset date the endpoint answers with a JSON error that has a stable code, never with an HTML page.

Deprecated features

  • X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset response headers: replaced on 2026-10-26 by RateLimit and RateLimit-Policy (see rate limits). They are still sent. A removal date will be announced here at least 180 days in advance.

Changelog

  • 1.1.0 (2026-10-26): IETF RateLimit and RateLimit-Policy headers; Link to this policy on every response; tag parameter on getApiIndex; lang parameter and language field on getContactChannels; deprecation_policy_url, cli_url and per-endpoint tag and deprecated in the API index.
  • 1.0.0 (2026-10-26): first public version with getApiIndex, listPlans, listFaqs and getContactChannels.