add heartbeat support to API endpoint