API Reference/api/user/api/user/urls

/api/user/urls

Info

GET
Get all URLs

200
Ok (JSON Array)

Returns a array of urls

[
...,
{
"createdAt": "2022-08-22T19:11:13.526Z",
"id": "LeifVu",
"destination": "https://google.com",
"vanity": null,
"views": 53,
"maxViews": null,
"url": "/go/LeifVu"
},
{
"createdAt": "2022-10-28T04:22:28.021Z",
"id": "67q2JE",
"destination": "https://google.com",
"vanity": "adsgsdg",
"views": 0,
"maxViews": 1,
"url": "/go/adsgsdg"
},
...
]

DELETE
Delete a URL

Body (JSON)

Field NameTypeDescription
idstringThe ID of the URL
{
"id": "LeifVu"
}

200
Ok (JSON)

Returns a url.

{
"createdAt": "2022-08-22T19:11:13.526Z",
"id": "LeifVu",
"destination": "https://google.com",
"vanity": null,
"views": 53,
"maxViews": null
}

400
Bad Request (JSON)

  • no url id - No URL ID was provided in the body.
Last updated: 3/3/2025
Edit this page on GitHub