How to execute a model in cam-script for a embedded camForm

I’m taking over a project that uses Camunda 7 BPMD with an embedded form.

The form shows a task, and you could click a submit button that then runs:

camForm.submit();

Which by some magic that I do not understand yet, executes this model, setup in the Camunda modeller:

That model is configured to do a POST to /task/{id}/submit-form which is a “native” endpoint documented here.

That model calls a backend controlled by “us” in turn, that marks a related request of the task as approved and creates a new request with an id that I would like do display in a message to the user back in the Camunda form. The problem is, that the “task submit” function does not return any content, as the documentation also clearly states.

My idea to a solution is that when the submission is done, I will trigger a second api call in order to fetch the new ID, and then display it to the user.

So if I define such a call in my model, how could I trigger it in my cam-script at front end? Pseudo syntax of what I want to do:

camForm.execute("name of my other api model call");