Got API working