get devices from api