added messages api