Skip to main content

API Versioning Guide

The Firma API uses header-based versioning via the X-API-Version header. This allows you to specify which API version you want to use, with automatic deprecation warnings and a structured sunset process.

How to Specify a Version

Include the X-API-Version header in your request:
If the X-API-Version header is omitted, the API defaults to the current stable version (currently 1).

Version Lifecycle

Each API version goes through three stages:

Response Headers

For Active Versions

For Deprecated Versions

When a version is deprecated, the following headers are included in every response:

Error Responses

Invalid Version Header

Unsupported Version

Sunset Version (Removed)

Breaking Changes Policy

Breaking changes are only introduced in major version increments (e.g., v1 → v2). Non-breaking changes such as new optional fields or new endpoints do not require a new version.
When a new major version is released:
  1. The previous version is marked as deprecated
  2. You’ll receive warning headers for a recommended 6-month deprecation period
  3. After the sunset date, the old version returns 410 Gone

What Constitutes a Breaking Change?

Breaking changes include:
  • Removing or renaming existing fields
  • Changing field types or validation rules
  • Removing endpoints
  • Changing authentication requirements
  • Modifying rate limits significantly
Non-breaking changes include:
  • Adding new optional fields
  • Adding new endpoints
  • Adding new enum values (if your client handles unknown values gracefully)
  • Improving error messages

Best Practices

Implement automated checks in your API client code to detect Deprecation and Sunset headers. Log warnings when these headers are present.
Rather than relying on the default version, always specify the X-API-Version header explicitly. This prevents unexpected breaking changes when the default version changes.
Stay informed about upcoming changes by subscribing to the changelog or API announcements. This gives you advance notice of:
  • New version releases
  • Deprecation schedules
  • Breaking changes
  • Migration guides
When a new version is announced, test your integration against it well before the sunset date of the old version. This gives you time to:
  • Identify breaking changes in your implementation
  • Update your code and dependencies
  • Test thoroughly in staging
  • Deploy with confidence before the deadline

Current Version Status

The current active version is v1 with no deprecation scheduled at this time.
When new versions are released or deprecation schedules are announced, this guide will be updated with specific dates and migration information.

Authentication

Learn about API key authentication and JWT tokens

Complete Setup Guide

Get started with the Firma API

Webhooks

Set up webhook notifications for events

API Reference

Browse all API endpoints