add api in square