How to get notify_dfx response

I want create canister by frontend, then use ledger send_dfx methods and notify_dfx methods,
But how do I get the canisterId.