sock api: add first msg id retrieval function