Create a trackable short link for any URL or offer.
Create a trackable short link for any URL or an offer from your catalog. UnlikeDocumentation Index
Fetch the complete documentation index at: https://docs.tracklysms.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /v2/links (which requires Offer Management and only supports PartnershipOffers), this endpoint works with any URL and with SMS Offers.
403 product_not_enabled otherwise.url and get a short link pointing directly at it. No affiliate tracking.offerId (from your SMS Offers, not PartnershipOffers) and the endpoint resolves the offer’s tracking URL with proper TUNE/Everflow parameters, preserving affiliate attribution.http or https scheme. Required unless offerId is provided.offers collection). If provided, the endpoint resolves the offer’s tracking URL with proper TUNE/Everflow params. Takes priority over url if both are provided.phoneNumber is provided.+18005551234). Alternative to listId. Required unless listId is provided.{{contact.phone}}). Optional.{"source": "ai_agent", "conversation_id": "abc123"}. Optional.shortUrl.filter_bots setting when offerId is provided.| HTTP Status | Error Code | Description |
|---|---|---|
| 400 | missing_url_or_offer | Neither url nor offerId was provided. |
| 400 | missing_list_identifier | Neither listId nor phoneNumber was provided. |
| 400 | invalid_url | The url does not use http or https scheme. |
| 400 | invalid_phone | The phoneNumber is not a valid E.164 phone number. |
| 403 | product_not_enabled | Your account does not have the SMS product enabled. |
| 404 | offer_not_found | No active offer found matching the provided offerId. |
| 404 | list_not_found | The sending list was not found or does not belong to your account. |
| 409 | no_domain_configured | The sending list does not have a link shortener domain configured. |
| 500 | id_collision | Failed to generate a unique link ID after multiple attempts. Retry the request. |
metadata field is stored on the MessageShortLink document and can be used for attribution tracking in analytics.offerId is provided, the offer’s filter_bots setting is inherited by the short link. The link tracking service handles bot filtering on click.POST /v2/links, which continues to serve PartnershipOffers only.