use non deprecated endpoint for messages