---
title: "Versioning & Stability"
description: "ThreadAPI API versioning policy, additive-only stability commitments, and 90-day deprecation lifecycle."
---

> Documentation Index
> Fetch the complete documentation index at: https://threadapi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Versioning & Stability

ThreadAPI is designed for automated pipelines, AI agents, and production systems. We treat API stability as a non-negotiable contract: breaking changes break agent workflows and production applications.

This document outlines our versioning strategy, backward compatibility commitments, and deprecation lifecycle.

---

## API Versioning Scheme

The current stable API version is **v1**, accessible via the `/v1` base URL:

```http
https://api.threadapi.dev/v1
```

All public REST endpoints are prefixed with `/v1`. New major API versions (e.g., `/v2`) will only be introduced if fundamental, incompatible protocol transformations are required.

---

## The v1 Additive-Only Commitment

For the entire lifespan of `/v1`, ThreadAPI commits to **additive-only backward compatibility**. Existing client integrations will continue to function without modification.

### Non-breaking changes (Permitted anytime)

The following changes may occur without a major version bump or advance deprecation period:

- **New endpoints**: Adding new REST paths or MCP tools.
- **New response fields**: Adding new keys to existing JSON response payloads.
- **New optional parameters**: Adding new optional query parameters or optional request body fields.
- **Relaxed constraints**: Increasing rate limits, loosening input validations, or expanding allowable enum values.
- **New error codes**: Adding specific error codes for new features or edge conditions (existing error codes retain their semantics).

### Breaking changes (Prohibited in v1)

ThreadAPI will **never** perform the following changes within `/v1`:

- Removing or renaming existing endpoints.
- Removing, renaming, or changing the type of existing response fields.
- Removing or renaming existing query parameters or path parameters.
- Changing an optional request parameter to required.
- Altering the semantic meaning of existing fields or error codes.

---

## 90-Day Deprecation Policy

If an endpoint, parameter, or behavior is ever marked for retirement or replacement:

1. **Advance Notice**: ThreadAPI provides a minimum of **90 calendar days advance notice** before any endpoint or feature is discontinued.
2. **Notification Channels**:
   - Published in the [Changelog](/docs/changelog).
   - Flagged in the [OpenAPI specification](/openapi.json) with `deprecated: true`.
   - Direct email notification to account owners with active usage of the deprecated feature.
3. **HTTP Deprecation Headers**:
   During the active deprecation window, requests to the deprecated endpoint will return standard HTTP deprecation headers compliant with [RFC 9211](https://www.rfc-editor.org/rfc/rfc9211) and [RFC 8594](https://www.rfc-editor.org/rfc/rfc8594):
   - `Deprecation: @<timestamp>` — The Unix timestamp or date when deprecation became effective.
   - `Sunset: <HTTP-date>` — The exact future date and time when the endpoint will cease operation.
   - `Link: <https://threadapi.dev/docs/...>; rel="deprecation"` — Link to the relevant migration guide.

Example response headers during deprecation:

```http
HTTP/1.1 200 OK
Content-Type: application/json
Deprecation: @1735689600
Sunset: Mon, 30 Jun 2027 00:00:00 GMT
Link: <https://threadapi.dev/docs/migrations/v1>; rel="deprecation"
X-Request-Id: 019318b7-4d7a-7f61-b4d2-28cb81a28a21
```

Once the `Sunset` date has passed, requests to retired endpoints will return `410 Gone` or `404 Not Found` with an actionable error explanation.

---

## Client Integration Best Practices

To ensure long-term resilience across API updates, we recommend the following practices:

- **Tolerant Reader Pattern**: Parse JSON responses defensively. Your deserializer should ignore unfamiliar fields rather than failing when new fields are added.
- **Check Deprecation Headers**: Configure logging or alerting in your API gateway/client to warn when response headers contain `Deprecation` or `Sunset`.
- **Use Formal Parameter Names**: Avoid unofficial parameter aliases and use canonical parameters documented in the [API Reference](/api/).
- **Honor HTTP Status Codes & Envelopes**: Inspect HTTP status codes and the standard `{"error": {"code": "...", "retryable": bool}}` envelope rather than matching raw HTTP error strings.

Source: https://threadapi.dev/docs/versioning/index.mdx
