You need to make sure you have the freeswitch module called curl or mod_curl. You can see this from the Advanced -> Modules page.
https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod_curl_3965033/
You can create a dialplan from the main dialplan and set the condition to...