# Migration & Compatibility

This guide ensures smooth transitions between SDK versions and addresses common compatibility concerns.

### Backward Compatibility Promise

**All SDK versions 2.x maintain 100% backward compatibility.** Your existing code will continue to work without any modifications when upgrading.

### No-Risk Upgrade Process

#### Step 1: Update CDN Reference

Simply change your script tag - that's it!

```html
<!-- Before: Any 2.x version -->
<script src="https://cdn.firstoken.co/captures/js/2.1/sdk.js"></script>
<!-- or -->
<script src="https://cdn.firstoken.co/captures/js/2.2/sdk.js"></script>

<!-- After: Latest version -->
<script src="https://cdn.firstoken.co/captures/js/2.3/sdk.js"></script>
```

#### Step 2: Test Your Implementation

Your existing code should work unchanged:

#### Step 3: Enjoy New Features (Optional)

New features are available when you're ready to use them. Implement JWT only when you need enhanced security.&#x20;

To encrypt payload data sent to us, please contact support to enable this feature on your inbound route.

### Support Timeline

* 2.3: Active development
* 2.2: Full support
* 2.1: Maintenance mode


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://firstoken.gitbook.io/api-docs/guides/implementing-captures-sdk-js/migration-and-compatibility.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
