Skip to main content

/api/v1/urls/create

caution

This endpoint requires authentication using an API key.

POST: Create a shorturl

Headers

  • Authentication: API-KEY-HERE

Body

FieldTypeRequiredDescription
namestringThe name of the shorturl
visiblebooleanWhether the shorturl should be readable by anyone or not
urlstringThe url the shorturl should lead to

200 (OK)

FieldTypeDescription
urlstringThe created shorturl
visiblebooleanWhether the shorturl should be usable by anyone or not
dateDateThe date the shorturl was created at
{
"url": "https://cdn.ijskoud.dev/r/example_shorturl",
"visible": true,
"date": "2023-10-17T11:37:49.109Z"
}