glass api