API documentation
View as Markdown

Versioning

The Demarky API uses a single active version with forward-compatibility headers.

Current version

The current API version is v1.

Version header

Every response includes the X-API-Version header indicating the version used to serve the request:

X-API-Version: v1

Deprecation headers

When an endpoint or version is deprecated, the response includes:

HeaderDescription
DeprecationIndicates the endpoint is deprecated
SunsetRFC 3339 timestamp when the endpoint will be removed
LinkURL to migration guidance or the new endpoint

URL structure

The API version is embedded in the URL path:

https://api.demarky.ai/v1/{resource}

All current endpoints use /v1/ as the version prefix.