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

# ping

> Health-check endpoint – verify that your Morphik server is reachable

> [tab] Sync
>
> ```python theme={null}
> def ping() -> Dict[str, Any]
> ```

> [tab] Async
>
> ```python theme={null}
> async def ping() -> Dict[str, Any]
> ```

## Returns

* `Dict[str, Any]`: A JSON object with two keys:
  * `status` – always `"ok"` when the server is running
  * `message` – human-readable confirmation string

## Example

> [tab] Sync
>
> ```python theme={null}
> from morphik import Morphik
>
> db = Morphik()
> resp = db.ping()
> assert resp["status"] == "ok"
> ```

> [tab] Async
>
> ```python theme={null}
> from morphik import AsyncMorphik
>
> async with AsyncMorphik() as db:
>     resp = await db.ping()
>     print(resp)
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.