POST
/
links
curl --request POST \
  --url https://ishortn.ink/api/v1/links \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "url": "https://example.com",
  "expiresAt": "2024-12-31T23:59:59Z",
  "expiresAfter": 1000,
  "domain": "example.com",
  "alias": "customAlias",
  "password": "securePassword"
}'
{
  "shortLink": "https://ishortn.ink/customAlias",
  "url": "https://example.com",
  "alias": "customAlias",
  "expiresAt": "2024-12-31T23:59:59Z",
  "expiresAfter": 1000,
  "isProtected": true
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

201
application/json

Link created successfully

The response is of type object.