HOW TO USE MAUTIC API TO ADD CONTACTS

Hi,
I am experienced php developer.
came accross mautic today . found it interesting and woud like to create useful extension.
I played around the api for full day. I also reffered many blogs and tutorials but still I have some doubt.

can any one send me a full source code for adding contacts using api .

I already referred documentation .
but I am not getting where to place the code for adding contacts.

awaiting for reply.

It’s here: https://developer.mautic.org/#create-contact

hi,
i referred it. would you please send me your code sample to understand it.

thanks

What have you tried so far?