Skip to main content

POST /shorten

Headers#

FieldTypeRequiredDescription
AuthorizationstringYesAuthorization key to verify shortens
ZWSbooleanNoZero Width Space URLS (invisible)

Body#

Must be application/json

FieldTypeRequiredDescription
urlstringYesURL to shorten
vanitystringNoVanity URL
{    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}
{    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",    "vanity": "rick"}

Response#

{    "url": "http://localhost:3000/go/h38hd3"}
{    "url": "http://localhost:3000/go/rick"}