API Documentation

Greetings, dear user!

Welcome to Shurtit! Api documentation. Please follow the instructions to make use of this api. You can also go back to main page.

How to use

  • Send a post request to (url)/new, where url is the project base url.
  • You will get a JSON response with the original and shortened url.
  • If the URL does not follow the http(s):// format, the JSON response will contain an error similar to {"error": "invalid URL"}