Please check out the template at https://gempixel.com/docs/premium-url-shortener-api-guide for more information on the API.