POST
/
api
/
v1
/
sql
import SampleHealthcare from 'samplehc';

const client = new SampleHealthcare({
  apiKey: process.env['SAMPLEHC_API_KEY'], // This is the default and can be omitted
});

const response = await client.v1.sqlExecute({ params: [{}], query: 'query' });

console.log(response);
{
  "rows": [
    "<any>"
  ]
}

Body

application/json

Response

200
application/json

The result of the SQL query execution. On success, returns 'rows'. If the query had issues but was processed, may return an 'error' object within a 200 response.