Get basic server information and status, including version, environment, and available features.
GET https://api.worqhat.com/
Response
The name of the API service
The current version of the API
The environment the API is running in (e.g., “production”, “staging”)
Code Examples
import Worqhat from 'worqhat';
const client = new Worqhat({
apiKey: process.env.WORQHAT_API_KEY,
});
const response = await client.getServerInfo();
console.log(response.environment);
{
"name": "WorqHat API",
"version": "1.0.0",
"environment": "production"
}