---
title: "Device heartbeat ping. Updates last_sync_at + capabilities, triggers fast-path drift recheck if installed-set hashes changed."
method: POST
path: "/api/mcp/tools/env_sync.heartbeat_ping"
tags: ["misc"]
---

# Device heartbeat ping. Updates last_sync_at + capabilities, triggers fast-path drift recheck if installed-set hashes changed.

`POST /api/mcp/tools/env_sync.heartbeat_ping`

## Request

- Base URL: `https://api.ainote.dev`
- URL: `https://api.ainote.dev/api/mcp/tools/env_sync.heartbeat_ping`
- Auth: API key in header `Authorization`

Device heartbeat ping. Updates last_sync_at + capabilities, triggers fast-path drift recheck if installed-set hashes changed.

## Request body

- object
  - `device_id` string, uuid, required
  - `installed_skills_hash` string, required
  - `installed_hooks_hash` string, required
  - `installed_mcp_servers_hash` string
  - `installed_skills` string[]
  - `installed_hooks` string[]
  - `claude_code_version` string
  - `os` string

## Response `200`

Tool executed successfully

- ToolSuccessResponse: Successful tool invocation. `content` mirrors the MCP `tools/call` result shape: an array of content blocks (text and optionally a structured resource payload).
  - `content` object[]
    - `type` 'text' | 'resource'
    - `text` string

## Other responses

- `400`: Invalid arguments or business-rule violation
- `401`: Missing or invalid McpKey

---

[API](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror.md) · [All operations](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/llms.txt) · [OpenAPI document](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/revisions/f6c91d85e027?raw)
