Custom Domain (API)
:::highlight yellow 💡
Having issues understanding the documentation? Watch our tutorial
:::
Overview
Some internet service providers (ISP) block requests to our API. One way to get around this is to use a vpn, of course this may not be the ideal for a lot of users, this is where custom domains come into place. A custom domain will allow you to point your own URL to our API and make requests that way.
Getting Started
<TipInfo>Cloudflare will then open up. Make sure you're signed into the account that has your domain. Then click the "authorize" button.</TipInfo>
Test It Out
Open up command prompt on your device and type in,
curl https://yourwebsite.ext/1.0/ -H "user-agent:"
or if you put "api" in the root name, it would be
curl https://yourwebsite.ext/api/1.0/ -H "user-agent:"
If you set it up correctly, you should see:
{"success":false, "message":"Unhandled Type"}
Changing The Url In Your Application
Lastly, head over to our API class in your application, and search for "https://keyauth.win/api/1.2/", you will want to replace this with your new URL.
Last modified: 4 months ago