Skip to content

API

Short links

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

Quick Answer

Use /links/shorten without sending or /links/send for delivery to the phone.

Summary

shorten does not charge delivery tokens; send shortens and delivers (charged as a message).

Key Takeaways

  • You can pass link in /otp/send.
  • shorten without delivery is free of delivery tokens.
  • See pricing and FAQ.

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.