bedger API and script