Use im.api_request to clean-up api callbacks a bit.