The Internet of Things API