messages api works