Using API request for isInQueueFunction