How to exhibit a listbox in a module with values from a previous JSON

I need to use a dynamic URL with a value which is to be chosen from a list created in a previous module. Example: https://mydomain/{record_id}/list

Where {record_id} is listed in a previous module with a REST API, as JSON.

So, when configuring the scenario ,I need to have a listbox with all record_ids, so I can select one.