You can use detect instead of manual parameter in the api workflow and initialize your api