Diagnosis of endocarditis typically involves a combination of clinical evaluation, laboratory tests, and imaging studies. Blood cultures are crucial for identifying the causative organism. An echocardiogram can help visualize the heart valves and identify any vegetations or abnormalities. Other tools like electrocardiograms (ECG) and chest X-rays may also be used.