API function skeleton