With the Vercel API, you can add domains to your Vercel accounts by sending a POST request to this endpoint: https://api.vercel.com/v4/domains. To test a POST request to this endpoint, you can use the curl command in the terminal. You will also need to add a testing token inside your POST request.
Here is an example request for adding a domain to a Vercel personal account.
First, you will need to obtain the team ID using a GET request to this endpoint: https://api.vercel.com/v1/teams.
Here is an example request for adding a domain to a Vercel team account.
NOTE: Make sure to completely replace TOKEN and TEAM_ID with their respective token and ID before making a Vercel API request.