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

/api/user/urls

Info

GET
Get all URLs

200
Ok (JSON)

Field NameTypeDescription
createdAtdateThe date the URL was created
idnumberThe ID of the URL
destinationstringThe destination of the URL
vanitystring?The vanity of the URL
viewsnumberThe number of vists the URL has
maxViewsnumber?The maximum number of views the URL has until deleted
urlstringRoute to view
[
...,
{
"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)

Field NameTypeDescription
createdAtdateThe date the URL was created
idstringThe ID of the URL
destinationstringThe destination of the URL
vanitystring?The vanity of the URL
viewsnumberThe number of vists the URL has
maxViewsnumber?The maximum number of views the URL has until deleted
{
"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: 4/22/2023
Edit this page on GitHub