This invention relates to novel heterocyclic carboxamides which increase the activity of the immune system and to the preparation thereof. n The invention is also concerned with pharmaceutical compositions containing the said compounds and methods of treatment therewith.