GET
/
links
/
{alias}
Retrieve link details
curl --request GET \
  --url https://ishortn.ink/api/v1/links/{alias} \
  --header 'x-api-key: <api-key>'
{
  "shortLink": "https://ishortn.ink/customAlias",
  "url": "https://example.com",
  "alias": "customAlias",
  "expiresAt": "2024-12-31T23:59:59Z",
  "expiresAfter": 1000
}

Authorizations

x-api-key
string
header
required

Path Parameters

alias
string
required

The alias of the shortened link.

Query Parameters

domain
string

The domain of the shortened link. If not provided, the default domain will be used.

Response

Link details retrieved successfully

The shortened link.

url
string

The original URL.

alias
string

The alias of the shortened link.

expiresAt
string<date-time> | null

The expiration date and time of the link.

expiresAfter
integer | null

The number of clicks after which the link expires.

isProtected
boolean

Indicates if the link is password protected (relevant for creation response).