api: support time_to_live && override_msg_id