Create crawler index programatically

Hi Team!
Do you know if it is possible to create an crawler index programatically with the API and then configure a custom ingesting pipeline?

cheers