Get the API version
GET
/api/v1/version
const url = 'https://api.aletheia-ops.com/api/v1/version';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.aletheia-ops.com/api/v1/versionResponses
Section titled “Responses”OK
Media typeapplication/json
Body of GET /api/v1/version
object
version
string
Examplegenerated
{ "version": "example"}An unexpected failure. Diagnostic detail is logged server-side and
deliberately not returned. Quote the X-Request-Id response header when
reporting one.
Media typeapplication/json
object
code
required
Stable, machine-readable identifier. Branch on this.
string
message
required
Human-readable explanation. Safe to display; do not parse.
string
Examples
Exampleinternal_error
{ "code": "internal_error", "message": "internal server error"}