Edited query API documentation