cURL
curl --request GET \ --url https://api.openfiles.ai/functions/v1/api/health
{ "status": "ok", "timestamp": "2023-11-07T05:31:56Z", "message": "OpenFiles API", "version": "1.0.0" }
Check if the OpenFiles API is operational
const response = await fetch('https://api.openfiles.ai/functions/v1/api/health') const health = await response.json() console.log(health.status) // "ok"
{ "status": "ok", "timestamp": "2024-01-15T10:30:00.000Z" }
Service healthy
The response is of type object.
object