new pin api