get types endpoint