Subdomain for each user

I have a project going on and I was wondering how I can give each user their own subdomain under my domain.

Yes create it via the API …

sorry I am really new to this, I was just wondering if you had any documentation relating to my topic I can read so I can get an I idea of how to use the api