> ## 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

<Tabs>
  <Tab title="Sync">
    ```python theme={null}
    def ping() -> Dict[str, Any]
    ```
  </Tab>

  <Tab title="Async">
    ```python theme={null}
    async def ping() -> Dict[str, Any]
    ```
  </Tab>
</Tabs>

## Returns

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

## Example

<Tabs>
  <Tab title="Sync">
    ```python theme={null}
    from morphik import Morphik

    db = Morphik()
    resp = db.ping()
    assert resp["status"] == "ok"
    ```
  </Tab>

  <Tab title="Async">
    ```python theme={null}
    from morphik import AsyncMorphik

    async with AsyncMorphik() as db:
        resp = await db.ping()
        print(resp)
    ```
  </Tab>
</Tabs>
