What boon did Ravana get from Brahma?

Ravana asked Brahma to make him immortal. Brahma said no one could have that. So Ravana asked that no god, demon, serpent, celestial or spirit could ever kill him. He did not bother to name humans or animals, because he thought them too weak to matter. That gap is why a man, Rama, could kill him.
Source: Valmiki Ramayana. Episodes found only in later retellings are marked as such.