api path checking