[bd] API for Gallery, an add-on for XenForo