Use the API to build message