{
  "name": "WorqHat API",
  "version": "1.0.0",
  "environment": "production"
}
Get basic server information and status, including version, environment, and available features.
GET https://api.worqhat.com/

Response

name
string
The name of the API service
version
string
The current version of the API
environment
string
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"
}