GET
/
JavaScript
import Worqhat from 'worqhat';

const client = new Worqhat({
  apiKey: 'My API Key',
});

const response = await client.getServerInfo();

console.log(response.environment);
{
  "name": "WorqHat API",
  "version": "1.0.0",
  "environment": "production"
}

Response

200
application/json

Server information

The response is of type object.