Call external API in automation script using core_v2_http Script API

Hi,

How to call and external API in an automation script? I am using core_v2_http Script API passing the external API URL along with headers (API Key). However I am getting {"error":"unauthorized","error_description":"Invalid authentication credentials found on request"}. The same works fine in rest client. Any help will be greatly apricated.

Thanks!