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-linkCreate short URLs directly with your existing account code. The endpoint supports both GET and POST requests.
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-linkUse 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"
}| Field | Type | Status | Description |
|---|---|---|---|
account_code | string | required | Your existing anonymous login account code. |
url | string | required | Destination URL to shorten. |
alias | string | optional | Custom alias. Leave empty to auto-generate one. |
title | string | optional | Optional internal title for the link. |
notes | string | optional | Optional notes stored with the link. |
click_limit | integer | optional | Optional max click count before expiry. |
expires_at | string | optional | Optional expiration in format YYYY-MM-DDTHH:MM. |
{
"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"
}
}Use the same account code you received when the anonymous account was created. No separate API key is required.