Is there a domain name api that can be used to do things similar to how Squarespace grants subdomains to users? I want to be able to provide a similar service but am just unaware of how it works.
You don't really need an API for that, depends on your app on how you support it, but the DNS is just a wildcard A record usually.
https://www.google.com/search?client=firefox-b-1-d&channel=cus&q=dns+wildcard+subdomain
So I would be able to do something like squarespace without necessarily coding it?
Like I said it depends on your app.
To build something like Square Space you'll need code, but to add the subdomain feature depends if the app support multi-tennant features already or not. The subomain just scopes your app to a particular user.
Most development frameworks (express, rails, laravel, etc) have support for this kind of feature and there are a lot of tutorials available on how to build app like that.
Thank you I appreciate it!
AWS Route53 has an excellent api.
https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateHostedZone.html
Nice. I did some research and, I may be wrong, but it doesn't appear to accept json. I'm not sure but does CloudFlare or Easy DNS handle this too?