> ## Documentation Index
> Fetch the complete documentation index at: https://stashfyle.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Health Check

> Check API and service status.

Check the health of the API and its dependencies. No authentication required.

## Response

<ResponseField name="status" type="string" required>
  Overall status: `ok` or `degraded`.
</ResponseField>

<ResponseField name="timestamp" type="string" required>
  Current server time (ISO 8601).
</ResponseField>

<ResponseField name="checks" type="object" required>
  Status of individual services.
</ResponseField>

## Example

<CodeGroup>
  ```bash curl theme={null}
  curl https://api.stashfyle.com/v1/health
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.stashfyle.com/v1/health');
  const health = await response.json();

  if (health.status !== 'ok') {
    console.warn('API degraded:', health.checks);
  }
  ```
</CodeGroup>

```json Response theme={null}
{
  "status": "ok",
  "timestamp": "2024-01-15T10:30:00Z",
  "checks": {
    "database": { "status": "ok", "latency_ms": 12 },
    "storage": { "status": "ok", "latency_ms": 45 }
  }
}
```

## Use Cases

* Uptime monitoring (Pingdom, UptimeRobot, etc.)
* Load balancer health checks
* CI/CD deployment verification
