Shortening API

The four endpoints you need to create, list, update, and delete short links. Authenticate every request with an API key in the Authorization header.

Authentication

Authorization: Bearer elu_YOUR_API_KEY

POST /api/urls

curl -X POST https://url.elixpo.com/api/urls \
  -H "Authorization: Bearer elu_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/long-url",
    "title": "My Link",
    "custom_code": "my-link"
  }'
{
  "short_url": "https://url.elixpo.com/my-link",
  "short_code": "my-link",
  "original_url": "https://example.com/long-url",
  "title": "My Link",
  "created_at": "2026-03-20T12:00:00Z"
}

GET /api/urls?limit=20&offset=0&search=example

curl https://url.elixpo.com/api/urls?limit=20&offset=0 \
  -H "Authorization: Bearer elu_YOUR_KEY"

GET /api/urls/{code}

curl https://url.elixpo.com/api/urls/my-link \
  -H "Authorization: Bearer elu_YOUR_KEY"

PATCH /api/urls/{code} — change destination URL, title, or active status.

curl -X PATCH https://url.elixpo.com/api/urls/my-link \
  -H "Authorization: Bearer elu_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://new-destination.com", "is_active": true}'

DELETE /api/urls/{code} — permanently removes the link and its analytics. This is irreversible.

curl -X DELETE https://url.elixpo.com/api/urls/my-link \
  -H "Authorization: Bearer elu_YOUR_KEY"
ElixpoURL: Fast URL Shortener on the Edge