Docs for URL shorter API

{% if apikey %}

You API key is: {{apikey}}

{% endif %}

Make a request

The usage of the API is very simple, you have to make a push request to {{domain}}/user/api which have to include the folowing Arguments:

example API call with curl: curl -d "apikey={{apikey}}&short={{domain}}/example&long=http://example.com" -X POST {{url_scheme}}://{{domain}}/user/api

Responses from Server

The response from the server is always made in json format it includes the following arguments:


Response codes:

Code Meaning
0 Success
1 The short URL argument is missing
2 The long URL is missing.
3 The doamin for the short URL is not in the list of allowed domains
4 The short URL is already taken.

Preview image

Please paste your base64 image here:
(this will not work very well in google Chrome)