# GoFaceless API Versioning and Deprecation

The external API is served below `/api/v1` and accepts a calendar contract in the `GoFaceless-Version` request header. Omitting the header selects the current stable contract. Unsupported versions return a 400 problem-detail response before route execution.

When a supported version enters deprecation, every response for that version includes `Deprecation: true`, an HTTP-date `Sunset` header, and a `Link` to this policy. GoFaceless publishes the replacement contract before sunset and keeps the OpenAPI schema, SDK inputs, error model, and runtime routing on the same public route allowlist. Clients should log these headers, move to the current version before the sunset date, and use idempotent retries during migration.

- [OpenAPI schema](https://api.gofaceless.ai/api/v1/openapi.json)
- [Developer documentation](https://www.gofaceless.ai/en/developers)
