api get code mockup