How to add a contact to a pipeline hubspot API



Hello there!
I created programatically a new contact with API, So after creating I want this user go to a pipeline who is created already
How can I do this with the API, is there a solution ?
Other information I read is this post , but is different a deal than a pipeline