API call based on date?

I need to create an initial API call (not enrichment), in which a date parameter is dynamic based on the current date. For example, if I was running it today, I might want it to pass a query with date parameters for the next seven days - obviously “next seven days” is relative to the date today. How can I do this?

Yep, have definitely run into this myself too. We recently added a step, “Date & Time Import,” which you can use as your first step and then use the API Enrichment step after. In your API enrichment step, you can pull pull in the column value by wrapping the column name in { }, which will refer to the date value you have there. So, the API enrichment endpoint could look like something api_endpoint.xyz/endpoint1?date={date_value}.

1 Like