Skip to content

API

Cascade API short links

Shorten URLs and, when needed, send them to the user's phone.

POST /api/links/shorten

Shorten a URL without sending. Delivery tokens are not charged.

{ "url": "https://example.com/very/long", "alias": "promo-may", "expires_in": 86400 }

POST /api/links/send

Shorten and send to the phone (no OTP). Charges delivery tokens.

{
  "phone": "77001234567",
  "url": "https://example.com/promo",
  "channel": "whatsapp",
  "text": "Your link: :link"
}

In POST /otp/send you can pass link — the link goes in the same message as the code.

See send-otp, use-cases, pricing.