post messages api fix