# Base URL and versioning

## Base URL

```text
https://api.load-market.com/v1
```

There is one environment - production. For development use a test key: see [Test mode](/test-mode).

Integrations that still use the previous address keep working, but new integrations must use
`https://api.load-market.com/v1`.

Check availability with `GET /health` (no key needed):

```bash
curl -i https://api.load-market.com/v1/health
```

```json
{ "status": "ok", "time": 1793644927000 }
```

## Versioning

The major version is part of the path (`/v1`). Version 1 is stable.

**Additive changes ship without notice** and do not change the version in the path. They include new
endpoints, new optional request fields and query parameters, new response fields, new `status`
values and new error `code` values. Build your client to tolerate them:

- ignore response fields you do not know,
- handle an unknown error `code` by its HTTP status,
- handle an unknown tracking `status.value` gracefully,
- do not rely on the order of JSON properties or on the text of `message`.

**Breaking changes** - removing or renaming a field, changing a type or a status code, making an
optional field required - only ship in a new major version (`/v2`). The old version keeps working for
at least **6 months** after the announcement. During that period its responses carry the
`Deprecation` and `Sunset` HTTP headers, and we email the contacts on file.

The version of this documentation and of the OpenAPI file (`info.version`) follows semantic
versioning. See the [Changelog](/changelog).
