Last updated 1 month ago
Retrieve an authentication token to be used for API communication.
Success
"jwtToken"
Check the health of the system
"Healthy"
const response = await fetch('/v1/auth/token', { method: 'POST', headers: { "clientId": "text", "clientSecret": "text" }, }); const data = await response.json();
{ "bearerToken": "jwtToken" }
const response = await fetch('/v1/system/health', { method: 'GET', headers: { "Authorization": "text", "x-mythical-environment-id": "123e4567-e89b-12d3-a456-426614174000" }, }); const data = await response.json();
{ "redisServices": "Healthy", "databaseServices": "Healthy" }