Getting build details programmatically using the REST API