collapse API document.