Use Api_messages to get message priority