Versioning¶
Protocol versioning and migration strategy.
Current Version¶
a2p Protocol Version: 1.0
Semantic Versioning¶
| Component | Meaning | Example |
|---|---|---|
| MAJOR | Breaking changes | 2.0.0 |
| MINOR | New features (backward compatible) | 1.1.0 |
| PATCH | Bug fixes | 1.0.1 |
Version Negotiation¶
Request Header¶
Response Header¶
Negotiation Algorithm¶
- If
A2P-Versionspecified → use if supported - Else if
A2P-Version-Maxspecified → use highest ≤ max - Else → use latest supported
Compatibility¶
Backward Compatibility Window¶
- 2 major versions backward supported
- 24 months minimum support for previous major
Change Types¶
| Change | Backward Compatible |
|---|---|
| Add optional field | ✅ Yes |
| Add new endpoint | ✅ Yes |
| Add enum value | ✅ Yes |
| Remove field | ❌ No |
| Change field type | ❌ No |
| Remove endpoint | ❌ No |
Deprecation Policy¶
Deprecation Header¶
Deprecation: true
Sunset: Sat, 01 Jul 2027 00:00:00 GMT
Link: <https://a2p.protocol/migration/v2>; rel="successor-version"
Migration¶
Migration Endpoint¶
Request:
Response:
{
"success": true,
"data": {
"changes": [
{
"field": "memories.a2p:health",
"action": "restructure",
"description": "Health memories moved to new schema"
}
],
"warnings": [],
"rollbackSupported": true
}
}
Rollback¶
Within 30 days of migration:
Next Steps¶
- API Reference — Endpoint documentation
- Schemas — Schema definitions