Test and implementation of the building of a API url to send messages