creates API key when unit is made