Fix API endpoint example