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

# Base URL & Versioning

# Base URL, Versioning, and Endpoint Structure

Sorsa API uses URL-based versioning to keep your integrations stable. The version number is part of the base URL, so every request explicitly targets one specific version of the API.

## Base URL

All requests are made over HTTPS. Plain HTTP is not supported and will be rejected.

```text theme={null}
https://api.sorsa.io/v3
```

Every endpoint path is relative to this base URL. For example, the full URL for fetching a user profile is:

```text theme={null}
https://api.sorsa.io/v3/info?username=elonmusk
```

## Current version: v3

`v3` is the current, stable, and recommended version of the Sorsa API. All new endpoints, response fields, and improvements ship under v3.

## How we version changes

Not every update requires a new version number. Changes fall into two categories.

### Non-breaking changes (shipped within v3)

These are added to the current version without a version bump. Your existing integrations keep working with no changes on your side:

* Adding new endpoints
* Adding new optional query parameters to existing endpoints
* Adding new fields to JSON response objects
* Improving error messages or adding more detail to error responses

Because new response fields can be added at any time, parse responses defensively: read the fields you need and ignore any keys you do not recognize, rather than failing when an unexpected field appears.

### Breaking changes (new version number)

If we ever need to remove response fields, rename parameters, change how authentication works, or alter core endpoint behavior, we release a new version (for example, `/v4`). When that happens:

* The previous version stays online during a clearly communicated sunset period
* A migration guide with field mapping and structural changes is published in advance
* Deprecation timelines are announced through the dashboard and the documentation

## Legacy version: v2 (retired)

v2 is deprecated and has been shut down. The scheduled shutdown date was **May 1, 2026**, and v2 endpoints now return `410 Gone`.

If you have not migrated yet, move to v3 using the [Migration Guide](https://docs.sorsa.io/Migration-Guide), which maps every renamed field, updated request format, and endpoint change from v2 to v3.

## Next steps

* [Authentication](https://docs.sorsa.io/authentication) - How to authorize your v3 requests
* [Migration Guide](https://docs.sorsa.io/Migration-Guide) - Field mapping and structural changes for v2 users
* [API Reference](https://docs.sorsa.io/api-reference-guide) - Browse all endpoints with parameters and response schemas
