add trigger subscription api in document