(master) chat api first pass