---
title: "API versioning"
description: "Date-based versioning: pin your version and upgrade on your own schedule, with a clear deprecation policy."
---

SendIt uses date-based versioning. When you create your account, your organization is pinned to the current version. Nothing breaks on its own: you decide when to adopt changes.

## Current version

```text
2026-05-01
```

## Browse the version registry

`GET /v1/versions` is the public API registry — no authentication required. It returns every registered version, oldest first:

```json
{
  "success": true,
  "data": [
    {
      "version": "2026-05-01",
      "releasedAt": "2026-05-01",
      "status": "current",
      "sunsetAt": null
    }
  ]
}
```

| Field | Meaning |
| --- | --- |
| `version` | The date-based version string, same as `SendIt-Version` |
| `releasedAt` | Release date — identical to `version` under the date-based model |
| `status` | `current` (latest), `supported`, `deprecated`, or `sunset`, per the deprecation policy |
| `sunsetAt` | Date the version stops responding, or `null` |

## Pin a version

Three mechanisms, in priority order:

### 1. Request header (highest priority, ideal for testing)

```http
SendIt-Version: 2026-05-01
```

Useful for verifying your code against a new version before permanently upgrading.

### 2. API key pin

```bash
curl -X PATCH https://api.sendit.mx/v1/api-keys/{id} \
  -H "Authorization: Bearer <jwt>" \
  -H "Content-Type: application/json" \
  -d '{ "apiVersion": "2026-05-01" }'
```

Requests on that key always use the specified version, overriding the organization pin.

### 3. Organization pin (default)

```bash
curl -X PUT https://api.sendit.mx/v1/organizations/me \
  -H "Authorization: Bearer <jwt>" \
  -H "Content-Type: application/json" \
  -d '{ "apiVersion": "2026-05-01" }'
```

Every key without its own pin inherits this version.

## Upgrade without surprises

1. Test the new version with the `SendIt-Version` header in your staging environment.
2. Adjust your code for the documented breaking changes.
3. Update your organization pin (or individual key pins) once everything is verified.

## Deprecation policy

| Timeline | What happens |
| --- | --- |
| 6 months before | The `SendIt-Version-Deprecated` header is added to every response |
| 1 month before | Email notification to the organization's OWNERs |
| After sunset | Requests return `400 API_VERSION_UNSUPPORTED` |

Every version is supported for **at least 18 months**.

## What requires a new version

New versions are rare. Only a breaking change requires one:

- Renaming or removing response fields
- Changing a field's type (e.g. string → object)
- Removing enum values
- Changing required request fields
- Changing default behavior

Adding fields, endpoints, optional parameters, or event types does **not** require a new version. Your integration must tolerate unknown fields.

## Webhook versioning

[Webhook](/en/webhooks-and-events/webhooks#the-payload) payloads **carry no version field**, and webhook endpoints are not pinned to a version of their own. There is one API version today, so every event has the same shape across all your endpoints. Your handler does not need to branch on version.
