Skip to content

Cascade API short links

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

On this page
  1. POST /api/links/shorten
  2. POST /api/links/send
  3. OTP + link

POST /api/links/shorten

POST /api/links/shorten creates a short link free of charge.

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

POST /api/links/send

POST /api/links/send sends a link to a phone. A successful send is charged at the rate of the channel used.

With channel omitted or set to auto, Cascade tries the enabled channels in the order configured for the API key under Channels. To select a specific enabled channel, use whatsapp, telegram, sms, or max.

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

POST /api/otp/send can add a link to the code message. Billing counts one send at the rate of the channel used.

See send-otp, use-cases, pricing.