added the docs for messages api