GET

GET method

Use query parameters when you want a simple direct request from scripts or automation tools.

GET https://api.dlvrify.com/shorten?account_code=YOUR_ACCOUNT_CODE&url=https%3A%2F%2Fexample.com&alias=my-link
POST

POST method

Use JSON or form-encoded POST requests when you want cleaner payloads and easier expansion.

POST https://api.dlvrify.com/shorten
Content-Type: application/json

{
  "account_code": "YOUR_ACCOUNT_CODE",
  "url": "https://example.com",
  "alias": "my-link"
}

Supported parameters

Field Type Status Description
account_codestringrequiredYour existing anonymous login account code.
urlstringrequiredDestination URL to shorten.
aliasstringoptionalCustom alias. Leave empty to auto-generate one.
titlestringoptionalOptional internal title for the link.
notesstringoptionalOptional notes stored with the link.
click_limitintegeroptionalOptional max click count before expiry.
expires_atstringoptionalOptional expiration in format YYYY-MM-DDTHH:MM.

Success response

{
  "ok": true,
  "message": "Short URL created.",
  "data": {
    "id": 12,
    "code": "my-link",
    "short_url": "https://api.dlvrify.com/my-link",
    "destination_url": "https://example.com"
  }
}

Which code to use

Use the same account code you received when the anonymous account was created. No separate API key is required.

Open settings