How do I reuse authenticated APIs as a datasource?

This question was asked by one of our community members:

How to config a common variable, such as domain? For example, I have many API, it’s domain is same, and it’s difference for multiple environment. So I want to config it to have a common variable.

This can be solved by saving the API as a datasource.

You can create a new datasource and configure there the domain URL:

Then when you create a new API for that datasource, you won’t need to enter the URL again.