Onboarding invite candidate through API

Onboarding invite candidate through API

i was created the custom function with code and before that i created connections as well..
when i execute the function it will executed success fully.. but i want know how the invite will sent as well as how its working.. will  anyone know give brief description about this...