google
ref
late 19th century: abbreviation.
etymonline
ref
congrats (interj.)
1884, colloquial shortening of congratulations. Further colloquialized in British university slang to congratters (1895) and in online gamer chat shortened to grats (by 2000).