All /api/* endpoints require an explicit API version (no default).
Supported versions (today): 1.0.
You can pass the version using one of the methods below:
- URL path segment (recommended)
/api/v1/emails?smtpId=1
- Query string
/api/emails?smtpId=1&api-version=1.0
- Header
X-Version: 1.0
The code resolves ambiguity using this order:
- URL segment (highest priority)
- Query string (
api-version) - Header (
X-Version)
If query string + header are both provided, the header is ignored (to avoid ambiguity).
Requests under /api/* that are not using /api/v{version}/... and do not provide api-version or X-Version will receive:
- HTTP
400with a JSON payload explaining how to provide the version.