Hhow to execute the REST call example taking Auth token and storing it varibale

Hi,

Is there way to execute REST call using terraform ??

I wanted to create Datadog Synthetic tests where need to generate Auth Token and pass it to other api to execute it. Since there is limitation in Datadog to pass the Auth token to multiple tests, So wanted execute Auth Token URL and retrieve and pass it to other multi tests??

Is there any way to achieve to generate token and pass to multi tests instead of generating token for every multi tests ?? Just want to reuse the token for all multi tests.

Any help much appreciated