Versions
Every address of the Black API starts with /v1, as in /v1/…. Within /v1, the Black-Version header selects the version of the API that answers your request.
Send the version of the API
Send the Black-Version header with a date in the form YYYY-MM-DD:
Black-Version: 2026-11-12
With cURL, on the ping:
curl --header "Black-Version: 2026-11-12" https://api.black.example/v1/ping
The response carries a Black-Version header with the version that handled the request.
Leave out the header
A request without a Black-Version header uses the current version. The response states which version that is in its own Black-Version header.
The current version is 2026-11-12, and it is the only version so far.
Fix an unknown or malformed version
A Black-Version header that is not a supported version is refused, whatever its form: an unknown date such as 2020-01-01, a malformed date such as 12/11/2026, a word such as latest, or an empty value. The answer is a 400 error with the code invalid_api_version, and param is Black-Version. The response has no Black-Version header.
Try it with a date the API does not support:
curl --header "Black-Version: 2020-01-01" https://api.black.example/v1/ping
Send 2026-11-12, or leave the header out. See Errors for the error shape.
Try the header
Try the header on GET /v1/ping. See Ping.